Show a registered NF token and its timestamp
User Story
As a Crown blockchain user, I want to be able to read information (including timestamp) about a registered token so that I can prove the existence of it at some point in the past, and its authenticity. Example: I have registered a document hash on the blockchain, so now I want to get information about that hash and the time when it was registered.
Requirements
(TBD by @artem).
Tasks
-
Implement JSON RPC API call
nftoken list
- Display timestamp
- Display metadata
-
Show NFT reg tx extra payload when display
rawtransaction
- Local NFT txs DB
-
Implement JSON RPC API call
nftoken get <token-protocol-id> <token-id>
-
Implement JSON RPC APIs:
nftoken getbytxid
-
Implement JSON RPC APIs:
nftoken totalsupply
-
Implement JSON RPC APIs:
nftoken ownerof
-
Implement JSON RPC APIs:
nftoken balanceof
- Unit-tests
- Refactor
- Code Review
- QA
Definition of done/Acceptance criteria
- Ready for production after QA check.
How to demo
- Open Crown wallet console.
- Run
nftoken get <token-protocol-id> 507850195211dca75e1120ecfa0983b94af7fc221a0b68cc164ccbf8e8056057
. - If the token is registered it should provide available information about it includein registration timestamp.
Link/refs/notes/images
Should be finished in the next milestone
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information