Function decodeBase58AddressFormat
- decodeBase58AddressFormat(address, sha256?): string | {
payload: Uint8Array;
version: number;
} Parameters
address: string
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
} = internalSha256
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
Returns string | {
payload: Uint8Array;
version: number;
}
Attempt to decode a Base58Address-formatted string. This is more lenient than decodeCashAddress, which also validates the address version.
Returns the contents of the address or an error message as a string.
To encode a Base58Address-like format, use encodeBase58AddressFormat.