Get All Wallets
The Get All Wallets
fetches all cryptocurrency wallets associated with the user.
Endpoint:
GET
: {{baseURL}}/v1/ramp/wallet
Headers
Name | Value | Description |
---|---|---|
Content-Type | application/json | Specifies the media type |
x-api-key | {{API_KEY}} | Your API authentication key |
Example Request
curl --request GET \
--url {{baseURL}}/v1/ramp/wallet \
--header 'Content-Type: application/json' \
--header 'x-api-key: {{API_KEY}}'
Example Response (200 OK):
{
"message": "fetch wallet successfully",
"status": "success",
"data": [
{
"id": "ad14b5f8-bf59-4300-8749-xxxxxxxxxx",
"address": "0xc21324y5d31c914a87c6611c1xxxxxxxxxxxxxxx",
"network": "MATIC"
},
{
"id": "4gh4cab2-xxxx-48d5-99c1-xxxxxxxxxx",
"address": "0x3c499cxxxxef5e3811e1192cexxxxxxxxxxxxxxxxx",
"network": "ERC20"
}
]
}
Response Fields
Field | Type | Description |
---|---|---|
id | string | Unique wallet identifier |
address | string | Blockchain wallet address |
network | string | Network the wallet is on (e.g. MATIC, ERC20) |
Error Codes
Code | Message | Meaning |
---|---|---|
401 | Unauthorized | Missing or invalid API key |
500 | Internal Server Error | Server-side issue fetching wallet |