XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.52k stars 1.47k forks source link

Inconsistant minted nftoken_id field in API response (Version: 1.12.0) #4835

Open zgrguric opened 11 months ago

zgrguric commented 11 months ago

Issue Description

Field nftoken_id is present in tx 'metaData' response (see here)

But in 'metaData' of ledger response that field is missing (see here)

Expected Result

For consistency reasons that field should be present in both metadata responses.

Actual Result

Missing in 'ledger' method.

shawnxie999 commented 11 months ago

This is a known behavior, it has only been added for tx and account_tx APIs. Though it wouldn't be too hard to add for ledger and subscription.

For now, if you are using client libraries like xrpl.js and xrpl-py, feel free to use getNFTokenID(...) method to extract the NFTokenID instead.