Skip to main content
POST
https://api-staging.fossapay.com
/
v1
/
wallets
/
crypto
/
create
Create Crypto Wallet
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"
  }
}

Request

x-api-key
string
required
API Key for authentication
network
string
required
The blockchain network for the crypto wallet. Must be one of: solana, evm
customerId
string
required
UUID of the customer for whom the wallet is being created

Request Example

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'
});

Response

{
  "success": true,
  "message": "Crypto wallet created successfully",
  "data": {
    "walletId": "user:u3d",
    "address": "8a0BY97fxiX26Pe2ckc3ke...z5MtWBCVk4pEx96Sqeb",
    "network": "solana"
  }
}