Build: buy an index
build_buy_indexBuy an index with USDC alone: one transaction buys every basket token on KyberSwap and mints the shares, reverting below the quoted minimum. Unspent USDC is refunded.
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": {
"wallet": "<wallet>",
"index": "<index>",
"usdcAmount": "<usdcAmount>"
},
"name": "build_buy_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | the index's token address | |
| wallet | Yes | the agent's wallet address — the one that will sign and send the calls | |
| usdcAmount | Yes | USDC to spend at most, as a decimal string, e.g. "25" or "0.5" |