Query TxProcessStatus
Introduction
Query TxProcessStatus
is used to query the real-time process status of transactions sent to Scutum. It is currently available on BSC.
Request Example
curl -X POST -H "Content-Type: application/json" --data'{
"id": 1,
"jsonrpc": "2.0",
"method": "scutum_queryTxProcessStatus",
"params": ["0xf84a……e54284"]
}'<ETH_NODE_URL>
Response Example
Normal
{
"jsonrpc": "2.0",
"result": "{"msg\":\"tx is included on chain\",\"status\":\"included\"}",
"id": "1"
} // the tx is executed on chain, success or reverted
{
"jsonrpc": "2.0",
"result": "{"msg\":\"tx is expired and discarded\",\"status\":\"expired\"}",
"id": "1"
} // 100 blocks has passed since submission of the tx
{
"jsonrpc": "2.0",
"result": "{"msg\":\"nonce too high\",\"status\":\"pending\"}",
"id": "1"
} // the tx is queued since the nonce is too high
{
"jsonrpc": "2.0",
"result": "{"msg\":\"tx is pending\",\"status\":\"pending\"}",
"id": "1"
} // the tx is being processed by Scutum
{
"jsonrpc": "2.0",
"result": "{"msg\":\"simulation error: xxxxxxx\",\"status\":\"failed\"}",
"id": "1"
} // the tx failed to be processed by Scutum due to the simulation error
Abnomal
{
"jsonrpc": "2.0",
"error": "{\"code\":-32000,\"message\":\"tx not found\"}",
"id": "1"
} //the tx has not been sent to Scutum or has exceeded the Scutum processing time limit
Last updated