cURL
curl --request GET \ --url http://localhost/api/ledger/{ledger}/accounts/{address} \ --header 'Authorization: Bearer <token>'
{ "data": { "address": "users:001", "type": "virtual", "metadata": { "admin": true, "a": { "nested": { "key": "value" } } }, "volumes": { "USD": { "input": 100, "output": 10, "balance": 90 }, "EUR": { "input": 100, "output": 10, "balance": 90 } }, "balances": { "COIN": 100 } } }
The access token received from the authorization server in the OAuth 2.0 flow.
Name of the ledger.
"ledger001"
Exact address of the account. It must match the following regular expressions pattern:
^\w+(:\w+)*$
"users:001"
OK
Show child attributes
"virtual"
{ "admin": true, "a": { "nested": { "key": "value" } }}
{ "input": 100, "output": 20, "balance": 80 }
{ "USD": { "input": 100, "output": 10, "balance": 90 }, "EUR": { "input": 100, "output": 10, "balance": 90 }}
{ "COIN": 100 }