Send Hbar
Prerequisites:
Getting startedStep 1: Import the following modules
const { Client, MiddleManFeesType } = require("@xact-wallet-sdk/client");
require("dotenv").config();Step 2: Get Xact Fees
const hbarAmount = 100;
const xactFees = await client.getXactFeesPayment(hbarAmount);Step 3: Initializing a payment
1.1 From an account to an account
1.2 From an account to an account and to a middleman
Step 4: Listen to new Payments
Code Check ✅
Last updated