Function decodeBase58AddressFormat
- decodeBase58AddressFormat(address, sha256?): unknownCharacter | tooShort | invalidChecksum | {
payload: Uint8Array;
version: number;
} Parameters
address: string
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
} = internalSha256
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
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.