Consolidate SOL
Moves available SOL from many managed wallets into one destination wallet.
POST /v1/sol/consolidate/execute
Each source wallet gets its own transaction because each source signs and pays its own transaction fee.
Request
| Field | Type | Required | Notes |
|---|---|---|---|
destination_wallet | string | Yes | Wallet receiving consolidated SOL. |
source_wallets | string[] | No | Managed source wallets. If omitted, all active managed wallets except destination are used. |
fee_reserve_lamports | number | No | Defaults to 5000. The server also reserves the Sender tip and priority fee per source wallet. |
confirm | boolean | No | Defaults to true. |
Example
const result = await solanaLaser("/v1/sol/consolidate/execute", {
destination_wallet: "CONSOLIDATION_WALLET",
source_wallets: ["MANAGED_SOURCE_1", "MANAGED_SOURCE_2"],
confirm: true,
});
Response
{
"destination_wallet": "CONSOLIDATION_WALLET",
"fee_reserve_lamports": 5000,
"total_transfer_lamports": 5000000000,
"total_transfer_sol": "5.000000000",
"transactions": [
{
"source_wallet": "MANAGED_SOURCE_1",
"source_balance_lamports": 2000005000,
"transfer_lamports": 2000000000,
"transfer_sol": "2.000000000",
"signature": "SOLANA_SIGNATURE",
"confirmed": true,
"confirmation_status": "confirmed"
}
]
}
fee_reserve_lamports in the response is the effective per-source reserve.