Transfer a Token
Prerequisites:
Getting startedStep 1: Import the following modules
const { Client } = require("@xact-wallet-sdk/client");
require("dotenv").config();Step 2: Get Xact Fees
const xactFees = await client.getXactFeesTransfer();Step 3: Initializing Token Transfer
/* Update the fields with your informations */
const fromAccountId = '';
const toAccountId = '';
const tokenToTransfer = '';
await client.transfer({fromAccountId, toAccountId, tokenId: tokenToTransfer});Step 4: Listen for the Token Transfer
Code Check ✅
Last updated