Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Conversation

@tanjiehui
Copy link
Contributor

@tanjiehui tanjiehui commented Jan 16, 2023

Summary

Adds get mint and list mints examples

Get mint:

examples % yarn get-mint
yarn run v1.22.19
$ ts-node -r dotenv/config getMint.ts
getMintResponse [{"transaction_id":391205,"status":"success","user":"0x6c660d56f4d5d926341d5d8b9a855a15095457fa","token":{"type":"ERC721","data":{"token_id":"1","id":"0x99374278b18c3f250911af5c1c6da58b1fc1f5dd95f0ac1db071809b61c43a4d","token_address":"0xcebaa2693cac6b801726d1096b2387a651d70326","quantity":"1","quantity_with_fees":""}},"timestamp":"2022-11-10T03:33:39.872898Z"}]
✨  Done in 2.28s.

List mints:

examples % yarn list-mints
yarn run v1.22.19
$ ts-node -r dotenv/config listMints.ts
listMintsResponse {"result":[{"transaction_id":391207,"status":"success","user":"0x6c660d56f4d5d926341d5d8b9a855a15095457fa","token":{"type":"ERC721","data":{"token_id":"3","id":"0x9bb275dbbdcf98e11ef57fd3e94f977150ff5d7a91b3b6935ebae824cbfdb696","token_address":"0xcebaa2693cac6b801726d1096b2387a651d70326","quantity":"1","quantity_with_fees":""}},"timestamp":"2022-11-10T03:33:39.872898Z"},{"transaction_id":391206,"status":"success","user":"0x6c660d56f4d5d926341d5d8b9a855a15095457fa","token":{"type":"ERC721","data":{"token_id":"2","id":"0x75881df65e310c2b8306d7bd48cc003292d70660ffc0b9c7870bd324bb652a74","token_address":"0xcebaa2693cac6b801726d1096b2387a651d70326","quantity":"1","quantity_with_fees":""}},"timestamp":"2022-11-10T03:33:39.872898Z"},{"transaction_id":391205,"status":"success","user":"0x6c660d56f4d5d926341d5d8b9a855a15095457fa","token":{"type":"ERC721","data":{"token_id":"1","id":"0x99374278b18c3f250911af5c1c6da58b1fc1f5dd95f0ac1db071809b61c43a4d","token_address":"0xcebaa2693cac6b801726d1096b2387a651d70326","quantity":"1","quantity_with_fees":""}},"timestamp":"2022-11-10T03:33:39.872898Z"}],"cursor":"eyJ0cmFuc2FjdGlvbl9pZCI6MzkxMjA1LCJ0b2tlbl9pZCI6IjB4OTkzNzQyNzhiMThjM2YyNTA5MTFhZjVjMWM2ZGE1OGIxZmMxZjVkZDk1ZjBhYzFkYjA3MTgwOWI2MWM0M2E0ZCIsImNyZWF0ZWRfYXQiOiIyMDIyLTExLTEwVDAzOjMzOjM5Ljg3Mjg5OFoiLCJ1cGRhdGVkX2F0IjoiMjAyMi0xMS0xMFQwMzozMzozOS44NzI4OThaIiwiY3JlYXRlZF9hdF9zb3J0IjoiMjAyMi0xMS0xMFQwMzozMzozOS44NzI4OThaLTAwMDAwMDAzOTEyMDUifQ","remaining":0}
✨  Done in 1.76s.

Why the changes

Support team's project to flesh out all core-sdk code examples.

Before merging

  • For Immutable developers: Do the changes in this PR require documentation updates? Please refer to this SDK documentation guide and list links to documentation update PRs (they don't have to be merged) below (or write N/A):
    • N/A

@tanjiehui tanjiehui merged commit d042d97 into main Jan 16, 2023
@tanjiehui tanjiehui deleted the add-get-mint-examples branch January 16, 2023 08:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants