@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
14 lines • 1.15 kB
TypeScript
import { Chain, Transport } from "viem";
import { DeployErc20Parameters, DeployErc20ReturnType } from "../../methods/wallet/erc20/index.js";
import { GetErc20DecimalsParameters, GetErc20DecimalsReturnType } from "../../methods/wallet/erc20/types/getErc20Decimals.js";
import { GetErc20NameParameters, GetErc20NameReturnType } from "../../methods/wallet/erc20/types/getErc20Name.js";
import { GetErc20SymbolParameters, GetErc20SymbolReturnType } from "../../methods/wallet/erc20/types/getErc20Symbol.js";
import { AvalancheWalletCoreClient } from "../createAvalancheWalletCoreClient.js";
export type Erc20Actions = {
deploy: (args: DeployErc20Parameters) => Promise<DeployErc20ReturnType>;
getName: (args: GetErc20NameParameters) => Promise<GetErc20NameReturnType>;
getSymbol: (args: GetErc20SymbolParameters) => Promise<GetErc20SymbolReturnType>;
getDecimals: (args: GetErc20DecimalsParameters) => Promise<GetErc20DecimalsReturnType>;
};
export declare function erc20Actions<chain extends Chain | undefined = Chain | undefined>(client: AvalancheWalletCoreClient<Transport, chain>): Erc20Actions;
//# sourceMappingURL=erc20.d.ts.map