UNPKG

@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

37 lines 901 B
import { RequestErrorType } from "viem/utils"; /** * The parameters for the `avm.getBalance` method. * * @property address - The address to get the balance for. * @property assetID - The asset ID. */ export type GetBalanceParameters = { address: string; assetID: string; }; /** * The return type for the `avm.getBalance` method. * * @property balance - The balance. * @property utxoIDs - The UTXO IDs. */ export type GetBalanceReturnType = { balance: bigint; utxoIDs: { /** * The transaction ID. */ txID: string; /** * The output index. */ outputIndex: number; }[]; }; export type GetBalanceErrorType = RequestErrorType; export type GetBalanceMethod = { Method: "avm.getBalance"; Parameters: GetBalanceParameters; ReturnType: GetBalanceReturnType; }; //# sourceMappingURL=getBalance.d.ts.map