> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# web3_sha3 | Base

Base API method `web3_sha3` computes the Keccak-256 hash of the given data. This method is a utility function often used in Base for generating hashes of arbitrary data, which is a common requirement for various cryptographic operations.

This example computes Keccak-256 for the value `Chainstack`.

`Chainstack` in hex: `0x436861696E737461636B`.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `data` — the data to hash, typically provided as a hexadecimal string.

## Response

* `result` — the Keccak-256 hash of the input data, returned as a hexadecimal string.

## Use case

The `web3_sha3` method is essential for:

* Generating identifiers or hashes for on-chain data storage or referencing.
* Creating cryptographic proofs that require a hash of data.
* Developers needing to perform off-chain hash calculations that match the Base network's hashing algorithm.


## OpenAPI

````yaml /openapi/base_node_api/web3_sha3.json POST /2fc1de7f08c0465f6a28e3c355e0cb14
openapi: 3.0.0
info:
  title: web3_sha3 example
  version: 1.0.0
  description: >-
    This is an API example for web3_sha3, a method to compute the Keccak-256
    hash of the given data.
servers:
  - url: https://base-mainnet.core.chainstack.com
security: []
paths:
  /2fc1de7f08c0465f6a28e3c355e0cb14:
    post:
      tags:
        - Ethereum Utilities
      summary: web3_sha3
      operationId: sha3
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: web3_sha3
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - '0x436861696E737461636B'
                  items:
                    type: string
      responses:
        '200':
          description: The SHA3 result of the given data
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: The Keccak-256 hash of the input data.

````