build_token_transfer
Generate unsigned ERC-20 transfer calldata with automatic decimal parsing, refusing over-precise amounts to prevent errors.
Instructions
Build UNSIGNED calldata for an ERC-20 transfer. Amount is parsed against the token's real decimals; over-precise amounts are refused rather than truncated.
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": {
"token": "<token>",
"to": "<to>",
"amount": "<amount>"
},
"name": "build_token_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| token | Yes | ||
| amount | Yes |