GraphQL API
Query the Zenland protocol data with our GraphQL endpoint. Access escrows, agents, transaction logs, and real-time protocol statistics.
Schema Entities
Escrow
Agent
ProtocolStats
TransactionLog
Example Query
query {
escrows(limit: 10, where: { state: "ACTIVE" }) {
items {
id
buyer
seller
amount
state
}
}
}
@zenland/sdk
Official TypeScript SDK with React hooks support. Built-in caching, type safety, and seamless integration with TanStack Query.
Installation
$ npm install @zenland/sdk
Quick Example
import { zenland } from '@zenland/sdk';
// Fetch escrows
const { items } = await zenland.escrows.list({
limit: 10,
states: ['ACTIVE', 'PENDING']
});
// Get protocol stats
const stats = await zenland.protocolStats.get();