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

Returns a recent block hash from the ledger, a fee schedule that can be used to
compute the cost of submitting a transaction using it, and the last slot in
which the blockhash will be valid.

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