@avalanche-sdk/client
Version:
A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa
26 lines (21 loc) • 635 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* Parameters for the info.getBlockchainID method.
* @property alias - The blockchain's alias (e.g. "X" for X-Chain)
*/
export type GetBlockchainIDParameters = {
alias: string;
};
/**
* Return type for the info.getBlockchainID method.
* @property blockchainID - The ID of the blockchain
*/
export type GetBlockchainIDReturnType = {
blockchainID: string;
};
export type GetBlockchainIDErrorType = RequestErrorType;
export type GetBlockchainIDMethod = {
Method: "info.getBlockchainID";
Parameters: GetBlockchainIDParameters;
ReturnType: GetBlockchainIDReturnType;
};