---
title: getFeeCalculatorForBlockhash
hideTableOfContents: true
h1: getFeeCalculatorForBlockhash RPC Method
---

Returns the fee calculator associated with the query blockhash, or `null` if the
blockhash has expired

<Callout type="warn" title={"Deprecated Method"}>
  This method is expected to be removed in `solana-core` v2.0. Please use
  [isBlockhashValid](/docs/rpc/http/isblockhashvalid) or
  [getFeeForMessage](/docs/rpc/http/getfeeformessage) instead.
</Callout>
