Get total balance of a node using NIS API

Hi.
I wanna know how to get all balance of a node using NIS API.
I mean, i 'm finding api like ‘getbalance’ of BITCOIN.

getbalance [account] [minconf=1]

If [account] is not specified, returns the server’s total available balance.
If [account] is specified, returns the balance in the account.

1 Like

Hi.
I wanna know how to get all accounts in NIS node.

Nodes do not have a “balance” Accounts have balances.

You may find what you are looking for in the NIS API docs, or the nem-sdk:
https://nemproject.github.io/

1 Like

thanks for your replies.
How can i get all accounts in node?

Like I said, a node is not an account, it doesn’t ‘have’ accounts. Please give us a detailed explanation of what you are trying to do, so we can point you in the right direction.

1 Like

Hi.Saul
Thanks for your reply again.
I wanna add NEM to my exchange.
For it, i need to generate new address, get balance of an account and all account in exchange, make transaction for NEM.
So i 'm asking …

@Saul Could we have chat more detail?
I use skype and hangout

If you want to know the balance of many addresses, please install an NIS server in the exchange.
Even if you contact the addresses you want to examine one by one with the API, there is no problem in performance.

And it is not necessary for the exchanges to grasp the balance of addresses other than the exchanges.

Thanks

How can i contact addressed one by one?
For it, i should know all accounts in node, I think.
how can i get all accounts in a node?
Other coins have apis that shows list of accounts in a node.

I’m sorry. There is no API to acquire all addresses in NIS.

what do you think of my idea?
i wanna discuss more detail

It is the specification of NIS. Regarding API, I have no particular answer.
And I can not think of a situation where all addresses are needed.

Sorry.

when usercreate an account in NIS, where it is saved?
In other coins, they are saved in nodes.