Broadcast transaction

Broadcasts raw transactions on the network.

POST
/v2/transactions

Broadcast raw transaction

Broadcasts raw transactions on the network. You can use the @stacks/transactions project to generate a raw transaction payload.

Request Body (Optional)

bodystring

Example: "binary format of 00000000010400bed38c2aadffa348931bcb542880ff79d607afec000000000000000000000000000000c800012b0b1fff6cccd0974966dcd665835838f0985be508e1322e09fb3d751eca132c492bda720f9ef1768d14fdabed6127560ba52d5e3ac470dcb60b784e97dc88c9030200000000000516df0ba3e79792be7be5e50a370289accfc8c9e032000000000000303974657374206d656d6f00000000000000000000000000000000000000000000000000"Format: "binary"
Status codeDescription
200Transaction id of successful post of a raw tx to the node's mempool
400Rejections result in a 400 error
/v2/transactions

curl -X POST "https://api.mainnet.hiro.so/v2/transactions" \
  -d 'binary format of 00000000010400bed38c2aadffa348931bcb542880ff79d607afec000000000000000000000000000000c800012b0b1fff6cccd0974966dcd665835838f0985be508e1322e09fb3d751eca132c492bda720f9ef1768d14fdabed6127560ba52d5e3ac470dcb60b784e97dc88c9030200000000000516df0ba3e79792be7be5e50a370289accfc8c9e032000000000000303974657374206d656d6f00000000000000000000000000000000000000000000000000'

"e161978626f216b2141b156ade10501207ae535fa365a13ef5d7a7c9310a09f2"