Skip to main content
Plasma API method that returns Keccak-256 (not the standardized SHA3-256) of the given data.

Parameters

  • data — the data to convert into a SHA3 hash

Response

  • data — the SHA3 result of the given string

web3_sha3 code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("web3_sha3", []);
  console.log(result);
}

call();