clawmoney 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,6 +60,20 @@ program
|
|
|
60
60
|
if (credResp.ok && credResp.data) {
|
|
61
61
|
console.log(` ${chalk.bold('Credits:')} $${Number(credResp.data.balance_usd ?? 0).toFixed(2)}`);
|
|
62
62
|
}
|
|
63
|
+
// Query on-chain wallet balance via awal
|
|
64
|
+
if (a.wallet_address) {
|
|
65
|
+
try {
|
|
66
|
+
const { awalExec } = await import('./utils/awal.js');
|
|
67
|
+
const balResult = await awalExec(['balance']);
|
|
68
|
+
const balData = balResult.data;
|
|
69
|
+
if (balData && typeof balData === 'object') {
|
|
70
|
+
console.log(` ${chalk.bold('On-chain:')} ${Object.entries(balData).map(([k, v]) => `${v} ${k}`).join(', ') || '0'}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
// awal not installed or not configured — skip silently
|
|
75
|
+
}
|
|
76
|
+
}
|
|
63
77
|
console.log('');
|
|
64
78
|
}
|
|
65
79
|
catch (err) {
|