Broadcast transaction
Broadcasts raw transactions on the network.
POST
/v2/transactions
Broadcast raw transaction
Broadcast raw transactions on the network. You can use the @stacks/transactions project to generate a raw transaction payload.
Request Body (Optional)
body
string
Format: "binary"
Status code | Description |
---|---|
200 | Transaction id of successful post of a raw tx to the node's mempool |
400 | Rejections result in a 400 error |
Terminal
$curl -X POST "http://localhost:20443/v2/transactions" \-d 'string'
"e161978626f216b2141b156ade10501207ae535fa365a13ef5d7a7c9310a09f2"