---
title: getRecentBlockhash (removed)
description:
  Replace getRecentBlockhash with getLatestBlockhash and getFeeForMessage.
url: /docs/rpc/deprecated/getrecentblockhash
type: reference
related:
  - /docs/rpc/deprecated
  - /docs/rpc/http/getlatestblockhash
  - /docs/rpc/http/getfeeformessage
---

`getRecentBlockhash` returned a recent blockhash together with a legacy fee
calculator.

<Callout type="warn" title="Removed RPC method">
  This method was removed in Agave v2.0. Its blockhash and fee data now come
  from separate methods.
</Callout>

## Migration

Use [getLatestBlockhash](/docs/rpc/http/getlatestblockhash) for the current
`blockhash` and `lastValidBlockHeight`. If you also need a fee estimate, compile
the transaction message with that blockhash and call
[getFeeForMessage](/docs/rpc/http/getfeeformessage). The old fee-calculator
response does not have a supported equivalent.
