Skip to content

rektbuildr/glacier-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalanche Glacier API Java Client

Playing with the Avalanche Glacier API in Java

  • API version: Beta
  • Build date: 2023-05-05

The Glacier API provides web3 application developers with multi-chain
data related to Avalanche's primary network, Avalanche subnets, and
Ethereum. With Glacier, you can easily build products that leverage
real-time and historical transaction and transfer history, native and
token balances, and various types of token metadata. The API is in Beta
and may be subject to change.

Generated using Codegen

Contact

@AvaxBuildr

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvmApi;

import java.io.File;
import java.util.*;

public class EvmApiExample {

    public static void main(String[] args) {
        
        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();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
EvmApi getBlock GET /v1/chains/{chainId}/blocks/{blockId} Returns the details of an individual block for the chain.
EvmApi getChainInfo GET /v1/chains/{chainId} Gets chain information by chain id.
EvmApi getDeploymentTransaction GET /v1/chains/{chainId}/contracts/{address}/transactions:getDeployment If the address is a smart contract, returns the transaction at which it was deployed.
EvmApi getLatestBlocks GET /v1/chains/{chainId}/blocks Returns the latest blocks indexed for the chain.
EvmApi getNativeBalance GET /v1/chains/{chainId}/addresses/{address}/balances:getNative Get native token balance of a wallet address for a given chain.
EvmApi getTransaction GET /v1/chains/{chainId}/transactions/{txHash} Gets the details of a single transaction.
EvmApi getTransactionsForBlock GET /v1/chains/{chainId}/blocks/{blockId}/transactions Gets the transactions that occured in a given block.
EvmApi 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.
EvmApi listErc1155Balances GET /v1/chains/{chainId}/addresses/{address}/balances:listErc1155 List ERC-1155 token balances of a wallet address for a given chain.
EvmApi listErc1155Transactions GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc1155 Lists of ERC-1155 transfers for an address.
EvmApi listErc20Balances GET /v1/chains/{chainId}/addresses/{address}/balances:listErc20 List ERC-20 token balances of a wallet address for a given chain.
EvmApi listErc20Transactions GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc20 Lists ERC-20 transfers for an address.
EvmApi listErc721Balances GET /v1/chains/{chainId}/addresses/{address}/balances:listErc721 List ERC-721 token balances of a wallet address for a given chain.
EvmApi listErc721Transactions GET /v1/chains/{chainId}/addresses/{address}/transactions:listErc721 Lists ERC-721 transfers for an address.
EvmApi listInternalTransactions GET /v1/chains/{chainId}/addresses/{address}/transactions:listInternals Lists internal transactions for an address.
EvmApi listLatestTransactions GET /v1/chains/{chainId}/transactions Gets the latest transactions; can be filtered by status.
EvmApi listNativeTransactions GET /v1/chains/{chainId}/addresses/{address}/transactions:listNative Gets a list of native transactions for an address and chain.
EvmApi listTransactions GET /v1/chains/{chainId}/addresses/{address}/transactions Gets a list of transactions for an address and chain.
EvmApi 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.
EvmApi supportedChains GET /v1/chains Gets the list of chains supported by the api.
HealthCheckApi healthCheck GET /v1/health-check Get the health of the service.
OperationsApi getOperationResult GET /v1/operations/{operationId} Retrieve operation result with given operation id
OperationsApi postTransactionExportJob POST /v1/operations/transactions:export Trigger a transaction export operation with given parameters.
PrimaryNetworkApi getAssetDetails GET /v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId} Returns asset details corresponding to the asset id on X-Chain.
PrimaryNetworkApi getAssetTransactions GET /v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions Returns asset transactions corresponding to the asset id on X-Chain.
PrimaryNetworkApi getBalancesByAddresses GET /v1/networks/{network}/blockchains/{blockchainId}/balances Returns balance for P-Chain, X-Chain, and C-Chain (only shared memory balance for C-Chain).
PrimaryNetworkApi getBlockById GET /v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId} Returns block by block_height or block_hash on P-Chain, X-Chain (Cortina), C-Chain (hexadecimal for C-Chain).
PrimaryNetworkApi getChainAddresses GET /v1/networks/{network}/addresses:listChainIds Return all address-mapped chain IDs that an address has been seen on chain before.
PrimaryNetworkApi getTxByHash GET /v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash} Returns the details of the supplied transaction hash.
PrimaryNetworkApi getUtxosByAddresses GET /v1/networks/{network}/blockchains/{blockchainId}/utxos Returns a list of UTXOs for the supplied addresses.
PrimaryNetworkApi getVertexByHash GET /v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash} Returns one vertex with the provided vertex hash on X-Chain.
PrimaryNetworkApi getVertexByHeight GET /v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight Returns vertices with the provided vertex height on X-Chain.
PrimaryNetworkApi listActivePrimaryNetworkStakingTransactions GET /v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking Returns active staking transactions for supplied addresses.
PrimaryNetworkApi listLatestPrimaryNetworkBlocks GET /v1/networks/{network}/blockchains/{blockchainId}/blocks Returns latest blocks, up to user defined limit on P-Chain, X-Chain or C-Chain.
PrimaryNetworkApi listLatestPrimaryNetworkTransactions GET /v1/networks/{network}/blockchains/{blockchainId}/transactions Returns latest transactions. If addresses are supplied, returns transactions for those addresses.
PrimaryNetworkApi listLatestXChainVertices GET /v1/networks/{network}/blockchains/{blockchainId}/vertices Returns latest vertices, up to user defined limit on X-Chain.
PrimaryNetworkApi listPrimaryNetworkBlocksByNodeId GET /v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks Returns latest blocks proposed by a given NodeID, up to user defined limit.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

Releases

No releases published

Packages

No packages published

Languages