All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getBlock | GET /v1/chains/{chainId}/blocks/{blockId} | Returns the details of an individual block for the chain. |
getChainInfo | GET /v1/chains/{chainId} | Gets chain information by chain id. |
getDeploymentTransaction | GET /v1/chains/{chainId}/contracts/{address}/transactions:getDeployment | If the address is a smart contract, returns the transaction at which it was deployed. |
getLatestBlocks | GET /v1/chains/{chainId}/blocks | Returns the latest blocks indexed for the chain. |
getNativeBalance | GET /v1/chains/{chainId}/addresses/{address}/balances:getNative | Get native token balance of a wallet address for a given chain. |
getTransaction | GET /v1/chains/{chainId}/transactions/{txHash} | Gets the details of a single transaction. |
getTransactionsForBlock | GET /v1/chains/{chainId}/blocks/{blockId}/transactions | Gets the transactions that occured in a given block. |
listCollectibleBalances | GET /v1/chains/{chainId}/addresses/{address}/balances:listCollectibles | List ERC-721 and ERC-1155 token balances of a wallet address for a given chain. |
listErc1155Balances | GET /v1/chains/{chainId}/addresses/{address}/balances:listErc1155 | List ERC-1155 token balances of a wallet address for a given chain. |
listErc1155Transactions | GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc1155 | Lists of ERC-1155 transfers for an address. |
listErc20Balances | GET /v1/chains/{chainId}/addresses/{address}/balances:listErc20 | List ERC-20 token balances of a wallet address for a given chain. |
listErc20Transactions | GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc20 | Lists ERC-20 transfers for an address. |
listErc721Balances | GET /v1/chains/{chainId}/addresses/{address}/balances:listErc721 | List ERC-721 token balances of a wallet address for a given chain. |
listErc721Transactions | GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc721 | Lists ERC-721 transfers for an address. |
listInternalTransactions | GET /v1/chains/{chainId}/addresses/{address}/transactions:listInternals | Lists internal transactions for an address. |
listLatestTransactions | GET /v1/chains/{chainId}/transactions | Gets the latest transactions; can be filtered by status. |
listNativeTransactions | GET /v1/chains/{chainId}/addresses/{address}/transactions:listNative | Gets a list of native transactions for an address and chain. |
listTransactions | GET /v1/chains/{chainId}/addresses/{address}/transactions | Gets a list of transactions for an address and chain. |
listTransfers | GET /v1/chains/{chainId}/tokens/{address}/transfers | Gets a list of erc transfers for an ERC-20, ERC-721, or ERC-1155 contract address. |
supportedChains | GET /v1/chains | Gets the list of chains supported by the api. |
GetBlockResponse getBlock(chainId, blockId)
Returns the details of an individual block for the chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String blockId = "blockId_example"; // String | A block identifier which is either a block number or the block hash.
try {
GetBlockResponse result = apiInstance.getBlock(chainId, blockId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getBlock");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
blockId | String | A block identifier which is either a block number or the block hash. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetChainResponse getChainInfo(chainId)
Gets chain information by chain id.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
try {
GetChainResponse result = apiInstance.getChainInfo(chainId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getChainInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTransactionResponse getDeploymentTransaction(chainId, address, currency)
If the address is a smart contract, returns the transaction at which it was deployed.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | Contract address on the relevant chain.
CurrencyCode currency = new CurrencyCode(); // CurrencyCode | The currency that return values should use. Defaults to USD.
try {
GetTransactionResponse result = apiInstance.getDeploymentTransaction(chainId, address, currency);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getDeploymentTransaction");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | Contract address on the relevant chain. | |
currency | CurrencyCode | The currency that return values should use. Defaults to USD. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListBlocksResponse getLatestBlocks(chainId, pageSize, pageToken)
Returns the latest blocks indexed for the chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListBlocksResponse result = apiInstance.getLatestBlocks(chainId, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getLatestBlocks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetNativeBalanceResponse getNativeBalance(chainId, address, currency)
Get native token balance of a wallet address for a given chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
CurrencyCode currency = new CurrencyCode(); // CurrencyCode | The currency that return values should use. Defaults to USD.
try {
GetNativeBalanceResponse result = apiInstance.getNativeBalance(chainId, address, currency);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getNativeBalance");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
currency | CurrencyCode | The currency that return values should use. Defaults to USD. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTransactionResponse getTransaction(chainId, txHash)
Gets the details of a single transaction.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String txHash = "txHash_example"; // String | A transaction hash.
try {
GetTransactionResponse result = apiInstance.getTransaction(chainId, txHash);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getTransaction");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
txHash | String | A transaction hash. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListNativeTransactionsResponse getTransactionsForBlock(chainId, blockId)
Gets the transactions that occured in a given block.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String blockId = "blockId_example"; // String | A block identifier which is either a block number or the block hash.
try {
ListNativeTransactionsResponse result = apiInstance.getTransactionsForBlock(chainId, blockId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#getTransactionsForBlock");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
blockId | String | A block identifier which is either a block number or the block hash. |
ListNativeTransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListCollectibleBalancesResponse listCollectibleBalances(chainId, address, pageSize, pageToken)
List ERC-721 and ERC-1155 token balances of a wallet address for a given chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListCollectibleBalancesResponse result = apiInstance.listCollectibleBalances(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listCollectibleBalances");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListCollectibleBalancesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc1155BalancesResponse listErc1155Balances(chainId, address, pageSize, pageToken)
List ERC-1155 token balances of a wallet address for a given chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListErc1155BalancesResponse result = apiInstance.listErc1155Balances(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc1155Balances");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc1155TransactionsResponse listErc1155Transactions(chainId, address, pageSize, pageToken)
Lists of ERC-1155 transfers for an address.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListErc1155TransactionsResponse result = apiInstance.listErc1155Transactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc1155Transactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListErc1155TransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc20BalancesResponse listErc20Balances(chainId, address, pageSize, pageToken, currency)
List ERC-20 token balances of a wallet address for a given chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
CurrencyCode currency = new CurrencyCode(); // CurrencyCode | The currency that return values should use. Defaults to USD.
try {
ListErc20BalancesResponse result = apiInstance.listErc20Balances(chainId, address, pageSize, pageToken, currency);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc20Balances");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
currency | CurrencyCode | The currency that return values should use. Defaults to USD. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc20TransactionsResponse listErc20Transactions(chainId, address, pageSize, pageToken)
Lists ERC-20 transfers for an address.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListErc20TransactionsResponse result = apiInstance.listErc20Transactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc20Transactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc721BalancesResponse listErc721Balances(chainId, address, pageSize, pageToken)
List ERC-721 token balances of a wallet address for a given chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListErc721BalancesResponse result = apiInstance.listErc721Balances(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc721Balances");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListErc721TransactionsResponse listErc721Transactions(chainId, address, pageSize, pageToken)
Lists ERC-721 transfers for an address.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListErc721TransactionsResponse result = apiInstance.listErc721Transactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listErc721Transactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListErc721TransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListInternalTransactionsResponse listInternalTransactions(chainId, address, pageSize, pageToken)
Lists internal transactions for an address.
Returns a list of internal transactions for an address and chain. Note that the internal transactions list only contains CALL or CALLCODE transactions with a non-zero value and CREATE/CREATE2 transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListInternalTransactionsResponse result = apiInstance.listInternalTransactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listInternalTransactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListInternalTransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListNativeTransactionsResponse listLatestTransactions(chainId, pageSize, pageToken, status)
Gets the latest transactions; can be filtered by status.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
TransactionStatus status = new TransactionStatus(); // TransactionStatus | A status filter for listed transactions.
try {
ListNativeTransactionsResponse result = apiInstance.listLatestTransactions(chainId, pageSize, pageToken, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listLatestTransactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
status | TransactionStatus | A status filter for listed transactions. | [optional] |
ListNativeTransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListNativeTransactionsResponse listNativeTransactions(chainId, address, pageSize, pageToken)
Gets a list of native transactions for an address and chain.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListNativeTransactionsResponse result = apiInstance.listNativeTransactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listNativeTransactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListNativeTransactionsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListTransactionDetailsResponse listTransactions(chainId, address, pageSize, pageToken)
Gets a list of transactions for an address and chain.
Returns a list of transactions where the given wallet address had an on-chain interaction for a given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those list only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListTransactionDetailsResponse result = apiInstance.listTransactions(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listTransactions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
ListTransactionDetailsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListTransfersResponse listTransfers(chainId, address, pageSize, pageToken)
Gets a list of erc transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
String chainId = "chainId_example"; // String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
String address = "address_example"; // String | A wallet address.
Integer pageSize = 10; // Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
String pageToken = "pageToken_example"; // String | A page token, received from a previous list call. Provide this to retrieve the subsequent page.
try {
ListTransfersResponse result = apiInstance.listTransfers(chainId, address, pageSize, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#listTransfers");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
chainId | String | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | |
address | String | A wallet address. | |
pageSize | Integer | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | [optional] [default to 10] [enum: 1, 100] |
pageToken | String | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ListChainsResponse supportedChains()
Gets the list of chains supported by the api.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvmApi;
EvmApi apiInstance = new EvmApi();
try {
ListChainsResponse result = apiInstance.supportedChains();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvmApi#supportedChains");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json