@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 (23 loc) • 837 B
text/typescript
import { RpcSchemaOverride } from "viem";
import { BaseFeeMethod } from "../public/types/baseFee.js";
import { GetChainConfigMethod } from "../public/types/getChainConfig.js";
import { MaxPriorityFeePerGasMethod } from "../public/types/maxPriorityFeePerGas.js";
import { GetAtomicTxMethod } from "./types/getAtomicTx.js";
import { GetAtomicTxStatusMethod } from "./types/getAtomicTxStatus.js";
import { GetUTXOsMethod } from "./types/getUTXOs.js";
import { IssueTxMethod } from "./types/issueTx.js";
export type CChainMethods = [
BaseFeeMethod,
GetChainConfigMethod,
MaxPriorityFeePerGasMethod,
GetAtomicTxMethod,
GetAtomicTxStatusMethod,
GetUTXOsMethod,
IssueTxMethod
];
/**
* The RPC schema for the C-Chain methods.
*
* @see {@link CChainMethods}
*/
export type CChainRpcSchema = RpcSchemaOverride & CChainMethods;