near-cli
near-cli copied to clipboard
Call/View subcommands parse args to create JSON.
For example,
near view contract --accountId "willem.near"
is the same as
near view contract "
{\"accountId\": \"willem.near\"}
"
Not sure how to handle nested objects though.
this also works in bash
near view contract '{"accountId": "willem.near"}'