Skip to content

Commit ab35ba4

Browse files
committed
chore: balance topup url
1 parent ee49e21 commit ab35ba4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

packages/use-agently/src/commands/balance.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ export const balanceCommand = new Command("balance")
2323

2424
const format = getOutputFormat(command);
2525

26+
const website = `https://use-agently.com/account/${wallet.address}`;
27+
2628
if (format === "json") {
2729
outputJson({
28-
...result,
30+
website: website,
31+
address: result.address,
32+
balance: {
33+
value: result.balance,
34+
currency: result.currency,
35+
network: result.network,
36+
},
2937
provider: activeProvider,
3038
otherProviders: otherProviders.map((p) => ({
3139
type: p.type,
@@ -35,7 +43,12 @@ export const balanceCommand = new Command("balance")
3543
})),
3644
});
3745
} else {
38-
outputTuiKeyValue({ ...result, provider: activeProvider });
46+
outputTuiKeyValue({
47+
website: website,
48+
balance: `${result.balance} USD (${result.currency} on ${result.network})`,
49+
address: result.address,
50+
provider: activeProvider,
51+
});
3952

4053
if (otherProviders.length > 0) {
4154
console.log("");

0 commit comments

Comments
 (0)