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

Language:

transferSPLToken

Transfer SPL token to a recipient.


_17
const recipientAddress = "C64RkD2jnvrFF8mi9FUBwfhNHuuiPuRMzCLRSWcyJKUG"
_17
const tokenMint = "5WCTV62V2X7iXdRdre73omXcF5agaYq3vj5kCXp6Mzdc"
_17
const tokenDecimals = 6
_17
const amount = 200000
_17
_17
const transactionResult = await mirrorworld.transferSPLToken({
_17
recipientAddress,
_17
amount,
_17
tokenMint,
_17
tokenDecimals,
_17
})
_17
_17
// Returns `ITransferSPLTokenResponse`
_17
export interface ITransferSPLTokenResponse {
_17
status: string;
_17
txSignature: string;
_17
}

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference