77 lines
1.5 KiB
Plaintext
77 lines
1.5 KiB
Plaintext
import {
|
|
DocBlock,
|
|
DocSideBySide,
|
|
CodeParams,
|
|
Parameter,
|
|
Field,
|
|
Values,
|
|
CodeSnippets,
|
|
} from "../../../components/CodeDocBlock";
|
|
|
|
<DocBlock>
|
|
|
|
## getFeeRateGovernor
|
|
|
|
:::warning DEPRECATED
|
|
This method is expected to be removed in solana-core v2.0
|
|
:::
|
|
|
|
Returns the fee rate governor information from the root bank
|
|
|
|
<DocSideBySide>
|
|
|
|
<CodeParams>
|
|
|
|
### Parameters:
|
|
|
|
**None**
|
|
|
|
### Result:
|
|
|
|
The result will be an RpcResponse JSON object with `value` equal to an `object` with the following fields:
|
|
|
|
- `burnPercent: <u8>` - Percentage of fees collected to be destroyed
|
|
- `maxLamportsPerSignature: <u64>` - Largest value `lamportsPerSignature` can attain for the next slot
|
|
- `minLamportsPerSignature: <u64>` - Smallest value `lamportsPerSignature` can attain for the next slot
|
|
- `targetLamportsPerSignature: <u64>` - Desired fee rate for the cluster
|
|
- `targetSignaturesPerSlot: <u64>` - Desired signature rate for the cluster
|
|
|
|
</CodeParams>
|
|
|
|
<CodeSnippets>
|
|
|
|
### Code sample:
|
|
|
|
```bash
|
|
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
|
|
{"jsonrpc":"2.0","id":1, "method":"getFeeRateGovernor"}
|
|
'
|
|
```
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"jsonrpc": "2.0",
|
|
"result": {
|
|
"context": {
|
|
"slot": 54
|
|
},
|
|
"value": {
|
|
"feeRateGovernor": {
|
|
"burnPercent": 50,
|
|
"maxLamportsPerSignature": 100000,
|
|
"minLamportsPerSignature": 5000,
|
|
"targetLamportsPerSignature": 10000,
|
|
"targetSignaturesPerSlot": 20000
|
|
}
|
|
}
|
|
},
|
|
"id": 1
|
|
}
|
|
```
|
|
|
|
</CodeSnippets>
|
|
</DocSideBySide>
|
|
</DocBlock>
|