Base
Base
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | data | string | نعم | Arbitrary data to hash, provided as a 0x-prefixed hex string. Empty input (`"0x"`) is valid. |
| النوع | الوصف |
|---|---|
| string | 0x-prefixed 32-byte (64-character) Keccak-256 hash of the input. |
Try it live in the Base playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32602 | invalid argument | Input is not a valid 0x-prefixed hex string. |
web3_sha3 before relying on offline computation for Base.المعاملات
0x-prefixed hex string