AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.
Start building today!This method is deprecated and will not be supported in future versions.
The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.
Parameters:
Returns:
context - The information about the current state of the program
apiVersion - The version of the Solana RPC API to use
slot - An integer representing the slot for which to retrieve the fee calculator
value - A JSON object describing the cluster fee rate at the queried blockhash
feeRateGovernor - A nested object that contains the current fee rate governor configuration:
burnPercent - The percentage of fees collected to be destroyed
maxLamportsPerSignature - The maximum achievable value of lamportsPerSignature for the upcoming slot
minLamportsPerSignature - The minimum achievable value of lamportsPerSignature for the upcoming slot
targetLamportsPerSignature - The target fee rate within the cluster
targetSignaturesPerSlot - The optimal signature rate within the cluster
Code Examples:
from solana.rpc.api import Client solana_client = Client("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") print(solana_client.get_fee_rate_governor())
require "uri" require "json" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "jsonrpc": "2.0", "id": 1, "method": "getFeeRateGovernor" }) response = https.request(request) puts response.read_body
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","id":1, "method":"getFeeRateGovernor"}'
// not currently supported by solanaJS const axios = require("axios"); (() => { const config = { headers: { "Content-Type": "application/json", }, }; const data = { jsonrpc: "2.0", id: 1, method: "getFeeRateGovernor", }; axios .post("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/", data, config) .then(function (response) { // handle success console.log(response.data); }) .catch((err) => { // handle error console.log(err); }); })();