• Parameters

    • __namedParameters: {
          feeRate: number;
          outputs: PSBTKeyMapKeys<{
              amount: readonly [3, false, CoderType<bigint>, readonly [2], readonly [2], true];
              bip32Derivation: readonly [2, CoderType<Uint8Array>, CoderType<{
                  fingerprint: number;
                  path: number[];
              }>, readonly [], readonly [0, 2], false];
              proprietary: readonly [252, CoderType<Uint8Array>, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
              redeemScript: readonly [0, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
              script: readonly [4, false, CoderType<Uint8Array>, readonly [2], readonly [2], true];
              tapBip32Derivation: readonly [7, CoderType<Uint8Array>, CoderType<{
                  der: {
                      fingerprint: number;
                      path: number[];
                  };
                  hashes: Uint8Array[];
              }>, readonly [], readonly [0, 2], false];
              tapInternalKey: readonly [5, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
              tapTree: readonly [6, false, CoderType<{
                  depth: number;
                  script: Uint8Array;
                  version: number;
              }[]>, readonly [], readonly [0, 2], false];
              witnessScript: readonly [1, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
          }>[];
          utxoToSpendable?: UtxoToSpendableFn;
          utxos: (BlockstreamUtxo | BlockstreamUtxoWithTxHex)[];
      }
      • feeRate: number
      • outputs: PSBTKeyMapKeys<{
            amount: readonly [3, false, CoderType<bigint>, readonly [2], readonly [2], true];
            bip32Derivation: readonly [2, CoderType<Uint8Array>, CoderType<{
                fingerprint: number;
                path: number[];
            }>, readonly [], readonly [0, 2], false];
            proprietary: readonly [252, CoderType<Uint8Array>, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
            redeemScript: readonly [0, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
            script: readonly [4, false, CoderType<Uint8Array>, readonly [2], readonly [2], true];
            tapBip32Derivation: readonly [7, CoderType<Uint8Array>, CoderType<{
                der: {
                    fingerprint: number;
                    path: number[];
                };
                hashes: Uint8Array[];
            }>, readonly [], readonly [0, 2], false];
            tapInternalKey: readonly [5, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
            tapTree: readonly [6, false, CoderType<{
                depth: number;
                script: Uint8Array;
                version: number;
            }[]>, readonly [], readonly [0, 2], false];
            witnessScript: readonly [1, false, CoderType<Uint8Array>, readonly [], readonly [0, 2], false];
        }>[]
      • Optional utxoToSpendable?: UtxoToSpendableFn
      • utxos: (BlockstreamUtxo | BlockstreamUtxoWithTxHex)[]

    Returns Promise<{
        changeSats: bigint;
        inputs: btc.TransactionInput[];
        totalSats: bigint;
    }>

Generated using TypeDoc