The client to use for the transaction. AvalancheWalletCoreClient
The parameters for the transaction. SendParameters
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",
Sends tokens from the source chain to the destination chain.