-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-fees.js
More file actions
27 lines (22 loc) · 940 Bytes
/
Copy pathdebug-fees.js
File metadata and controls
27 lines (22 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { btcRpc, bpsRpc } from './server/services/rpc.js';
async function checkFees() {
console.log('--- BTC FEE CHECK ---');
try {
const btcSmart = await btcRpc.call('estimatesmartfee', [6]);
console.log('BTC Smart Fee:', btcSmart);
} catch (e) { console.log('BTC Smart Fee Failed:', e.message); }
try {
const btcNet = await btcRpc.call('getnetworkinfo');
console.log('BTC Relay Fee:', btcNet.relayfee);
} catch (e) { console.log('BTC GetNetworkInfo Failed:', e.message); }
console.log('\n--- BPS FEE CHECK ---');
try {
const bpsSmart = await bpsRpc.call('estimatesmartfee', [6]);
console.log('BPS Smart Fee:', bpsSmart);
} catch (e) { console.log('BPS Smart Fee Failed:', e.message); }
try {
const bpsNet = await bpsRpc.call('getnetworkinfo');
console.log('BPS Relay Fee:', bpsNet.relayfee);
} catch (e) { console.log('BPS GetNetworkInfo Failed:', e.message); }
}
checkFees();