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:
2026-09-06 18:21:07 +02:00
parent 564b016f47
commit 83cb437f19
6 changed files with 63 additions and 17 deletions
@@ -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
}