qbit-rpc
    Preparing search index...

    Interface WalletCreateFundedPsbtArgs

    walletcreatefundedpsbt's arguments.

    interface WalletCreateFundedPsbtArgs {
        bip32derivs?: boolean;
        inputs?: readonly { sequence?: number; txid: string; vout: number }[];
        locktime?: number;
        options?: {
            addInputs?: boolean;
            changeAddress?: string;
            changePosition?: number;
            changeType?: AddressType;
            confTarget?: number;
            estimateMode?: FeeEstimateMode;
            feeRateBitsPerKvB?: bigint;
            includeUnsafe?: boolean;
            lockUnspents?: boolean;
            maxConf?: number;
            maxTxWeight?: number;
            minConf?: number;
            replaceable?: boolean;
            subtractFeeFromOutputs?: readonly number[];
        };
        outputs: readonly FundedPsbtOutput[];
        version?: number;
    }
    Index
    bip32derivs?: boolean

    Include the BIP 32 derivation paths of the public keys the wallet knows. Default true.

    inputs?: readonly { sequence?: number; txid: string; vout: number }[]

    Inputs to spend; leave out to let the wallet select coins. vout is 0 to 2,147,483,647 (qbit Core reads it as a signed 32-bit integer), sequence 0 to 4,294,967,295.

    locktime?: number

    0 to 4,294,967,295.

    options?: {
        addInputs?: boolean;
        changeAddress?: string;
        changePosition?: number;
        changeType?: AddressType;
        confTarget?: number;
        estimateMode?: FeeEstimateMode;
        feeRateBitsPerKvB?: bigint;
        includeUnsafe?: boolean;
        lockUnspents?: boolean;
        maxConf?: number;
        maxTxWeight?: number;
        minConf?: number;
        replaceable?: boolean;
        subtractFeeFromOutputs?: readonly number[];
    }

    How to fund the transaction.

    Type Declaration

    • Optional ReadonlyaddInputs?: boolean

      Add wallet coins to cover the outputs. Default: false with inputs, true without.

    • Optional ReadonlychangeAddress?: string

      The address to send change to. Default: a new change address of the wallet.

    • Optional ReadonlychangePosition?: number

      The change output's index. Default: random.

    • Optional ReadonlychangeType?: AddressType

      The change output's type; see AddressType. Default: the wallet's -changetype.

    • Optional ReadonlyconfTarget?: number

      Blocks for the wallet's fee estimate, 1 to 1,008. Default: the wallet's -txconfirmtarget.

    • Optional ReadonlyestimateMode?: FeeEstimateMode

      The fee estimate mode. Default unset: economical for a replaceable transaction, conservative otherwise.

    • Optional ReadonlyfeeRateBitsPerKvB?: bigint

      An explicit fee rate in bits per 1,000 vbytes (250n is 0.25 bits/vB). Exclusive with confTarget.

    • Optional ReadonlyincludeUnsafe?: boolean

      Also select outputs that are not safe to spend (see UnspentOutput.safe); the transaction becomes invalid if one disappears. Default false.

    • Optional ReadonlylockUnspents?: boolean

      Lock the selected coins in the wallet until they are spent or unlocked.

    • Optional ReadonlymaxConf?: number

      Select only coins with at most this many confirmations. Default: no limit.

    • Optional ReadonlymaxTxWeight?: number

      The largest weight the transaction may have, 65 to 400,000 (qbit Core's standard limit, the default).

    • Optional ReadonlyminConf?: number

      Select only coins with at least this many confirmations. Default 0.

    • Optional Readonlyreplaceable?: boolean

      Signal BIP 125 replaceability. Default: the wallet's -walletrbf.

    • Optional ReadonlysubtractFeeFromOutputs?: readonly number[]

      Output indexes, before change is added, that pay the fee.

    outputs: readonly FundedPsbtOutput[]

    At least one output. Each address once; at most one data (OP_RETURN) output.

    version?: number

    The transaction version, 1 to 3: qbit Core refuses a non-standard one. Default 2.