Skip to main content

fromBase58Check

bitcoinjs-lib v1.0.7


bitcoinjs-lib / address / fromBase58Check

Function: fromBase58Check()

fromBase58Check(address): Base58CheckResult

Defined in: ts_src/address.ts:88

Decodes a base58check encoded Bitcoin address and returns the version and hash.

Parameters

address

string

The base58check encoded Bitcoin address to decode.

Returns

Base58CheckResult

An object containing the version and hash of the decoded address.

Throws

If the address is too short or too long.