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

25 lines 1.2 kB
import { Chain, PublicActions, Transport } from "viem"; import { AvalancheClient } from "../types/createAvalancheClient.js"; import { AdminAPIActions } from "./adminApi.js"; import { AvalanchePublicActions } from "./avalanchePublic.js"; import { CChainActions } from "./cChain.js"; import { HealthAPIActions } from "./healthApi.js"; import { IndexAPIActions } from "./indexApi.js"; import { InfoAPIActions } from "./infoApi.js"; import { PChainActions } from "./pChain.js"; import { XChainActions } from "./xChain.js"; export type AvalancheActions = PublicActions & AvalanchePublicActions & { pChain?: PChainActions; cChain?: CChainActions; xChain?: XChainActions; public?: AvalanchePublicActions; admin?: AdminAPIActions; info?: InfoAPIActions; health?: HealthAPIActions; indexPChainBlock?: IndexAPIActions; indexCChainBlock?: IndexAPIActions; indexXChainBlock?: IndexAPIActions; indexXChainTx?: IndexAPIActions; }; export declare function avalancheActions<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined>(client: AvalancheClient<transport, chain>): AvalancheActions; //# sourceMappingURL=avalanche.d.ts.map