convert_to_base_units
convert_to_base_unitsConvert token amounts from human-readable units to blockchain base units like wei for VeChain transactions and calculations.
Instructions
Convert a token amount from human-readable units to its smallest unit (e.g., wei).
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": {
"amount": "<amount>"
},
"name": "convert_to_base_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| tokenAddress | No |