cURL
curl --request POST \
--url https://api.example.com/broadcast_tx_async \
--header 'Content-Type: application/json' \
--data '
{
"method": "broadcast_tx_async",
"params": {
"signed_tx_base64": "aSDinaTvuI8gbWludGxpZnk=",
"wait_until": "EXECUTED_OPTIMISTIC"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'broadcast_tx_async',
params: {
signed_tx_base64: 'aSDinaTvuI8gbWludGxpZnk=',
wait_until: 'EXECUTED_OPTIMISTIC'
},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/broadcast_tx_async', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/broadcast_tx_async"
payload = {
"method": "broadcast_tx_async",
"params": {
"signed_tx_base64": "aSDinaTvuI8gbWludGxpZnk=",
"wait_until": "EXECUTED_OPTIMISTIC"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": "<string>",
"id": "<string>",
"jsonrpc": "<string>"
}Post broadcast tx async
[Deprecated] Sends a transaction and immediately returns transaction hash. Consider using send_tx instead.
POST
/
broadcast_tx_async
cURL
curl --request POST \
--url https://api.example.com/broadcast_tx_async \
--header 'Content-Type: application/json' \
--data '
{
"method": "broadcast_tx_async",
"params": {
"signed_tx_base64": "aSDinaTvuI8gbWludGxpZnk=",
"wait_until": "EXECUTED_OPTIMISTIC"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'broadcast_tx_async',
params: {
signed_tx_base64: 'aSDinaTvuI8gbWludGxpZnk=',
wait_until: 'EXECUTED_OPTIMISTIC'
},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/broadcast_tx_async', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/broadcast_tx_async"
payload = {
"method": "broadcast_tx_async",
"params": {
"signed_tx_base64": "aSDinaTvuI8gbWludGxpZnk=",
"wait_until": "EXECUTED_OPTIMISTIC"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": "<string>",
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
broadcast_tx_async Show child attributes
Show child attributes
JSON-RPC request id. Auto-populated; can be any string.
JSON-RPC protocol version. Always 2.0.
Available options:
2.0 Was this page helpful?