Welcome to Unisat AI! This guide will help you get started with building AI agents that interact with UniSat's blockchain services.
- Node.js 18+ or Python 3.10+
- A UniSat API key from Unisat Developer
# Clone the repository
git clone https://github.com/unisat-wallet/unisat-ai.git
cd unisat-ai
# Install dependencies
pnpm install
# Build packages
pnpm buildLet'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();- MCP Services Guide - Learn about MCP integration
- Agent Development - Build custom agents
- API Reference - Complete API documentation