> ## 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.

# getRecentBlockhash | Solana

> Reference for the getRecentBlockhash JSON-RPC method on the Solana blockchain via Chainstack nodes. Parameters, response, and examples included.

<Warning>
  **Removed**

  The `getRecentBlockhash` method was removed in Agave 2.0 and returns `Method not found` on current validators. Use [getLatestBlockhash](/reference/solana-getlatestblockhash) instead.
</Warning>

The Solana `getRecentBlockhash` method returns a recent block hash from the ledger, and a fee schedule that can be used to compute the cost of submitting a transaction using it.

This method is crucial for transaction construction and submission in Solana. The returned blockhash is used to indicate when a transaction was constructed, which is important for security reasons. The fee calculator provides information about the current network fees.

## Parameters

This method does not require any parameters.

## Response

* `blockhash` — a string representing the blockhash of a recent block.
* `feeCalculator` — an object containing:
  * `lamportsPerSignature` — the current fee in lamports per signature.

## Use case

A common use case for `getRecentBlockhash` is in transaction preparation. When constructing a transaction, you need to include a recent blockhash to ensure the transaction is processed in a timely manner and to prevent replay attacks. The fee calculator information can be used to estimate the cost of the transaction.


## OpenAPI

````yaml openapi/solana_node_api/getRecentBlockhash.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getRecentBlockhash example
  version: 1.0.0
  description: This is an API example for Solana's getRecentBlockhash.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getRecentBlockhash
      operationId: getRecentBlockhash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getRecentBlockhash
      responses:
        '200':
          description: Recent blockhash details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      context:
                        type: object
                        properties:
                          slot:
                            type: integer
                      value:
                        type: object
                        properties:
                          blockhash:
                            type: string
                          feeCalculator:
                            type: object
                            properties:
                              lamportsPerSignature:
                                type: integer

````