Transactions
Transaction related API's
Check Transaction Receipt Status
Returns the status code of a transaction execution.
status
field returns 0
for failed transactions and 1
for successful transactions.
GET
http://scan.wemix.com/api/transaction/{txHash}/status
Query Parameters
Name
Type
Description
chain
wemix
| wemixTestnet
Chain (default to wemix
)
Example:
http://scan.wemix.com/api/transaction/0x4ad65198e2ca9539a24a26513f46073fa612c2ec98563fafd472cfb40717ed14/status?chain=wemix
Response
{
"status": 1,
"hash": "0x4ad65198e2ca9539a24a26513f46073fa612c2ec98563fafd472cfb40717ed14"
}
Check Contract Execution Status
Returns the status code of a contract execution.
isError
field returns 0
for successful transactions and 1
for failed transactions.
GET
http://scan.wemix.com/api/transaction/{txHash}/contract-status
Query Parameters
Name
Type
Description
chain
wemix
| wemixTestnet
Chain (default to wemix
)
Example:
http://scan.wemix.com/api/transaction/0x03cecc59f94811c8357f4054981abd01132e11d6f0c5656f57098093cc36030d/contract-status?chain=wemix
Response
{
"isError": "1",
"errDescription": "execution reverted"
}
Last updated