Returns a BIP32 path at the given relativePath under the default BIP32 root path for the given addressType and network.
relativePath
addressType
network
type from which to calculate BIP32 root path
bitcoin network from which to calculate BIP32 root path
the relative BIP32 path (no leading /)
/
child BIP32 path
import {multisigBIP32Path} from "@caravan/bitcoin";console.log(multisigBIP32Path(P2SH, MAINNET, 0); // m/45'/0'/0'/0console.log(multisigBIP32Path(P2SH_P2WSH, TESTNET, "3'/4"); // m/48'/1'/0'/1'/3'/4" Copy
import {multisigBIP32Path} from "@caravan/bitcoin";console.log(multisigBIP32Path(P2SH, MAINNET, 0); // m/45'/0'/0'/0console.log(multisigBIP32Path(P2SH_P2WSH, TESTNET, "3'/4"); // m/48'/1'/0'/1'/3'/4"
Returns a BIP32 path at the given
relativePathunder the default BIP32 root path for the givenaddressTypeandnetwork.