
walletcreatefundedpsbt
Wallet command of DebitMyData Core 1.3.5.
walletcreatefundedpsbt ( [{"txid":"hex","vout":n,"sequence":n,"weight":n},...] ) [{"address":amount,...},{"data":"hex"},...] ( locktime options bip32derivs version )Creates and funds a transaction in the Partially Signed Transaction format.
Implements the Creator and Updater roles.
All existing inputs must either have their previous output transaction be in the wallet or be in the UTXO set. Solving data must be provided for non-wallet inputs.
Arguments
Section titled “Arguments”1. inputs (json array, optional) Leave empty to add inputs automatically. See add_inputs option. [ { (json object) "txid": "hex", (string, required) The transaction id "vout": n, (numeric, required) The output number "sequence": n, (numeric, optional, default=depends on the value of the 'locktime' and 'options.replaceable' arguments) The sequence number "weight": n, (numeric, optional, default=Calculated from wallet and solving data) The maximum weight for this input, including the weight of the outpoint and sequence number. Note that signature sizes are not guaranteed to be consistent, so the maximum DER signatures size of 73 bytes should be used when considering ECDSA signatures.Remember to convert serialized sizes to weight units when necessary. }, ... ]2. outputs (json array, required) The outputs specified as key-value pairs. Each key may only appear once, i.e. there can only be one 'data' output, and no address may be duplicated. At least one output of either type must be specified. For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also accepted as second parameter. [ { (json object) "address": amount, (numeric or string, required) A key-value pair. The key (string) is the debitmydata address, the value (float or string) is the amount in DMD ... }, { (json object) "data": "hex", (string, required) A key-value pair. The key must be "data", the value is hex-encoded data that becomes a part of an OP_RETURN output }, ... ]3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs4. options (json object, optional) Options object that can be used to pass named arguments, listed below.5. bip32derivs (boolean, optional, default=true) Include BIP 32 derivation paths for public keys if we know them6. version (numeric, optional, default=2) Transaction versionNamed Arguments
Section titled “Named Arguments”add_inputs (boolean, optional, default=false when "inputs" are specified, true otherwise) Automatically include coins from the wallet to cover the target amount.
include_unsafe (boolean, optional, default=false) Include inputs that are not safe to spend (unconfirmed transactions from outside keys and unconfirmed replacement transactions). Warning: the resulting transaction may become invalid if one of the unsafe inputs disappears. If that happens, you will need to fund the transaction with different inputs and republish it.minconf (numeric, optional, default=0) If add_inputs is specified, require inputs with at least this many confirmations.maxconf (numeric, optional) If add_inputs is specified, require inputs with at most this many confirmations.changeAddress (string, optional, default=automatic) The debitmydata address to receive the changechangePosition (numeric, optional, default=random) The index of the change outputchange_type (string, optional, default=set by -changetype) The output type to use. Only valid if changeAddress is not specified. Options are "legacy", "p2sh-segwit", "bech32", "bech32m".includeWatching (boolean, optional, default=false) (DEPRECATED) No longer usedlockUnspents (boolean, optional, default=false) Lock selected unspent outputsfee_rate (numeric or string, optional, default=not set, fall back to wallet fee estimation) Specify a fee rate in data/vB.feeRate (numeric or string, optional, default=not set, fall back to wallet fee estimation) Specify a fee rate in DMD/kvB.subtractFeeFromOutputs (json array, optional, default=[]) The outputs to subtract the fee from. The fee will be equally deducted from the amount of each specified output. Those recipients will receive less debitmydatas than you enter in their corresponding amount field. If no outputs are specified here, the sender pays the fee. [ vout_index, (numeric) The zero-based output index, before a change output is added. ... ]max_tx_weight (numeric, optional, default=400000) The maximum acceptable transaction weight. Transaction building will fail if this can not be satisfied.conf_target (numeric, optional, default=wallet -txconfirmtarget) Confirmation target in blocksestimate_mode (string, optional, default="unset") The fee estimate mode, must be one of (case insensitive): unset, economical, conservative unset means no mode set (economical mode is used if the transaction is replaceable; otherwise, conservative mode is used). economical estimates use a shorter time horizon, making them more responsive to short-term drops in the prevailing fee market. This mode potentially returns a lower fee rate estimate. conservative estimates use a longer time horizon, making them less responsive to short-term drops in the prevailing fee market. This mode potentially returns a higher fee rate estimate.
replaceable (boolean, optional, default=wallet default) Marks this transaction as BIP125-replaceable. Allows this transaction to be replaced by a transaction with higher feessolving_data (json object, optional) Keys and scripts needed for producing a final transaction with a dummy signature. Used for fee estimation during coin selection. { "pubkeys": [ (json array, optional, default=[]) Public keys involved in this transaction. "pubkey", (string) A public key ... ], "scripts": [ (json array, optional, default=[]) Scripts involved in this transaction. "script", (string) A script ... ], "descriptors": [ (json array, optional, default=[]) Descriptors that provide solving data for this transaction. "descriptor", (string) A descriptor ... ], }Result
Section titled “Result”{ (json object) "psbt" : "str", (string) The resulting raw transaction (base64-encoded string) "fee" : n, (numeric) Fee in DMD the resulting transaction pays "changepos" : n (numeric) The position of the added change output, or -1}Examples
Section titled “Examples”Create a PSBT with automatically picked inputs that sends 0.5 DMD to an address and has a fee rate of 2 data/vB:
debitmydata-cli walletcreatefundedpsbt "[]" "[{\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\":0.5}]" 0 "{\"add_inputs\":true,\"fee_rate\":2}"Create the same PSBT as the above one instead using named arguments:
debitmydata-cli -named walletcreatefundedpsbt outputs="[{\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\":0.5}]" add_inputs=true fee_rate=2© 2026 Debit My Data, Inc. · DMD is the native coin of the DebitMyData Proof-of-Work chain. ·[email protected] ·Policies

