convert_to_base_units
Convert token amounts from human-readable units to blockchain base units for VeChain transactions and calculations.
Instructions
Convert a token amount from human-readable units to its smallest unit (e.g., wei).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| tokenAddress | No |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"type": "string"
},
"tokenAddress": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
},
"required": [
"amount"
],
"type": "object"
}