Data Pond
ไทย

Data Pond API

นักพัฒนา

สร้างแอปอ่านหนังสือสำหรับคอลเล็กชันร่วมด้วย SDK สาธารณะและสคีมากลาง

อ่านจากเครือข่าย

สร้างไคลเอนต์สำหรับอ่าน รอให้โหลดทะเบียน แล้วอ่านจำนวนบัญชีจากเครือข่าย

@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();

อ่านนิยามของตัวระบุ

สคีมาอธิบายเขตข้อมูลที่แอปใช้ร่วมกัน ตัวอย่างนี้อ่านนิยาม ISBN จากไฟล์ 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