Quickstart

Get started with the ZentyGents API in just a few minutes. This guide will walk you through making your first API request.

Install the SDK

Our SDKs are available for JavaScript/TypeScript and Python. Choose the one that fits your stack.

npmnpm install @zentygents/sdk
pippip install zentygents

Get Your API Key

Create an account and generate your API key in the developer dashboard.

Go to Developer Dashboard

Code Examples

import { ZentyClient } from '@zentygents/sdk';

const client = new ZentyClient({
  apiKey: 'YOUR_API_KEY',
  network: 'mainnet-beta'
});

// Get wallet balance
async function getWalletBalance(address) {
  const balance = await client.wallets.getBalance(address);
  console.log('Balance:', balance);
  return balance;
}

// Create an agent
async function createTransferAgent(config) {
  const agent = await client.agents.create({
    type: 'transfer',
    config
  });
  return agent;
}