privateKeyToAddress

Function
Converts a hex-encoded private key to a base58 encoded NEO Address.
export function privateKeyToAddress(privateKey: PrivateKeyString): AddressString 

Parameters

privateKey
string
hex-encoded private key.

Returns

base58 encoded string that represents a NEO address.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE