Skip to main content

Broadcast raw transaction

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

Request Body
string
Responses
200

Transaction id of successful post of a raw tx to the node's mempool

Schema OPTIONAL
string
400

Rejections result in a 400 error

Schema OPTIONAL
error string

The error

reason string

The reason for the error

reason_data object

More details about the reason

txid string

The relevant transaction id

post_core_node_transactions
POST /v2/transactions
Body
Body
Accept
https://api.mainnet.hiro.so
curl -L -X POST 'https://api.mainnet.hiro.so/v2/transactions' \
-H 'Content-Type: application/octet-stream' \
-H 'Accept: text/plain'