Skip to content

Commit

Permalink
RPC-468 updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-helius committed Nov 18, 2024
1 parent 1f30181 commit 3130956
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,73 @@ cargo run
"id": "1"
}
```

**Request the recommended priority fee details**
The purpose of this API is to understand what data is taken into consideration given the query.
The response shows the statistical distribution of data per account as well as how much data is available in each account.
The request is identical to the one used in getPriorityFeeEstimate request. This is to ensure that same request could be
reused during analysis and during dev / operational stages

```json
{
"id": "version1",
"jsonrpc": "2.0",
"method": "getPriorityFeeEstimateDetails",
"params": [
{
"accountKeys": [
"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
],
"options": {"recommended": true}
}
]
}
```

**Response**

```json
{
"jsonrpc": "2.0",
"result": {
"priorityFeeEstimateDetails": [
[
"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
{
"estimates": {
"min": 0.0,
"low": 0.0,
"medium": 0.0,
"high": 0.0,
"veryHigh": 0.0,
"unsafeMax": 25113388.0
},
"mean": 717525.0, // mean fee payed for each transaction for account evaluated over last 150 (or less if requested less) slots
"stdev": 4244937.0, // standard deviation of fee payed for each transaction for account evaluated over last 150 (or less if requested less) slots ,
"skew": null, // skew of fee payed for each transaction for account evaluated over last 150 (or less if requested less) slots. Null if data is randomly distributed and cannot calculate
"count": 35 // Number of transactions for account that were evaluated over last 150 (or less if requested less) slots
}
],
[
"Global",
{
"estimates": {
"min": 0.0,
"low": 0.0,
"medium": 20003.0,
"high": 2276532.0,
"veryHigh": 32352142.0,
"unsafeMax": 2000000000.0
},
"mean": 8118956.0, // mean fee payed for each transaction for all accounts evaluated over last 150 (or less if requested less) slots
"stdev": 53346050.0, // standard deviation of fee payed for each transaction for all account evaluated over last 150 (or less if requested less) slots ,
"skew": null, // skew of fee payed for each transaction for all accounts evaluated over last 150 (or less if requested less) slots. Null if data is randomly distributed and cannot calculate
"count": 14877 // Number of transactions for all accounts that were evaluated over last 150 (or less if requested less) slots
}
]
],
"priorityFeeEstimate": 20003.0
},
"id": "version1"
}
```

0 comments on commit 3130956

Please sign in to comment.