Tips & Tricks
How to get the current gas price
curl --location 'https://mainnet-rpc.parex.network'
--header 'Content-Type: application/json'
--data '{
"method": "eth_gasPrice",
"params": [],
"id": 1,
"jsonrpc": "2.0"
}'How to check why a transaction failed
curl --location 'https://mainnet-rpc.parex.network' \
--header 'Content-Type: application/json' \
--data '{
"method": "debug_traceTransaction",
"params": [
"[Transaction ID]",
{
"tracer": "callTracer"
}
],
"id": 1,
"jsonrpc": "2.0"
}'
Last updated