Caravan Documentation
    Preparing search index...

    Function multisigBIP32Path

    • Returns a BIP32 path at the given relativePath under the default BIP32 root path for the given addressType and network.

      Parameters

      • addressType: any

        type from which to calculate BIP32 root path

      • network: Network

        bitcoin network from which to calculate BIP32 root path

      • relativePath: string = "0"

        the relative BIP32 path (no leading /)

      Returns null | string

      child BIP32 path

      import {multisigBIP32Path} from "@caravan/bitcoin";
      console.log(multisigBIP32Path(P2SH, MAINNET, 0); // m/45'/0'/0'/0
      console.log(multisigBIP32Path(P2SH_P2WSH, TESTNET, "3'/4"); // m/48'/1'/0'/1'/3'/4"