acc_… id with kind: "external". Register one with POST /dapi/v1/client/accounts.
The routes here require X-Hevn-Account with the client’s id (Acting as a client). The same routes return sub accounts of your own account, told apart by kind.
Register an address
CallPOST /dapi/v1/client/accounts with the network and the address. Fields are on Add an account.
Response 201, Location: /dapi/v1/client/accounts/acc_9f2c…
accountId. It names the account in accountId, sourceAccount and destinationAccount on the money routes.
Address rules
Payouts need an account on
base. An account on another network receives payins and returns 409 source_account_unsupported as a payout source.
Retries
The address and the label identify the request. AnIdempotency-Key is accepted and is not needed.
Read accounts
CallGET /dapi/v1/client/accounts for a page of the client’s active accounts, oldest first, or GET /dapi/v1/client/accounts/{accountId} for one. Paging follows Pagination.
Balance
balance is the USDC at the address on chain. A read refreshes it 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. syncedAt is the time of the last successful read, so compare it with the clock before you show the balance as current.
External accounts have no row in GET /dapi/v1/client/balance.
Archive an account
CallDELETE /dapi/v1/client/accounts/{accountId}. The route returns the archived account. See Archive an external account.
Errors
The last three are returned by the routes in Money movement. The envelope is in Errors.