Skip to main content

Quickstart

Get your AI agent buying real-time crypto data in under 5 minutes.

Prerequisites

  • Node.js 18+
  • A small amount of STX (0.01 STX is enough to start)

Step 1: Install the SDK

Step 2: Generate a Wallet

Generate a new Stacks mainnet wallet:
This outputs:
Save your private key securely. Never commit it to source code. Use environment variables.

Step 3: Fund Your Wallet

Send STX to your SP... address from any exchange (Binance, OKX, etc.) or another Stacks wallet. You only need 0.01 STX to start. The cheapest feed costs 0.003 STX ($0.001).

Step 4: Create Your Agent

Create a file my-agent.ts:

Step 5: Run It

Output:
Your agent just paid 0.003 STX and received real-time BTC sentiment data. The payment transaction is verifiable on Hiro Explorer.

Next Steps

Browse All 16 Feeds

See all available data feeds with pricing and descriptions.

Build a Smart Agent

Learn conditional buying based on market conditions.

Chain Multiple Feeds

Buy multiple feeds in sequence for cross-analysis.

SDK Configuration

Customize agent name, timeout, and more.