Avalanche SDK Client
    Preparing search index...

    Function send

    • Sends tokens from the source chain to the destination chain.

      Parameters

      Returns Promise<SendReturnType>

      The hashes of the transactions. SendReturnType

      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",