# OctaCore.TransactionsApi

All URIs are relative to *https://api.octacore.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getTransactionByBlockHashAndIndexPost**](TransactionsApi.md#getTransactionByBlockHashAndIndexPost) | **POST** /getTransactionByBlockHashAndIndex | getTransactionByBlockHashAndIndex
[**getTransactionDataByHashPost**](TransactionsApi.md#getTransactionDataByHashPost) | **POST** /getTransactionDataByHash | getTransactionDataByHash


<a name="getTransactionByBlockHashAndIndexPost"></a>
# **getTransactionByBlockHashAndIndexPost**
> getTransactionByBlockHashAndIndexPost(chain, input)

getTransactionByBlockHashAndIndex

The /getTransactionByBlockHashAndIndex API endpoint allows you to retrieve a specific transaction from the Ethereum blockchain by providing the block hash and the index of the transaction within the block. ### Use cases: + Displaying transaction information on a blockchain explorer. + Building applications that rely on transaction information, such as auditing tools or payment processing systems.

### Example
```javascript
var OctaCore = require('octa_core');
var defaultClient = OctaCore.ApiClient.instance;

// Configure API key authorization: JWT
var JWT = defaultClient.authentications['JWT'];
JWT.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWT.apiKeyPrefix = 'Token';

var apiInstance = new OctaCore.TransactionsApi();

var chain = "chain_example"; // String | Chain to be requested in.

var input = new OctaCore.ModelsHashIndex(); // ModelsHashIndex | Block Hash And Index


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getTransactionByBlockHashAndIndexPost(chain, input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsHashIndex**](ModelsHashIndex.md)| Block Hash And Index | 

### Return type

null (empty response body)

### Authorization

[JWT](../README.md#JWT)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getTransactionDataByHashPost"></a>
# **getTransactionDataByHashPost**
> getTransactionDataByHashPost(chain, input)

getTransactionDataByHash

The /getTransactionDataByHash API endpoint allows you to retrieve detailed information about all transaction in a block on the specified blockchain by providing the block hash. ### Use cases: + Displaying transaction information on a blockchain explorer. + Allowing a user to view the details of a specific transaction within a decentralized application. + Building applications that rely on transaction information, such as auditing tools or payment processing systems.

### Example
```javascript
var OctaCore = require('octa_core');
var defaultClient = OctaCore.ApiClient.instance;

// Configure API key authorization: JWT
var JWT = defaultClient.authentications['JWT'];
JWT.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWT.apiKeyPrefix = 'Token';

var apiInstance = new OctaCore.TransactionsApi();

var chain = "chain_example"; // String | Chain to be requested in.

var input = new OctaCore.ModelsHash(); // ModelsHash | Address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getTransactionDataByHashPost(chain, input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsHash**](ModelsHash.md)| Address | 

### Return type

null (empty response body)

### Authorization

[JWT](../README.md#JWT)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

