Address

Interface
Buffer that represents a NEO address. Stored as a script hash (Hash160) internally. See the Standard Library chapter of the main guide for more information.
export interface Address extends Buffer { 
  readonly [OpaqueTagSymbol0]: unique symbol; 
} 

Static Methods

from

Creates an Address from a literal string. Accepts either a NEO address or a script hash.
(value: string) => Address 

isCaller

Verifies that the invocation was directly called AND approved by Address. Smart contracts should invoke this function before taking transferring items for Addresses, like transferring tokens, that require the permission of the Address.
(address: Address) => boolean 

isSender

Verifies that the Transaction was signed by the address. In most cases, smart contracts should instead use Address.isCaller`.
(address: Address) => boolean 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE