Skip to main content

/v2/transactions REST API Endpoint

Broadcasts raw transactions on the network.

Updated on
Oct 4, 2023

/v2/transactions REST API Endpoint

Query Parameters

Content-Type
application/octet-stream

Body Parameters

raw transaction
string
Binary string of the raw transaction payload.

Returns

transaction ID
string
The transaction ID of a raw transaction submitted to the node's mempool.
Request
1
DATA=$(echo -e '808000000004006ef4138d99a9d08f429d06c01f2ad6adf0b05ab6000000000000001100000000000000b400003000d6124e0e0acf9f1fef35108453a413b331ea47249192052dbac8c0f28c91183ef4abfc5e212fc0ef45722f701bece589f77d678e9cc19e79f69fec165f1703020000000000051a41abb6f1ae477609435bfb93aaa02b72af1fc05a0000000000124f8068656c6c6f20776f726c640000000000000000000000000000000000000000000000' | xxd -r -p)
2
3
echo -e $DATA |curl --request POST \
4
'https://docs-demo.stacks-mainnet.quiknode.pro/v2/transactions' \
5
--header 'Content-Type: application/octet-stream' \
6
--data-binary @-
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free