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
| Field | Type | Required | Notes |
|---|---|---|---|
destination_wallet | string | Yes | Recipient wallet public key. |
source_wallet | string | No | Managed source wallet. Uses the default wallet when omitted. |
mint | string | No | Omit or use "SOL" for native SOL. Otherwise supply an SPL Token or Token-2022 mint. |
amount | number/string | Yes | Decimal SOL when sending SOL. For an SPL mint, an integer number of atomic units. |
fee_reserve_lamports | number | No | Defaults to 5000; the Sender tip and priority fee are added by the server. |
confirm | boolean | No | Defaults 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"
}