Skip to content

Commit

Permalink
Make 'chia plotnft -f fingerprint -i wallet_id' output JSON (#18387)
Browse files Browse the repository at this point in the history
  • Loading branch information
aqk authored Aug 7, 2024
1 parent d81415d commit 3200e6b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions chia/cmds/plotnft_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,14 @@ async def inspect_cmd(wallet_rpc_port: Optional[int], fingerprint: int, wallet_i
async with get_wallet_client(wallet_rpc_port, fingerprint) as (wallet_client, fingerprint, _):
pool_wallet_info, unconfirmed_transactions = await wallet_client.pw_status(wallet_id)
print(
{
"pool_wallet_info": pool_wallet_info,
"unconfirmed_transactions": [
{"sent_to": tx.sent_to, "transaction_id": tx.name.hex()} for tx in unconfirmed_transactions
],
}
json.dumps(
{
"pool_wallet_info": pool_wallet_info.to_json_dict(),
"unconfirmed_transactions": [
{"sent_to": tx.sent_to, "transaction_id": tx.name.hex()} for tx in unconfirmed_transactions
],
}
)
)


Expand Down

0 comments on commit 3200e6b

Please sign in to comment.