Overview
The Bech32 precompile provides address format conversion between Ethereum hex (0x...) and Cosmos Bech32 (c8...) representations. Essential for cross-domain UX and contract logic that bridges both address systems.
Precompile Address: 0x0000000000000000000000000000000000000400
Methods
| Method | Description |
|---|---|
hexToBech32(address, string) | Convert hex address to Bech32 with given prefix |
bech32ToHex(string) | Convert Bech32 address to hex |