Skip to content

bitcoinjs-lib / address / fromBase58Check

Function: fromBase58Check() ​

fromBase58Check(address): Base58CheckResult

Defined in: ts_src/address.ts:92

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.

Released under the MIT License.