Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
web3_sha3 computes the Keccak-256 hash of a piece of hex-encoded data and returns the 32-byte digest. Despite the name "sha3," this is the original Keccak-256 used throughout the EVM, not the later NIST SHA3-256 standard — the two produce different output for the same input. Base is Coinbase's OP Stack optimistic rollup that settles to Ethereum and uses ETH for gas, and because it runs the same EVM as Ethereum, Keccak-256 hashing underpins how its contracts derive event topics, function selectors, and storage slots. Call it at https://base.therpc.io/YOUR_API_KEY on chain ID 8453 (hex 0x2105).
Transfer(address,address,uint256) (hex-encoded) so you can filter Base logs with eth_getLogs for that exact topic.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | data | string | Oui | Arbitrary data to hash, provided as a 0x-prefixed hex string. Empty input (`"0x"`) is valid. |
| Type | Description |
|---|---|
| string | 0x-prefixed 32-byte (64-character) Keccak-256 hash of the input. |
Try it live in the Base playground.
| Code | Message | Cause |
|---|---|---|
-32602 | invalid argument | Input is not a valid 0x-prefixed hex string. |
web3_sha3 before relying on offline computation for Base.Paramètres
0x-prefixed hex string