Closed peterjah closed 1 year ago
@B-Naoufal @Thykof I haven't tested it. Let me know if you did, so we can push this ticket to Done.
@B-Naoufal @Thykof I haven't tested it. Let me know if you did, so we can push this ticket to Done.
I have tested with the UI:
For me QA is OK
Context In order to create the Asset page, we need a new endpoint retrieve all assets (mrc-20) info:
How to The new endpoint should be a GET request taking in parameters a list of assets (SC addresses) For each asset, the informations should be retrieved (Read SC)
Technical details Considering SC token address can be a user input, errors should be handeled in case of a non standard token (or even a random SC) is passed. In case of one of the Address is not valid. the others ones should be retrieved!! so choose the http response structure accordingly. Retrival of asset infos (read SC) ,must be parrallelized Optionnally, we can add a new function in the mrc20 standard to retrieve all the token info in one call.
QA testing Usin curl or postman, the tokens info are retrieved in a reasonnable amount of time