Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuidesChangelog
View Mirror World on Github
Join the Discord server

Language:

transferSol

Transfers SOL From User S Wallet Address To Another Wallet Address

transferSol accepts the amount to be sent in LAMPORTS, not SOL


import { type SolanaTransferSOLPayloadV2 } from "@mirrorworld/web3.js"
const LAMPORTS_PER_SOL = 1000000000
const payload: SolanaTransferSOLPayloadV2 = {
amount: 0.1 * LAMPORTS_PER_SOL,
to_publickey: "DG7g6XMEgqEESMSX2LbiieDUKPFqZ4ztdYvnwy5VfVX",
}
await mirrorworld.Solana.Wallet.transferSol(payload)

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog