cURL
curl --request POST \ --url https://api-staging.fossapay.com/v1/transfers/crypto \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "customerId": "<string>", "recipient": "<string>", "network": "<string>", "currency": "<string>", "amount": 123 } '
{ "status": true, "message": "processing crypto transaction", "data": { "token": { "symbol": "usdc", "amount": 100.50 }, "network": "solana", "recipientAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "senderAddress": "0x1234567890abcdef1234567890abcdef12345678", "status": "processing" } }
Make crypto transfer in USDT and USDC
solana
evm
usdc
usdt
curl -X POST https://api-staging.fossapay.com/v1/transfers/crypto \ -H "x-api-key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "customerId": "550e8400-e29b-41d4-a716-446655440000", "recipient": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "network": "solana", "currency": "usdc", "amount": 100.50 }'
const transfer = await client.cryptoTransfers.execute({ customerId: '550e8400-e29b-41d4-a716-446655440000', recipient: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F', network: 'solana', currency: 'usdc', amount: 100.50 });
{ "status": false, "message": "Bad request", "error": "Invalid customer ID" }
{ "status": false, "message": "Internal server error", "error": "Transaction processing failed" }