Get started with the ZentyGents API in just a few minutes. This guide will walk you through making your first API request.
Our SDKs are available for JavaScript/TypeScript and Python. Choose the one that fits your stack.
npm install @zentygents/sdkpip install zentygentsCreate an account and generate your API key in the developer dashboard.
Go to Developer Dashboardimport { 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;
}