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 https://scan.wemix.com/api/transaction/{txHash}/status
Query Parameters
Name
Type
Description
chain
wemix | wemixTestnet
Chain (default to wemix)
Example:
https://scan.wemix.com/api/transaction/0x4ad65198e2ca9539a24a26513f46073fa612c2ec98563fafd472cfb40717ed14/status?chain=wemixResponse
{
"status": 1,
"hash": "0x4ad65198e2ca9539a24a26513f46073fa612c2ec98563fafd472cfb40717ed14"
}{
"error": "Invalid transaction hash format"
}{
"error": "Transaction not found"
}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 https://scan.wemix.com/api/transaction/{txHash}/contract-status
Query Parameters
Name
Type
Description
chain
wemix | wemixTestnet
Chain (default to wemix)
Example:
Response
Last updated