Marketplace has launched, further enabling blockchain developers! Learn more

Contents

web3_sha3 RPC method

Parameters:

  1. Data - []string - The data in hex form to convert into a SHA3 hash.

Returns:

  1. Result - String - The SHA3 result 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/ext/bc/C/rpc"
  );
  const params = ["0x736e6f7773746f726d"];
  const result = await provider.send("web3_sha3", params);
  console.log(result);
})();
Ready to get started? Create a free account