solana_buildTransfer
Build a SOL or SPL token transfer instruction. Returns instruction JSON (programId, keys, data) for client-side TX construction and signing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "solana_buildTransfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient address (base58) | |
| from | Yes | Sender wallet address (base58) | |
| mint | No | SPL token mint address. Omit for native SOL transfer. | |
| amount | Yes | Amount in atomic units (lamports for SOL, smallest unit for SPL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'transfer_sol' or 'transfer_spl' | |
| summary | No | human-readable description of the transfer being built | |
| instruction | Yes |