send_raw_transaction - Monero
Example code for the send_raw_transaction JSON-RPC method. Complete guide on how to use send_raw_transaction JSON-RPC in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request Example
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/send_raw_transaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"tx_as_hex": "de6a3\u2026",
"do_not_relay": false
}'import axios from 'axios';
const data = JSON.stringify({
"tx_as_hex": "de6a3\u2026",
"do_not_relay": false
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/send_raw_transaction',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data, null, 2)))
.catch(error => console.log(error));Response Example
{
"double_spend": false,
"fee_too_low": false,
"invalid_input": false,
"invalid_output": false,
"low_mixin": false,
"not_relayed": false,
"overspend": false,
"reason": "",
"status": "OK",
"too_big": false,
"too_few_outputs": false,
"untrusted": false
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
Status Code
Error Message
Cause
SDK Integration
Last updated
Was this helpful?