const{ Conflux }=require('js-conflux-sdk');const{ NFTMetaParser }=require('@confluxfans/ntf-utils');constconflux=newConflux({url: 'https://test.confluxrpc.com',networkId: 1});constipfsGateway='https://ipfs.io';constmetaParser=newNFTMetaParser(conflux,ipfsGateway);asyncfunctionmain(){constcontractAddress='cfxtest:acf9kx23mgzt70zc9n9sz7m1s7wydtt2dek5yzn4ym';consttokenId=2;consttokenURI=awaitmetaParser.getTokenURI(contractAddress,tokenId);console.log('The NFT URI is: ',tokenURI);constmeta=awaitmetaParser.getMetaByURI(tokenURI);console.log('NFT meta is: ',meta);// use the third parameter to control get 1155 uriconsttokenURI1155=awaitmetaParser.getTokenURI(contractAddress,tokenId,true);console.log('The 1155 NFT URI is: ',tokenURI1155);}main();