Transaction APIs

Check contract execution status (if there was an error during contract execution)

URI

network

uri

Mainnet

GET https://explorerapi.wemix.com/v1/transactions/{transaction_hash}/transaction-status

Testnet

GET https://explorerapi.test.wemix.com/v1/transactions/{transaction_hash}/transaction-status

REQUEST PARAMETER

  • HEADER

key

value

required

api-key

api-key

true

  • PATH VARIABLE

key

type

value

required

transaction_hash

String

transaction hash

true

REQUEST SAMPLE

GET https://explorerapi.wemix.com/v1/transactions/0x83236e5bf7ea6cfdac4dd5114f9440e40d056af22eed751bcf620d004e64337a/transaction-status 
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f435391

RESPONSE PARAMETER

key

type

value

status

String

Status of request

message

String

Response Message of request

results

Json

Results of request

results.data

List<Object>

List of data

results.data.status

Integer

Identify if the transaction is an error or not - 0: Error - 1: Success

results.data.description

String

Message to add more information about the error

RESPONSE SAMPLE

{
    "status": "200",
    "message": "success",
    "results": {
        "data": {
            "status": "1"
        }
    }
}

Check transaction receipt status (Only applicable for Post Byzantium fork transactions)

URI

network

uri

Mainnet

GET https://explorerapi.wemix.com/v1/transactions/{transaction_hash}/receipt-status

Testnet

GET https://explorerapi.test.wemix.com/v1/transactions/{transaction_hash}/receipt-status

REQUEST PARAMETER

  • HEADER

key

value

required

api-key

api-key

true

  • PATH VARIABLE

key

type

value

required

transaction_hash

String

transaction hash

true

REQUEST SAMPLE

GET https://explorerapi.test.wemix.com/v1/transactions/0x7c99717ab2058bb15b71f27da6d27af8810fa3b0c1333a681149148dce273898/receipt-status
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

RESPONSE PARAMETER

key

type

value

status

String

Status of request

message

String

Response Message of request

results

Json

Results of request

results.data

List<Object>

List of data

results.data.status

String

Identify when the receipt of transaction is available - 0: Not available(exists transaction) - 1: Available

RESPONSE SAMPLE

{
    "status": "200",
    "message": "success",
    "results": {
        "data": {
            "status": "1"
        }
    }
}

Get "Internal Transactions" by transaction hash

URI

network

uri

Mainnet

GET https://explorerapi.wemix.com/v1/transactions/{transaction_hash}/internal-transactions

Testnet

GET https://microscopeapi.test.wemix.com/v1/transactions/{transaction_hash}/internal-transactions

REQUEST PARAMETER

  • HEADER

key

value

required

api-key

api key

true

  • PATH VARIABLE

key

type

value

required

address_hash

String

  • Address of transaction

true

  • QUERY STRING

key

type

value

required

limit

Integer

Maximum number of record will retrieve Default: 50, Max: 1000

false

input

Boolean

Include input data Default: false

false

REQUEST SAMPLE

GET https://explorerapi.wemix.com/v1/transactions/0xcf26b25dd7ce714615ea1a6aac0c7fe3d10372b2ecce243178875d43d76d3701/internal-transactions?input=true
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

RESPONSE PARAMETER

key

type

value

status

String

Status of request

message

String

Response Message of request

results

Json

Results of request

results.count

String

Total count of data

results.data

List<Object>

List of data

results.data.timestamp

String

UTC time when the transaction occurred

results.data.sender

String

Address of sender

results.data.receiver

String

Address of receiver

results.data.value

String

Value of internal transaction

results.data.status

String

Status of internal transaction - 0: Failed, - 1: Success

results.data.message

String

Message of internal transaction

results.data.transaction_hash

String

Hash value of the transaction

results.data.block_number

String

Block height

results.data.contract_address

String

Address of contract creation if this is create contract transaction

results.data.trace_address

List<String>

Trace mapping information

results.data.trace_type

String

Type of trace: call, delegatecall, codecall, staticcall, selfdestruct

results.data.sub_traces

String

Number of sub traces from this internal transaction

results.data.transaction_index

String

Index of the transaction on the block

results.data.gas_used

String

Total amount of Gas used transactions

results.data.gas_limit

String

Limit of gas for executing the transaction

results.data.external_receiver

String

Whether external receive has occurred - false: external transaction exists - true: external transaction does not exist

results.data.input

String

Input parameters used when executing a transaction

RESPONSE SAMPLE

{
    "status": "200",
    "message": "success",
    "results": {
        "count": "19",
        "data": [
            {
                "timestamp": "2023-06-23T08:22:24Z",
                "sender": "0xde6ed165a256d3b7a478a3855daa63c18ef2b032",
                "receiver": "0x64817f0077bb6ed63d22c09ce167aa197a5e518a",
                "value": "0",
                "status": "1",
                "message": null,
                "transaction_hash": "0xcf26b25dd7ce714615ea1a6aac0c7fe3d10372b2ecce243178875d43d76d3701",
                "block_number": "21273859",
                "contract_address": null,
                "trace_address": [
                    "0",
                    "1",
                    "1",
                    "1",
                    "1",
                    "1"
                ],
                "trace_type": "delegatecall",
                "sub_traces": null,
                "transaction_index": "1",
                "gas_used": "489",
                "gas_limit": "26410",
                "external_receiver": false
            },
            ...
        ]
    }
}