Caravan Documentation
    Preparing search index...

    Function getRelativeBIP32Path

    • Get the path of under the parentBIP32Path of the given path

      Parameters

      • parentBIP32Path: any

        e.g. "m/45'/0'/0'"

      • childBIP32Path: any

        e.g. "m/45'/0'/0'/0/1/2"

      Returns any

      relative path below path

      import {getRelativeBIP32Path} from "@caravan/bitcoin";
      console.log(getRelativeBIP32Path("m/45'/0'/0'", "m/45'/0'/0'/0/1/2"); // 0/1/2