HIP-336 NFT allowance REST API
Problem
HIP-336 describes new APIs to approve and exercise allowances to a delegate account. An allowance grants a spender the right to transfer a predetermined amount of the payer's hbars or tokens to another account of the spender's choice. The mirror node should expose this data via its REST API.
Solution
Add a /api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/nfts as per the design doc.
Alternatives
No response
i think we need to either include both approve and approveForAll on the token or move both to the account. But consistency seems like the right play here.
This is still an issue as of 0.73.0.
We would like a simple way to list NFT allowances for an account that has used the approveTokenNftAllowance or approveTokenNftAllowanceAllSerials allowance transactions.
Currently, the only way to get this information is via the spender field on an nft and paginate through every NFT with a query such as:
https://testnet.mirrornode.hedera.com/api/v1/accounts/0.0.1792/nfts
This is still not 100% complete as the spender field doesn't get set when using approveTokenNftAllowanceAllSerials. So currently there is no way to check which NFTs have been affected by the "All Serial allowances" transaction. There is another issue open for that specific bug here.
Good morning,
Yes, exactly. We need this, right now it's a bit frustrating and also If you use approveTokenNftAllowanceAllSerials you can't see anything... :(
Hello, any updates? @SimiHunjan we keep having issues with this and we can't check the Allowance...
hey @AdrianKBL ! Checked with the team and the current target is end of Q3/ early Q4.
Okey thanks for the response.
Good evening,
Any update @SimiHunjan? this is important for many reasons for KabilaApp.
Hey Guys, Any updates on this, our UX needs this functionality on karateka.io.
Thanks for your feedback. We will be working on the design for this API and a few other allowance related APIs this sprint as part of https://github.com/hashgraph/hedera-mirror-node/issues/7143. We'll be creating a HIP soon and will appreciate your feedback on it once it's available. 🙏🏻
Here is the HIP for the NFT allowance API. I would greatly appreciate any feedback.
Thanks guys was waiting for this for long time, will add it next month and let you know if there's any feedback.
Is this API still not released ?
Is this API still not released ?
Not yet. We're taking this opportunity to tackle some technical debt and this will be our first REST API written in Java instead of JavaScript. So this effort is taking a bit longer than usual. That said, a beta version of this API will be available in 0.104 for you to try and provide any feedback.
The mirror node's release 0.106.0 will include the /allowances/nfts endpoint. This implementation follows HIP-857. We invite you to explore this feature and its capabilities. Your feedback is valuable to us, and we would appreciate if you could share your experiences after using it.