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

Documentation Index

Fetch the complete documentation index at: https://docs.fossapay.com/llms.txt

Use this file to discover all available pages before exploring further.

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-production.fossapay.com/api/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 response = await fetch('https://api-production.fossapay.com/api/v1/wallets/crypto/create', {
  method: 'POST',
  headers: {
    'x-api-key': 'your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    network: 'solana',
    customerId: '550e8400-e29b-41d4-a716-446655440000'
  })
});

if (!response.ok) {
  throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}

const cryptoWallet = await response.json();

Response

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