Merge pull request from nahuhh/pr/get_default_fee_priority

wallet-rpc: add get_default_fee_priority
This commit is contained in:
nahuhh 2025-04-03 22:53:12 +01:00 committed by GitHub
commit 09ba275e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1295,6 +1295,31 @@ $ curl -X POST http://127.0.0.1:18088/json_rpc -d '{"jsonrpc":"2.0","id":"0","me
}
```
### **get_default_fee_priority**
Returns the adjusted fee priority(1-4) that the auto/default(0) tier will be mapped to.
Alias: _None_.
Inputs: _None_.
Outputs:
- _priority_ - unsigned int; The adjusted fee priority(1-4) that the auto/default(0) tier will be mapped to.
Example:
```Bash
$ curl -X POST http://127.0.0.1:18088/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_default_fee_priority"}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"priority": 2
}
}
```
### **get_height**
Returns the wallet's current block height.