buidlJS

createP2PKH(networkInput)

Creates a random legacy Pay-to-Public-Key-Hash key pair, networkInput is Mainnet by default, set to "testnet" if you want testnet.

networkInput:



createP2WPKH(networkInput)

Creates a random native (bech32) segwit key pair, networkInput is Mainnet by default, change to "testnet" for testnet

networkInput:



createP2SHP2WPKH(networkInput)

Creates a random p2sh wrapped segwit key pair, networkInput is Mainnet by default, change to "testnet" for testnet

networkInput:



getNewAddress(networkInput)

Creates a random key pair and outputs all 3 address types (P2PKH, P2WPKH, P2SH-P2WPKH), networkInput is Mainnet by default, change to "testnet" for testnet

networkInput:



getDetails(wif, networkInput)

Takes a WIF private key and outputs all 3 address types, redeem script and public key

wif:
networkInput:



newMnemonic()

No parameters. Generates a new random BIP39 mnemonic phrase




mnemonic2SeedHex(mnemonic)

Converts a mnemonic phrase to a hexidecimal seed.

mnemonic:



seedToXpub(seed, derivationPath, account)

3 parameters (string, ,integer, integer). First parameter is a hex seed. Second is derivation path (either 44, 49, 84). Third parameter is HD account.

seed:
derivationPath:
account:



seedToXprv(seed, derivationPath, account)

3 parameters (string, ,integer, integer). First parameter is a hex seed. Second is derivation path (either 44, 49, 84). Third parameter is HD account.

seed:
derivationPath:
account:



fromHDSeed(seed, derivationPath, account, change, index)

Converts an HD Hex Seed to a key pair. 5 parameters (string, integer, integer, integer, integer). First parameter is hex seed. Second is derivation path (valid 44, 49, 84). Third is HD account. Fourth is change address account. Fifth is key index.

seed:
derivationPath:
account:
change:
index:



fromXpub(xpub, change, index)

3 parameters (string, integer, integer, integer/string). First parameter is xpub/ypub/zpub. Second is change address account. Third parameter is key index.

xpub:
change:
index:



xprvToWIF(xprv/yprv/zprv, change, index)

3 parameters (string, integer, integer). First parameter is xprv/yprv/zprv. Second is change address account. Third parameter is key index.

xprv/yprv/zprv:
change:
index:





Bulk From Xpub/Ypub/Zpub

xpub/ypub/zpub:
change:
depth:




QR Coder: