Account management - intended usage
Each node handles one account.
The following assumes that the node exposes at address 127.0.0.1 the following ports:
- User API external HTTP endpoint: 3013
- User API internal HTTP endpoint: 3113
Retrieve beneficiary public key
Retrieve the beneficiary public key of your node:
curl http://127.0.0.1:3113/v2/debug/accounts/beneficiary
{"pub_key":"ak_N1WLMewMQPUyQBdEhXRSYee84RQNKJrECwbbseMkNsZhv1X"}
Retrieve balance
Retrieve balance for given public key (replace the public key in the command):
curl -G 'http://127.0.0.1:3013/v2/accounts/ak_N1WLMewMQPUyQBdEhXRSYee84RQNKJrECwbbseMkNsZhv1X'
{"balance":80, "id":"ak_N1WLMewMQPUyQBdEhXRSYee84RQNKJrECwbbseMkNsZhv1X", "nonce":0}
{"reason":"Account not found"}