2

I want to do some queries on the H2 database. How can I access this console that lets me type in commands.

2

You can access the NXT's H2 database from the website by going to /dbshell path.

Example: Show top 100 accounts sorted by balance:

select *, BALANCE / 100000000 as NXT from account where latest = true order by balance desc limit 100

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.