How to query NEAR node block height by near-cli? I didn't find it on https://docs.near.org/docs/tools/near-cli
How to query NEAR node block height by near-cli?
160 views Asked by Jonkrua wu At
1
How to query NEAR node block height by near-cli? I didn't find it on https://docs.near.org/docs/tools/near-cli
You can use
near replwhich launches interactive Node.js shell with NEAR connection available to use. The repl's initial context containsnearAPI,nearandaccount(source:near-cli --help)shell:
the response will give you a bunch of info, height among other things. Or you can go with
and you'll get only the value of the
heightfield