POSTsendrawtransaction

Bitcoin Mainnethttps://bitcoin-mainnet.nodit.io/

Submits a signed raw transaction to the local node and the network, and returns the transaction id.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameters in order:

  1. hexstring: The transaction to submit, as a hex string. (required)
  2. maxfeerate: The maximum fee rate to allow. (optional, default 0.10)
  3. maxburnamount: The maximum burn amount to allow. (optional, default 0.00)
params[0]string

The hex string of the signed raw transaction.

params[1]string

The hex string of the signed raw transaction.

params[2]string

The hex string of the signed raw transaction.

Responses

No response body.

X-API-KEY
RequestCU80
cURL
curl -X POST "https://bitcoin-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "sendrawtransaction",
    "params": [
      "02000000013ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a00000000da00483045",
      "0.10",
      "0.00"
    ]
  }'
Response
Example ยท 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
}