near-cli icon indicating copy to clipboard operation
near-cli copied to clipboard

Call/View subcommands parse args to create JSON.

Open willemneal opened this issue 5 years ago • 1 comments

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.

willemneal avatar May 13 '20 00:05 willemneal

this also works in bash

near view contract '{"accountId": "willem.near"}'

amgando avatar May 15 '20 14:05 amgando