From 55fb9f6ad8a5c9913dbb7a00fc3f82b38c202695 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 21 Mar 2024 16:12:05 -0700 Subject: [PATCH] Update nft_info URI field Fixes #2328 --- .../clio-methods/nft_info.md | 22 +++++++++---------- @theme/markdoc/components.tsx | 4 +++- .../clio-methods/nft_info.md | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/@i18n/ja/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md b/@i18n/ja/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md index baab907afa..c6e3965f6c 100644 --- a/@i18n/ja/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md +++ b/@i18n/ja/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md @@ -128,17 +128,17 @@ labels: レスポンスは[標準フォーマット][] に従い、成功すると以下のフィールドをいくつか並べた`nft_info`レスポンスオブジェクトが返されます。 | `Field` | 型 | 説明 | -|:----------------------------------|:-------------------|:---------------------| -| `nft_id` | 文字列 | 非代替性トークン(NFT)の一意の識別子。 | -| `ledger_index` | 整数 | NFT がミント(作成)された、所有者が変わった(取引された)、バーンされた(破棄された)など、このNFTの状態が変更された最新のレジャーバージョンの[レジャーインデックス][]。返される情報には、リクエストされたレジャーと比較して直近に起こったことが含まれます。 | -| `owner` | 文字列 | このレジャーインデックスにおけるこのNFTの所有者のアカウントID。 | -| `is_burned` | 真偽値 | NFTがこのレジャーでバーンされていれば`true`を、そうでなければ`false`を返します。 | -| `flags ` | 整数 | このNFTのフラグ | -| `transfer_fee` | 整数 | このNFTの送金手数料。送金手数料の詳細については、[NFTokenMintのフィールド](../../../protocol/transactions/types/nftokenmint.md#nftokenmint-フィールド)をご覧ください。 | -| `issuer` | 文字列 | このNFTの発行者を示すアカウントID。| -| `nft_taxon` | 整数 | このNFTのTaxon。 | -| `nft_sequence` | 整数 | このNFTのシーケンス番号. | -| `uri` | 文字列 または `null` | _(NFTがこのレジャーでバーンされている場合は省略)_ NFTがこのレジャーでバーンされておらず、URIを持っていない場合、このフィールドは`null`です。NFTがこのレジャーでバーンされておらず、URIを持っている場合、このフィールドはNFTのデコードされたURIを含む文字列です。注意: バーンされたトークンのURIを取得する必要がある場合、トークンの`nft_info`をリクエストし直してください。その際、`ledger_index`にはトークンがバーンされたインデックスの一つ前({_トークンがバーンされたレジャーインデックス_} - 1)を指定してください。 | +|:----------------------------------|:------|:---------------------| +| `nft_id` | 文字列 | 非代替性トークン(NFT)の一意の識別子。 | +| `ledger_index` | 整数 | NFT がミント(作成)された、所有者が変わった(取引された)、バーンされた(破棄された)など、このNFTの状態が変更された最新のレジャーバージョンの[レジャーインデックス][]。返される情報には、リクエストされたレジャーと比較して直近に起こったことが含まれます。 | +| `owner` | 文字列 | このレジャーインデックスにおけるこのNFTの所有者のアカウントID。 | +| `is_burned` | 真偽値 | NFTがこのレジャーでバーンされていれば`true`を、そうでなければ`false`を返します。 | +| `flags ` | 整数 | このNFTのフラグ | +| `transfer_fee` | 整数 | このNFTの送金手数料。送金手数料の詳細については、[NFTokenMintのフィールド](../../../protocol/transactions/types/nftokenmint.md#nftokenmint-フィールド)をご覧ください。 | +| `issuer` | 文字列 | このNFTの発行者を示すアカウントID。| +| `nft_taxon` | 整数 | このNFTのTaxon。 | +| `nft_sequence` | 整数 | このNFTのシーケンス番号. | +| `uri` | 文字列 | このNFTのURI。NFTがURIを持っていない場合、空の文字列を返します。 {% badge href="https://github.com/XRPLF/clio/releases/tag/2.0.0" %}更新: Clio v2.0.0{% /badge %} | ## 考えられるエラー diff --git a/@theme/markdoc/components.tsx b/@theme/markdoc/components.tsx index 5b98d38e8f..450a09c4fc 100644 --- a/@theme/markdoc/components.tsx +++ b/@theme/markdoc/components.tsx @@ -100,7 +100,9 @@ export function Badge(props: { "廃止": "red", // ja: obsolete "撤回": "red", // ja: withdrawn/removed/vetoed "new in": "blue", - "新規": "blue", // ja: new in" + "新規": "blue", // ja: new in + "updated in": "blue", + "更新": "blue", // ja: updated in "in development": "lightgrey", "開発中": "lightgrey", // ja: in development } diff --git a/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md b/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md index 46e6500608..e0e23c407c 100644 --- a/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md +++ b/docs/references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md @@ -138,7 +138,7 @@ The response follows the [standard format][], with a successful result containin | `issuer` | String | The account ID which denotes the issuer of this NFT. | | `nft_taxon` | Integer | The NFT’s taxon. | | `nft_serial` | Integer | The NFT’s sequence number. | -| `uri` | String | _(Omitted if the NFT is burned at this ledger.)_. This field is an empty string if the NFT is not burned at this ledger but does not have a URI. If the NFT is not burned at this ledger and it does have a URI, this field is a string containing the URI of the NFT. NOTE: If you need to retrieve the URI of a burnt token, re-request `nft_info` for this token, specifying the `ledger_index` as the one previous to the index where this token was burned ({_ledger-index-where-token-was-burned_} - 1). | +| `uri` | String | The NFT's URI, or an empty string if the NFT does not have a URI. {% badge href="https://github.com/XRPLF/clio/releases/tag/2.0.0" %}Updated in: Clio v2.0.0{% /badge %} | ## Possible Errors