Ethereum’s Geth has JSON-RPC compatible API, and I can do subrequests in single HTTP query using ‘[ { request1}, {request1} ]’ syntax. What about NEM? Can I request 100 balances in single query? Is it possible?
There is the /account/get/batch
api POST request. Not sure if it is documented.
@Affinity
I did not find the documentation but based on response I was able to find out how to ask for balance of couple accounts
curl -i -X POST
-H “Content-Type:application/json”
-d
‘{
“data”: [
{
“account”: “NBCIMDLY7RUQF3WCOJG4DCLX5LFFIST6OOJG5MJH”
},
{
“account”: “NAEREQ4AK3AU3EF4N4GG7PJLRSD5Z7I3SIG63TAG”
}
]
}’
‘http://hugealice.nem.ninja:7890/account/get/batch’