Getting Started
This guide will walk you through setting up xAPI-Fi in your development environment.
Prerequisites
Before you begin, make sure you have:
- ▹Node.js 18+ installed
- ▹npm or yarn package manager
- ▹A Web3 wallet (for testing payments)
- ▹Basic knowledge of TypeScript/JavaScript
Installation
Choose your preferred package manager:
terminal
npm install @xapi-fi/sdk
Get Your API Key
- ▹Visit xapi-fi.com/dashboard
- ▹Connect your wallet using Privy
- ▹Navigate to Settings → API Keys
- ▹Create a new API key for your project
Configure Environment Variables
Create a .env file in your project root:
terminal
XAPI_FI_KEY=your_api_key_here
Next Steps
- ▹Quickstart Tutorial - Build a complete example in 5 minutes