Skip to main content

fee RPC Method

Provides information about the current state of the open-ledger requirements for transaction costs, assuming the FeeEscalation amendment is enabled

Updated on
Oct 4, 2023

fee RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
An object which contains the following fields:
current_ledger_size
string
The size of the current ledger
current_queue_size
string
The size of the current transaction queue
drops
object
An object containing details about the fees in drops
base_fee
string
The base fee in drops
median_fee
string
The median fee in drops
minimum_fee
string
The minimum fee in drops
open_ledger_fee
string
The fee for an open ledger in drops
expected_ledger_size
string
The expected size of the ledger
ledger_current_index
integer
The index of the current ledger
levels
object
An object containing details about the fee levels
median_level
string
The median fee level
minimum_level
string
The minimum fee level
open_ledger_level
string
The fee level for an open ledger
reference_level
string
The reference fee level
max_queue_size
string
The maximum size of the transaction queue
status
string
The status of the request
warnings
array
An object of warning which contain the following fields:
id
integer
The ID of the warning
message
string
The warning message
Request
1
curl https://docs-demo.xrp-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "fee",
6
"params": [{}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free