Skip to main content
GET
https://api-staging.fossapay.com
/
v1
/
wallets
/
crypto
/
{walletId}
Get Wallet by ID
curl --request GET \
  --url https://api-staging.fossapay.com/v1/wallets/crypto/{walletId} \
  --header 'x-api-key: <x-api-key>'
{
  "status": "success",
  "statusCode": 200,
  "message": "Crypto wallet retrieved successfully",
  "data": [
    {
      "address": "GbnnysYh3Y1ZLqPxkaz....76Upv12iP4sNGeHA2H4z2",
      "network": "solana",
      "tokens": {
        "usdc": {
          "amount": "0",
          "rawAmount": "0"
        },
        "usdt": {
          "amount": "0",
          "rawAmount": "0"
        }
      }
    }
  ]
}

Path Parameters

walletId
string
required
Crypto wallet ID (crypto address entity ID)

Headers

x-api-key
string
required
API Key for authentication

Request Example

curl -X GET https://api-staging.fossapay.com/v1/wallets/crypto/user:u3d \
  -H "x-api-key: your_api_key_here"
const wallet = await client.cryptoWallets.getById('user:u3d');

Response

{
  "status": "success",
  "statusCode": 200,
  "message": "Crypto wallet retrieved successfully",
  "data": [
    {
      "address": "GbnnysYh3Y1ZLqPxkaz....76Upv12iP4sNGeHA2H4z2",
      "network": "solana",
      "tokens": {
        "usdc": {
          "amount": "0",
          "rawAmount": "0"
        },
        "usdt": {
          "amount": "0",
          "rawAmount": "0"
        }
      }
    }
  ]
}

Error Responses