cURL
curl --request POST \ --url https://api-staging.fossapay.com/v1/wallets/crypto/create \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "network": "<string>", "customerId": "<string>" } '
{ "success": true, "message": "Crypto wallet created successfully", "data": { "walletId": "user:u3d", "address": "8a0BY97fxiX26Pe2ckc3ke...z5MtWBCVk4pEx96Sqeb", "network": "solana" } }
Create a new crypto wallet for a merchant
solana
evm
curl -X POST https://api-staging.fossapay.com/v1/wallets/crypto/create \ -H "x-api-key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "network": "solana", "customerId": "550e8400-e29b-41d4-a716-446655440000" }'
const cryptoWallet = await client.cryptoWallets.create({ network: 'solana', customerId: '550e8400-e29b-41d4-a716-446655440000' });