Updated on 2023-12-15 GMT+08:00

nes_getGasOptimizedTransactionStatus

This API returns the gas optimization status by an ID.

Request

curl https://your-http-endpoint/your-credential \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"nes_getGasOptimizedTransactionStatus","params":["0x4201"],"id":1}'

Return Value

The return value can be pending, success, or failed.

  1. If the API is called, pending is returned.
  2. If the transaction is not confirmed, pending is returned.
  3. If the transaction is confirmed, success is returned.
  4. If an error occurs, failed is returned.
{"jsonrpc":"2.0","id":1,"result":"pending"}