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

28 lines 1.08 kB
import { AvalancheWalletCoreClient } from "../../clients/createAvalancheWalletCoreClient.js"; import { SendParameters, SendReturnType } from "./types/send.js"; /** * Sends tokens from the source chain to the destination chain. * @param client - The client to use for the transaction. {@link AvalancheWalletCoreClient} * @param params - The parameters for the transaction. {@link SendParameters} * @returns The hashes of the transactions. {@link SendReturnType} * * @example * ```ts * import { AvalancheWalletCoreClient } from "@avalabs/wallet-core-client"; * import { send } from "@avalabs/wallet-core-client/methods/wallet/send"; * * const client = new AvalancheWalletCoreClient({ * network: "mainnet", * transport: { * type: "custom", * provider: window.avalanche, * }, * }); * * const txHashes = await send(client, { * amount: 1, * to: "0x0000000000000000000000000000000000000000", * }); */ export declare function send(client: AvalancheWalletCoreClient, params: SendParameters): Promise<SendReturnType>; //# sourceMappingURL=send.d.ts.map