Prepare a player token trade
icare_token_prepareA buy (USDC amount) or a sale (token amount) of a player token, paid from and credited to the ICARE Portfolio of the wallet: the quote, the minimum received, and the Portfolio action to sign with personal_sign over its digest, then to post with the signature to the ICARE relay. No gas for the wallet; the relay keeps the network fee in USDC.
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": {
"action": "<action>",
"wallet": "<wallet>",
"token": "<token>",
"amount": "<amount>"
},
"name": "icare_token_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token address or symbol, see icare_player_tokens | |
| action | Yes | ||
| amount | Yes | USDC to spend (buy) or tokens to sell (sell), digits with an optional decimal point | |
| wallet | Yes | Address of the wallet that will sign | |
| slippage | No | Accepted price move in percent, 2 by default |