We're now supporting Polygon zkEVM!
Learn more here.

Contents

web3_sha3 RPC Method

Parameters:

  1. data - string - The data in hexadecimal form to convert into a SHA3 hash

Returns:

  1. DATA - The SHA3 hash of the given string

Code Examples:

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  const response = await provider.send("web3_sha3", [
    "0x68656c6c6f20776f726c64",
  ]);
  console.log(response);
})();
Ready to get started? Create a free account