number_to_hex
Convert decimal numbers to hexadecimal strings for EVM transactions and smart contract data encoding.
Instructions
Convert a decimal number to a hex string
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": {
"number": "<number>"
},
"name": "number_to_hex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The decimal number to convert |