Data Pond
English

Data Pond API

Developers

Build a reader for the shared collection using the public SDK and canonical schemas.

Read from the network

Create a read client, wait for the registry to load, then ask the network for its account count.

@the_library/public
pnpm add @the_library/public @the_library/network-config
import { DEFAULT_CHAIN_ID } from '@the_library/network-config';
import { getReadClient } from '@the_library/public/web3';

const client = getReadClient(DEFAULT_CHAIN_ID);
await client.ready;
const members = await client.bouncerStorage.nbAccounts();

Read an identifier definition

The schemas describe the fields that apps share. This example reads the ISBN definition directly from the published JSON.

@the_library/canonical-schemas
pnpm add @the_library/canonical-schemas
import isbn from '@the_library/canonical-schemas/standards/isbn'
  with { type: 'json' };

console.log(isbn.label);
// International Standard Book Number