add fee priority to Monero wallet withdrawal API.
Pass sweep_all priority through the withdraw endpoint so admins can choose transaction fee speed.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Maps to monero-wallet-rpc `sweep_all` / `transfer` priority (0–4).
|
||||
*
|
||||
* Absolute fee multipliers (fee algorithm 4, current mainnet) are 1, 5, 25, 1000 for priorities 1–4.
|
||||
* Official GUI labels are scaled relative to Normal (priority 2): 0.2×, 1×, 5×, 200×.
|
||||
*
|
||||
* @see https://www.getmonero.org/resources/developer-guides/wallet-rpc.html#sweep_all
|
||||
*/
|
||||
export enum MoneroWithdrawPriority {
|
||||
Automatic = 0,
|
||||
Slow = 1,
|
||||
Normal = 2,
|
||||
Fast = 3,
|
||||
Fastest = 4
|
||||
}
|
||||
Reference in New Issue
Block a user