Quick Start
Get started with Fiatsend in 5 minutes.
Prerequisites
Before you begin, you'll need:
- Fiatsend Account: Sign up at console.fiatsend.network (opens in a new tab)
- API Key: Generate your API key from the developer dashboard
- Node.js: Version 16 or higher
- Wallet: A Web3 wallet (MetaMask, WalletConnect, etc.)
Installation
npm install @fiatsend/sdk
# or
yarn add @fiatsend/sdk
# or
pnpm add @fiatsend/sdk
Initialize the SDK
import { FiatsendSDK } from "@fiatsend/sdk";
// Initialize with your API key
const sdk = new FiatsendSDK({
apiKey: "fs_your_api_key_here", // Your generated API key
environment: "production", // or "staging", "development"
chainId: 324, // Lisk Sepolia testnet
rpcUrl: "https://rpc.sepolia-api.lisk.com" // Optional custom RPC
});
// Check if SDK is configured
console.log(sdk.isConfigured()); // true
Your First Payment
// Send USDT to mobile money
const payment = await sdk.payment.initiatePayment({
amount: 100,
currency: "USDT",
recipient: "+233551234567",
description: "Payment for services",
country: "GH"
});
console.log("Transaction ID:", payment.transactionId);
console.log("Status:", payment.status);
🎉 Done! Your first transaction is complete.
What You Can Do
🔄 Onramp & Offramp
Convert between fiat and crypto seamlessly
- • Cash → USDT/USDC
- • USDT/USDC → Mobile Money
- • Bank transfers
- • Agent network
💸 Instant Payments
Send payments to mobile numbers instantly
- • USDT/USDC → Mobile Money
- • Cross-border transfers
- • Real-time settlement
- • Multiple currencies
👥 P2P Transfers
Send money to anyone using mobile numbers
- • Mobile number resolution
- • Instant transfers
- • Transaction history
- • Contact management
🏪 Merchant Solutions
Accept crypto payments for goods and services
- • Payment request addresses
- • Fiat settlements
- • Analytics dashboard
- • Webhook notifications
Need Help?
- Documentation: API Reference
- Support: Discord (opens in a new tab)
- GitHub: Examples (opens in a new tab)