This repository was archived by the owner on May 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +75
-0
lines changed Expand file tree Collapse file tree 4 files changed +75
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,22 @@ Update [mint.ts](./mint.ts#L9) with your minting details then run
8686yarn mint
8787```
8888
89+ ## List mints
90+
91+ Update [ listMints.ts] ( ./listMints.ts#L13 ) with your mint query details then run
92+
93+ ``` sh
94+ yarn list-mints
95+ ```
96+
97+ ## Get mint
98+
99+ Update [ getMint.ts] ( ./getMint.ts#L13 ) with your mint id then run
100+
101+ ``` sh
102+ yarn get-mint
103+ ```
104+
89105## Create order
90106
91107Update [ createOrder.ts] ( ./createOrder.ts#L9 ) with your order details then run
Original file line number Diff line number Diff line change 1+ import { Config , ImmutableX } from '@imtbl/core-sdk' ;
2+ import { generateWalletConnection } from './libs/walletConnection' ;
3+
4+ ( async ( ) => {
5+ try {
6+ const walletConnection = await generateWalletConnection ( 'goerli' ) ;
7+
8+ // IMX class client
9+ const client = new ImmutableX ( Config . SANDBOX ) ;
10+
11+ // Get details of a mint with the mint ID (transaction_id returned from listMints)
12+ const getMintResponse = await client . getMint ( {
13+ id : ''
14+ } ) ;
15+
16+ console . log ( 'getMintResponse' , JSON . stringify ( getMintResponse ) ) ;
17+ } catch ( err ) {
18+ console . error ( err ) ;
19+ process . exit ( 1 ) ;
20+ }
21+ } ) ( ) ;
Original file line number Diff line number Diff line change 1+ import { Config , ImmutableX } from '@imtbl/core-sdk' ;
2+ import { generateWalletConnection } from './libs/walletConnection' ;
3+
4+ ( async ( ) => {
5+ try {
6+ const walletConnection = await generateWalletConnection ( 'goerli' ) ;
7+
8+ // IMX class client
9+ const client = new ImmutableX ( Config . SANDBOX ) ;
10+
11+ // Get a list of mints
12+ const listMintsResponse = await client . listMints ( {
13+ //pageSize: 100,
14+ //cursor: '',
15+ //orderBy: '',
16+ //direction: '',
17+ //user: '',
18+ //status: '',
19+ //minTimestamp: '',
20+ //maxTimestamp: '',
21+ //tokenType: '',
22+ //tokenId: '',
23+ //assetId: '',
24+ //tokenName: '',
25+ //tokenAddress: '',
26+ //minQuantity: '',
27+ //maxQuantity: '',
28+ //metadata: ''
29+ } ) ;
30+
31+ console . log ( 'listMintsResponse' , JSON . stringify ( listMintsResponse ) ) ;
32+ } catch ( err ) {
33+ console . error ( err ) ;
34+ process . exit ( 1 ) ;
35+ }
36+ } ) ( ) ;
Original file line number Diff line number Diff line change 1616 "create-project" : " ts-node -r dotenv/config createProject.ts" ,
1717 "create-collection" : " ts-node -r dotenv/config createCollection.ts" ,
1818 "mint" : " ts-node -r dotenv/config mint.ts" ,
19+ "list-mints" : " ts-node -r dotenv/config listMints.ts" ,
20+ "get-mint" : " ts-node -r dotenv/config getMint.ts" ,
1921 "transfer-nfts" : " ts-node -r dotenv/config transferNfts.ts" ,
2022 "transfer-eth" : " ts-node -r dotenv/config transferEth.ts" ,
2123 "transfer-erc20" : " ts-node -r dotenv/config transferErc20.ts"
You can’t perform that action at this time.
0 commit comments