Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.02 KB

File metadata and controls

47 lines (32 loc) · 1.02 KB

Getting Started with Unisat AI

Welcome to Unisat AI! This guide will help you get started with building AI agents that interact with UniSat's blockchain services.

Prerequisites

Installation

# Clone the repository
git clone https://github.com/unisat-wallet/unisat-ai.git
cd unisat-ai

# Install dependencies
pnpm install

# Build packages
pnpm build

Your First Agent

Let's create a simple agent that fetches Bitcoin network fees:

import { UniSatClient } from "@unisat-ai/sdk";

const client = new UniSatClient({
  apiKey: process.env.UNISAT_API_KEY!,
});

async function main() {
  const fees = await client.getFeeEstimates();
  console.log("Current fees:", fees);
}

main();

Next Steps