mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-05 02:24:21 -05:00
Merge pull request #11790 from AmineKhaldi/did_owner_to_owner_did
Adapt the nft list command to recent nft info changes
This commit is contained in:
+17
-12
@@ -764,18 +764,23 @@ async def list_nfts(args: Dict, wallet_client: WalletRpcClient, fingerprint: int
|
||||
for n in nft_list:
|
||||
nft = NFTInfo.from_json_dict(n)
|
||||
print()
|
||||
print(f"{'Launcher coin ID:'.ljust(23)} {nft.launcher_id}")
|
||||
print(f"{'Launcher puzhash:'.ljust(23)} {nft.launcher_puzhash}")
|
||||
print(f"{'Current NFT coin ID:'.ljust(23)} {nft.nft_coin_id}")
|
||||
print(f"{'On-chain data/info:'.ljust(23)} {nft.chain_info}")
|
||||
print(f"{'Owner DID:'.ljust(23)} {nft.did_owner}")
|
||||
print(f"{'Royalty:'.ljust(23)} {nft.royalty}")
|
||||
print(f"{'NFT content hash:'.ljust(23)} {nft.data_hash.hex()}")
|
||||
print(f"{'Metadata hash:'.ljust(23)} {nft.metadata_hash.hex()}")
|
||||
print(f"{'License hash:'.ljust(23)} {nft.license_hash.hex()}")
|
||||
print(f"{'NFT series total:'.ljust(23)} {nft.series_total}")
|
||||
print(f"{'Current NFT number in the series:'.ljust(23)} {nft.series_number}")
|
||||
print(f"{'Metadata updater puzhash:'.ljust(23)} {nft.updater_puzhash}")
|
||||
print(f"{'Launcher coin ID:'.ljust(26)} {nft.launcher_id}")
|
||||
print(f"{'Launcher puzhash:'.ljust(26)} {nft.launcher_puzhash}")
|
||||
print(f"{'Current NFT coin ID:'.ljust(26)} {nft.nft_coin_id}")
|
||||
print(f"{'On-chain data/info:'.ljust(26)} {nft.chain_info}")
|
||||
print(f"{'Owner DID:'.ljust(26)} {nft.owner_did}")
|
||||
print(f"{'Owner pubkey:'.ljust(26)} {nft.owner_pubkey}")
|
||||
print(f"{'Royalty percentage:'.ljust(26)} {nft.royalty_percentage}")
|
||||
print(f"{'Royalty puzhash:'.ljust(26)} {nft.royalty_puzzle_hash}")
|
||||
print(f"{'NFT content hash:'.ljust(26)} {nft.data_hash.hex()}")
|
||||
print(f"{'Metadata hash:'.ljust(26)} {nft.metadata_hash.hex()}")
|
||||
print(f"{'License hash:'.ljust(26)} {nft.license_hash.hex()}")
|
||||
print(f"{'NFT series total:'.ljust(26)} {nft.series_total}")
|
||||
print(f"{'Current NFT number in the series:'.ljust(26)} {nft.series_number}")
|
||||
print(f"{'Metadata updater puzhash:'.ljust(26)} {nft.updater_puzhash}")
|
||||
print(f"{'NFT minting block height:'.ljust(26)} {nft.mint_height}")
|
||||
print(f"{'Inner puzzle supports DID:'.ljust(26)} {nft.supports_did}")
|
||||
print(f"{'NFT is pending for a transaction:'.ljust(26)} {nft.pending_transaction}")
|
||||
print()
|
||||
print("URIs:")
|
||||
for uri in nft.data_uris:
|
||||
|
||||
Reference in New Issue
Block a user