Add Monero fee estimates per priority level via daemon RPC

This commit is contained in:
2026-05-25 22:37:54 +08:00
parent bdd841b632
commit 3925f3a4aa
4 changed files with 510 additions and 286 deletions
+13
View File
@@ -814,6 +814,19 @@ const rpc = BrowserView.defineRPC<RPC>({
)
return details
},
moneroGetFeeEstimate: async () => {
console.log('[rpc] moneroGetFeeEstimate')
if (!moneroManager)
throw new Error('Monero wallet RPC not started')
try {
const fee = await moneroManager.getFeeEstimate()
console.log('[monero][gas][fee]', fee)
return fee
} catch (error) {
console.log('[monero][gas][error]', error)
return
}
},
evmCreateWallet: async ({ name, phrase, passwordHash }) => {
console.log('[rpc] evmCreateWallet:', name)
const id = crypto.randomUUID()