Caravan Documentation
    Preparing search index...

    Function multisigBIP32Root

    • Return the default BIP32 root derivation path for the given addressType and network.

      • Mainnet:
        • P2SH: m/45'/0'/0'
        • P2SH-P2WSH: m/48'/0'/0'/1'
        • P2WSH: m/48'/0'/0'/2'
      • Testnet:
        • P2SH: m/45'/1'/0'
        • P2SH-P2WSH: m/48'/1'/0'/1'
        • P2WSH: m/48'/1'/0'/2'

      Parameters

      • addressType: any

        address type

      • network: Network

        bitcoin network

      Returns null | string

      derivation path

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