pad_hex
Pad a hex string to a specified byte size for ABI encoding, with configurable target size and left or right padding direction.
Instructions
Pad a hex value to a specific byte size (for ABI encoding)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | The hex string to pad | |
| size | No | Target size in bytes (default: 32) | |
| direction | No | Padding direction | left |