Build SPL Token Transfer Transaction
sap_build_spl_transferBuild an unsigned SPL token transfer transaction. Returns serialized base64 transaction for the agent to sign locally with sap_payments_finalize_transaction or sap_sign_transaction → sap_submit_signed_transaction. This is the hosted-safe equivalent of spl-token_transfer (which is local-signer-only and cannot run on the hosted accountless server). Builder fee applies.
SAP MCP execution guidance: Intent: hosted unsigned transaction builder. Pricing: paid builder; estimate first, then pay/build and finalize unsigned transactions locally when returned. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | No | SPL token mint address in base58. | |
| amount | No | Amount of tokens to transfer in base units (respect the mint decimals). | |
| decimals | No | Token decimals for the mint. Used for display purposes only — the on-chain amount is in base units. | |
| sourceOwner | No | Source token account owner public key in base58. This is the fee payer and must sign the transaction locally. | |
| destinationOwner | No | Destination wallet public key in base58. The destination ATA will be created if it does not exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |