kodadot / uniquery

Client-based SDK for Polkadot NFTs

Home Page:https://developers.kodadot.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplification of structure

RostislavLitovkin opened this issue · comments

Instead of typing:

const client = getClient("bsx")
const query = client.collectionListByIssuer('vikiival')

and keeping track of the client, or reinitializing it all over and over again, it could be better to just have one static client, that would be used like this:

const query = bsx.collectionListByIssuer('vikiival')