createpsbt
Summary
Creates a transaction in the Partially Signed Transaction format.
Description
Creates a transaction in the Partially Signed Transaction format. Implements the Creator role. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network.
Arguments
inputs(ARR, required): The inputsvalue(OBJ): No description.txid(STR_HEX, required): The transaction idvout(NUM, required): The output numbersequence(NUM): The sequence number
outputs(ARR, 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.value(OBJ_USER_KEYS): No description.address(AMOUNT, required): A key-value pair. The key (string) is the qbit address, the value (float or string) is the amount in QBT
value(OBJ): No description.data(STR_HEX, 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
locktime(NUM): Raw locktime. Non-0 value also locktime-activates inputsreplaceable(BOOL): Marks this transaction as BIP125-replaceable. Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible.version(NUM): Transaction version
Results
value(STR): The resulting raw transaction (base64-encoded string)
Examples
qbit-cli createpsbt "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"address\":0.01}]"