aex402_buildSwap
ActiveTool of aeX402 RPC (Solana + Robinhood Chain)
declared in 0.1.0
Build an AeX402 AMM swap action. Fetches live pool state, computes output with slippage protection, returns all instruction parameters and account addresses for client signing.
Parameters schema
{
"type": "object",
"required": [
"pool",
"inputMint",
"amount",
"userWallet"
],
"properties": {
"pool": {
"type": "string",
"description": "Pool account address (base58)"
},
"amount": {
"type": "number",
"description": "Input amount in atomic units"
},
"inputMint": {
"type": "string",
"description": "Input token mint address"
},
"userWallet": {
"type": "string",
"description": "User wallet address (for account derivation)"
},
"slippageBps": {
"type": "number",
"description": "Max slippage in basis points (default 50 = 0.5%)"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
aeX402 RPC (Solana + Robinhood Chain)
1/7 registries