Moonscan
Home
Moonbase
Moonbase
  • Moonbase Alpha Testnet
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth/Parity Proxy
    • Tokens
    • Stats
  • Visit Moonbase Alpha Testnet
Powered by GitBook
On this page
  • Check Contract Execution Status
  • Check Transaction Receipt Status
  1. API Endpoints

Transactions

PreviousContractsNextBlocks

Last updated 2 years ago

Check Contract Execution Status

Returns the status code of a contract execution.

https://api-moonbase.moonscan.io/api
   ?module=transaction
   &action=getstatus
   &txhash=0xe369329de1e707431f0042786b02f322bc75ecaee13351fc6edbd8983e45615c
   &apikey=YourApiKeyToken

Try this endpoint in your

Query Parameters

Parameter
Description

txhash

the string representing the transaction hash to check the execution status

Sample Response

{
    "status": "1",
    "message": "OK",
    "result": {
        "isError": "0",
        "errDescription": ""
    }
}

Tip: The isError field returns 0 for successful transactions and 1 for failed transactions.

Check Transaction Receipt Status

Returns the status code of a transaction execution.

Note: Only applicable for post transactions.

https://api-moonbase.moonscan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x72162bd2d7627d0c03846c90092a7d0396a971cd95b92e4774cd82442765eda8
   &apikey=YourApiKeyToken

Query Parameters

Parameter
Description

txhash

the string representing the transaction hash to check the execution status

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": {
    "status": "1"
  }
}

Try this endpoint in your

Tip: The status field returns 0 for failed transactions and 1 for successful transactions.

🎯
📖
🔗
📖
📝
browser
Byzantium Fork
🔗
browser