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

21 lines (18 loc) 653 B
import { RpcSchemaOverride } from "viem"; import { GetAccountPubKeyMethod } from "./types/getAccountPubKey.js"; import { SendXPTransactionMethod } from "./types/sendXPTransaction.js"; import { SignXPMessageMethod } from "./types/signXPMessage.js"; import { SignXPTransactionMethod } from "./types/signXPTransaction.js"; export type AvalancheWalletMethods = [ SendXPTransactionMethod, SignXPMessageMethod, SignXPTransactionMethod, GetAccountPubKeyMethod ]; /** * The RPC schema for the Avalanche Wallet methods. * * @see {@link AvalancheWalletMethods} */ export type AvalancheWalletRpcSchema = RpcSchemaOverride & AvalancheWalletMethods;