Data Pond API
นักพัฒนา
สร้างแอปอ่านหนังสือสำหรับคอลเล็กชันร่วมด้วย SDK สาธารณะและสคีมากลาง
อ่านจากเครือข่าย
สร้างไคลเอนต์สำหรับอ่าน รอให้โหลดทะเบียน แล้วอ่านจำนวนบัญชีจากเครือข่าย
@the_library/publicpnpm add @the_library/public @the_library/network-configimport { 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-schemaspnpm add @the_library/canonical-schemasimport isbn from '@the_library/canonical-schemas/standards/isbn'
with { type: 'json' };
console.log(isbn.label);
// International Standard Book Number