submitpackage RPC Method
Please note that this RPC method is experimental and the interface may be unstable. Also, successful submission does not mean the transactions will propagate throughout the network
Parameters
package
array
REQUIRED
An array of raw transactions
Returns
tx-results
The transaction results keyed by wtxid, which contains the following fields:
wtxid
The transaction wtxid object with the following fields:
txid
The transaction hash in hex
other-wtxid
The wtxid of a different transaction with the same txid but different witness found in the mempool. This means the submitted transaction was ignored
vsize
The virtual transaction size as defined in BIP 141
fees
The transaction fees object which contains the following fields:
base
The transaction fee in BTC
effective-feerate
(Optional) If the transaction was not already in the mempool, the effective feerate in BTC per KvB. For example, the package feerate and/or feerate with modified fees from prioritisetransaction
effective-includes
(Optional) If effective-feerate is provided, the wtxids of the transactions whose fees and vsizes are included in effective-feerate
replaced-transactions
A list of txids of replaced transactions
Request
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "submitpackage",6"params": [7"RAW_TXS_1",8"RAW_TXS_2"9],10"id": 1,11"jsonrpc": "2.0"12}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free