Broadcast transaction

RPC node

Broadcasts raw transactions on the network.

POST

Parameters

Body

application/octet-stream
string (binary)
Status codeDescription
200Transaction ID of successful post of a raw tx to the node's mempool.
400Bad request
500Internal Server Error
cURL
curl -L -X POST \
"https://api.hiro.so/v2/transactions" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"tx": "00000000010400bed38c2aadffa348931bcb542880ff79d607afec000000000000000000000000000000c800012b0b1fff6cccd0974966dcd665835838f0985be508e1322e09fb3d751eca132c492bda720f9ef1768d14fdabed6127560ba52d5e3ac470dcb60b784e97dc88c9030200000000000516df0ba3e79792be7be5e50a370289accfc8c9e032000000000000303974657374206d656d6f00000000000000000000000000000000000000000000000000",
"attachment": "68656c6c6f20776f726c64"
}'
Response
"e161978626f216b2141b156ade10501207ae535fa365a13ef5d7a7c9310a09f2"

How is this guide?