Skip to content

Commit b51eeeb

Browse files
committed
tapcli: Thread through include_leased flag
1 parent 3cceb71 commit b51eeeb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/tapcli/assets.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var (
4848
assetShowWitnessName = "show_witness"
4949
assetShowSpentName = "show_spent"
5050
assetShowLeasedName = "show_leased"
51+
assetIncludeLeasedName = "include_leased"
5152
assetShowUnconfMintsName = "show_unconfirmed_mints"
5253
assetGroupKeyName = "group_key"
5354
assetGroupAnchorName = "group_anchor"
@@ -642,6 +643,10 @@ var listAssetBalancesCommand = cli.Command{
642643
Name: groupByGroupName,
643644
Usage: "Group asset balances by group key",
644645
},
646+
cli.BoolFlag{
647+
Name: assetIncludeLeasedName,
648+
Usage: "Include leased assets in balances",
649+
},
645650
cli.StringFlag{
646651
Name: assetIDName,
647652
Usage: "A specific asset ID to run the balance query " +
@@ -663,7 +668,9 @@ func listAssetBalances(ctx *cli.Context) error {
663668

664669
var err error
665670

666-
req := &taprpc.ListBalancesRequest{}
671+
req := &taprpc.ListBalancesRequest{
672+
IncludeLeased: ctx.Bool(assetIncludeLeasedName),
673+
}
667674

668675
if !ctx.Bool(groupByGroupName) {
669676
req.GroupBy = &taprpc.ListBalancesRequest_AssetId{

0 commit comments

Comments
 (0)