UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

13 lines 477 B
export const getSchema = async ({ client, collectionName, schemaName, }) => { const { atomic } = client.network.config; const { provider } = client; const { rows } = await provider.v1.chain.get_table_rows({ code: atomic.atomicContract, scope: collectionName, table: "schemas", limit: 100, }); const schema = rows.find((schema) => schema.schema_name === schemaName); return schema; }; //# sourceMappingURL=getSchema.js.map