# Transactions

## Check Contract Execution Status <a href="#check-contract-execution-status" id="check-contract-execution-status"></a>

Returns the status code of a contract execution.

```
https://api.ibvmscan.io/api
   ?module=transaction
   &action=getstatus
   &txhash=0xec2ff9b8eeeaed7166e15c7fdbf6746524f85e7db6799b11a46837db246b189d
   &apikey=YourApiKeyToken
```

> Try this endpoint in your [**browser**](https://api.ibvmscan.io/api?module=transaction\&action=getstatus\&txhash=0xec2ff9b8eeeaed7166e15c7fdbf6746524f85e7db6799b11a46837db246b189d\&apikey=YourApiKeyToken) 🔗

{% tabs %}
{% tab title="Request" %}
Query Parameters

| Parameter    | Description                                                                  |
| ------------ | ---------------------------------------------------------------------------- |
| txhash       | the `string` representing the transaction hash to check the execution status |
| {% endtab %} |                                                                              |

{% tab title="Response" %}
Sample response

```
{
   "status":"1",
   "message":"OK",
   "result":{
      "isError":"1",
      "errDescription":"execution reverted"
   }
}
```

{% hint style="info" %}
📖 **Tip:** The `isError` field returns `0` for **successful transactions** and `1` for **failed transactions**
{% endhint %}
{% endtab %}
{% endtabs %}

## Check Transaction Receipt Status <a href="#check-transaction-receipt-status" id="check-transaction-receipt-status"></a>

Returns the status code of a transaction execution.

```
https://api.ibvmscan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0xe9975702518c79caf81d5da65dea689dcac701fcdd063f848d4f03c85392fd00
   &apikey=YourApiKeyToken
```

> Try this endpoint in your [**browser**](https://api.ibvmscan.io/api?module=transaction\&action=gettxreceiptstatus\&txhash=0xe9975702518c79caf81d5da65dea689dcac701fcdd063f848d4f03c85392fd00\&apikey=YourApiKeyToken) 🔗

{% tabs %}
{% tab title="Request" %}
Query Parameters

| Parameter    | Description                                                                  |
| ------------ | ---------------------------------------------------------------------------- |
| txhash       | the `string` representing the transaction hash to check the execution status |
| {% endtab %} |                                                                              |

{% tab title="Response" %}
Sample response

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

{% hint style="info" %}
📖 **Tip:** The `isError` field returns `0` for **successful transactions** and `1` for **failed transactions**
{% endhint %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibvm.gitbook.io/ibvm-doc/explorer-documentation/transactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
