Docs
Centrifuge

web3_sha3 - Calculate Keccak-256 Hash on...

Calculate Keccak-256 hash of data on Centrifuge. Essential RPC method for cryptographic operations on Centrifuge's Substrate parachain with EVM for real-world asset tokenization and DeFi.

Calculate Keccak-256 hash on the Centrifuge network.

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
resultOBJECT

The return value depends on the specific method being called.

Implementation Example

Bash
curl -X POST https://api-centrifuge.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "web3_sha3",
    "params": ["0x68656c6c6f20776f726c64"],
    "id": 1
  }'
JavaScript
const response = await fetch('https://api-centrifuge.n.dwellir.com/YOUR_API_KEY', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'web3_sha3',
    params: [],
    id: 1
  })
});

const data = await response.json();
console.log(data.result);

On this page