Docs
Supported ChainsFlow EVM GatewayJSON-RPC APINetwork Methods

web3_sha3 - Flow EVM RPC Method

Calculate Keccak-256 hash on Flow EVM Gateway.

Returns Keccak-256 (not standard SHA3-256) of the given data on Flow EVM Gateway.

Request Parameters

Request
dataDATA

Data to hash

Response Body

Response
resultDATA

Keccak-256 hash of the data

Code Examples

Bash
curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "web3_sha3",
    "params": ["0x68656c6c6f"],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider, keccak256, toUtf8Bytes } from 'ethers';

const provider = new JsonRpcProvider('https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY');

// Using RPC
const hash = await provider.send('web3_sha3', ['0x68656c6c6f']);
console.log('Hash:', hash);

// Using ethers directly (faster)
const localHash = keccak256(toUtf8Bytes('hello'));
console.log('Local hash:', localHash);

On this page