addressToScriptHash

Function
Converts a base58 encoded NEO Address into a Hash160 script hash.
export function addressToScriptHash(address: AddressString): string 

Parameters

address
string
base58 encoded string that represents a NEO address.

Returns

Hash160 string, a hex encoded string prefixed by '0x'.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE