List accounts
curl --request GET \
--url https://api.example.com/client/accounts \
--header 'Authorization: Bearer <token>' \
--header 'X-Hevn-Account: <x-hevn-account>'import requests
url = "https://api.example.com/client/accounts"
headers = {
"X-Hevn-Account": "<x-hevn-account>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Hevn-Account': '<x-hevn-account>', Authorization: 'Bearer <token>'}
};
fetch('https://api.example.com/client/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"accountId": "acc_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"kind": "external",
"asset": "USDC",
"chain": "base",
"address": "<string>",
"balance": "500.00",
"createdAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"syncedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Accounts
List accounts
Every active external account and sub account of the client selected by X-Hevn-Account, oldest first; kind tells them apart. An external account is an address the client holds on one of the supported networks; it holds USDC only, and HEVN keeps no transaction history for it beyond the transfers HEVN itself arranges. A sub account is a further wallet of the client on Base that HEVN opened: it holds one token (asset: USDC or RD), has its own ledger, and is spent with your developer key like the client’s wallet.
GET
/
client
/
accounts
List accounts
curl --request GET \
--url https://api.example.com/client/accounts \
--header 'Authorization: Bearer <token>' \
--header 'X-Hevn-Account: <x-hevn-account>'import requests
url = "https://api.example.com/client/accounts"
headers = {
"X-Hevn-Account": "<x-hevn-account>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Hevn-Account': '<x-hevn-account>', Authorization: 'Bearer <token>'}
};
fetch('https://api.example.com/client/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"accountId": "acc_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"kind": "external",
"asset": "USDC",
"chain": "base",
"address": "<string>",
"balance": "500.00",
"createdAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"syncedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Authorizations
Headers
Query Parameters
Was this page helpful?