hex_to_number
Convert hex strings into decimal numbers to simplify EVM blockchain data interpretation. Turn hex-encoded values from transactions, logs, and contracts into readable integers.
Instructions
Convert a hex string to a decimal number
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": {
"hex": "<hex>"
},
"name": "hex_to_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | The hex string to convert (e.g., '0x1a') |