transferSol
Transfers SOL From User S Wallet Address To Another Wallet Address
transferSol
accepts theamount
to be sent in LAMPORTS, not SOL
import { type SolanaTransferSOLPayloadV2 } from "@mirrorworld/web3.js"const LAMPORTS_PER_SOL = 1000000000const payload: SolanaTransferSOLPayloadV2 = { amount: 0.1 * LAMPORTS_PER_SOL, to_publickey: "DG7g6XMEgqEESMSX2LbiieDUKPFqZ4ztdYvnwy5VfVX",}await mirrorworld.Solana.Wallet.transferSol(payload)
Edit this page on GitHub