Skip to main content

Send Asset

Sends native SOL or a fungible SPL Token / Token-2022 mint from one managed wallet to another wallet.

POST /v1/sol/transfer/execute

The source wallet is server-signed and sent through Helius Sender. If the recipient lacks an associated token account for an SPL mint, SolanaLaser creates it idempotently in the same transaction.

Request

FieldTypeRequiredNotes
destination_walletstringYesRecipient wallet public key.
source_walletstringNoManaged source wallet. Uses the default wallet when omitted.
mintstringNoOmit or use "SOL" for native SOL. Otherwise supply an SPL Token or Token-2022 mint.
amountnumber/stringYesDecimal SOL when sending SOL. For an SPL mint, an integer number of atomic units.
fee_reserve_lamportsnumberNoDefaults to 5000; the Sender tip and priority fee are added by the server.
confirmbooleanNoDefaults to true.

The managed source wallet pays transaction fees, the Sender tip, and any rent needed to create the recipient token account.

SOL Example

const transfer = await solanaLaser("/v1/sol/transfer/execute", {
destination_wallet: "RECIPIENT_WALLET",
amount: 0.25,
});

SPL Token Example

const transfer = await solanaLaser("/v1/sol/transfer/execute", {
source_wallet: "MANAGED_SOURCE_WALLET",
destination_wallet: "RECIPIENT_WALLET",
mint: "TOKEN_MINT",
amount: "1000000", // atomic units
});

Response

{
"source_wallet": "MANAGED_SOURCE_WALLET",
"destination_wallet": "RECIPIENT_WALLET",
"mint": "TOKEN_MINT",
"asset_type": "spl_token",
"amount": "1000000",
"amount_units": 1000000,
"decimals": 6,
"source_token_account": "SOURCE_ATA",
"destination_token_account": "DESTINATION_ATA",
"fee_reserve_lamports": 205000,
"signature": "SOLANA_SIGNATURE",
"confirmed": true,
"confirmation_status": "confirmed"
}