Skip to main content
An acc_… id names an external account or a sub account: an address of its own, apart from the main wallet. List the ones a client or your own account has with GET /dapi/v1/client/accounts.

Uses of the word

A balance on the main wallet has an account key and no acc_… id.

Kinds

kind on the record is external or sub. The two kinds share the /dapi/v1/client/accounts routes and the id space. The rules of each kind are on External accounts and Sub accounts. The /dapi/v1/client/accounts routes require X-Hevn-Account. Send a client’s cl_… id for its external accounts. For your own sub accounts, send your own cl_… id, the userId that POST /dapi/v1/auth/token returns (Acting as a client).
Response 200
The list is ordered oldest first and holds both kinds (List accounts). balance is read from the network when the stored value is older than a minute. When the network does not respond, the route returns the last value read, with its time in syncedAt.

Accepted fields

Responses return the id as accountId on a virtual account, a payin, a balance row and a transaction. The refusals of these fields are in Errors.

Next: Clients and verification