Create and send a stablecoin transaction from one of your wallets to a specified recipient address
POST /transactions
Authorization: Bearer YOUR_API_KEY
curl -X POST https://api.stablecraft.io/v1/transactions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "from_wallet_id": "wallet_123", "to_address": "0xabc123def4567890abc123def4567890abc123de", "amount": "100.00", "asset": "USDC" }'
Or using JavaScript:
fetch('https://api.stablecraft.io/v1/transactions', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ from_wallet_id: "wallet_123", to_address: "0xabc123def4567890abc123def4567890abc123de", amount: "100.00", asset: "USDC" }) }) .then(res => res.json()) .then(data => console.log(data));
{ "id": "txn_789", "status": "pending", "asset": "USDC", "amount": "100.00", "from_wallet_id": "wallet_123", "to_address": "0xabc123def4567890abc123def4567890abc123de", "created_at": "2025-04-26T19:30:00Z" }