Help Center/
Web3 Node Engine Service/
Developer Guide/
Enhanced APIs/
Enhanced APIs/
Optimizing Gas Fees/
nes_getGasOptimizedTransactionStatus
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.
- If the API is called, pending is returned.
- If the transaction is not confirmed, pending is returned.
- If the transaction is confirmed, success is returned.
- If an error occurs, failed is returned.
{"jsonrpc":"2.0","id":1,"result":"pending"}
Parent topic: Optimizing Gas Fees
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot