AgentMarket Documentation

Quick Start

Get up and running in under 5 minutes. Make your first paid API call with just a few lines of code.

npm install agstell-sdk

import { AgentMarket } from 'agstell-sdk'

const agent = new AgentMarket({
  secretKey: process.env.STELLAR_SECRET_KEY,
  network: 'testnet',
})

// Payment happens automatically via Stellar
const result = await agent.get('weather', { city: 'Tokyo' })
console.log(result.data)   // { temp: 22, conditions: 'Sunny', ... }
console.log(result.metadata.txHash)  // Stellar transaction hash

Something missing? Open an issue on GitHub.