@effectai/sdk
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
12 lines • 400 B
JavaScript
export const getCollection = async ({ client, collectionName, }) => {
const { atomic } = client.network.config;
const { provider } = client;
const { rows } = (await provider.v1.chain.get_table_rows({
code: atomic.atomicContract,
scope: collectionName,
table: "collections",
limit: 100,
}));
return rows;
};
//# sourceMappingURL=getCollection.js.map