Retrieve a wallet
Fetches one API wallet belonging to your business.
GET
https://api-prod.useknit.io/api/v1/wallets/{id}
Path parameters
idstringrequired
The wallet's id, as returned when it was created.
Request
cURL
curl "https://api-prod.useknit.io/api/v1/wallets/d95143d2-c076-49da-b121-b3beed054bf3" \
-H "Authorization: Bearer $KNIT_ACCESS_TOKEN" \
-H "Accept: application/json"Response
200 OK
{
"statusCode": 200,
"message": "Wallet fetched successfully",
"data": {
"id": "d95143d2-c076-49da-b121-b3beed054bf3",
"businessId": "a2667393-2c6c-43c9-a288-6167e2b2b591",
"network": "MATIC_MAINNET",
"networkId": "MATIC_MAINNET",
"networks": ["MATIC_MAINNET"],
"address": "0x1adb0a39bde00fa0957e519584cb5c51fefcb37f",
"isActive": true,
"createdAt": "2024-02-26T13:59:19.000000Z",
"updatedAt": "2024-02-26T13:59:19.000000Z"
},
"success": true
}This returns the wallet record, not an on-chain balance. For the money that has moved through it, use wallet transactions.
Errors
| Status | Cause |
|---|---|
401 | Missing or invalid token, IP not allow-listed, or missing wallets:read |
404 | No wallet with that ID belongs to your business |