Improve help for view/call operations #472
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tested
node bin\near call -help
near call [args]
schedule smart contract call which can modify state
Options:
--help Show help [boolean]
--version Show version number [boolean]
--nodeUrl, --node_url NEAR node URL [string] [default: "https://rpc.betanet.near.org"]
--networkId, --network_id NEAR network ID, allows using different keys based on network [string] [default: "betanet"]
--helperUrl NEAR contract helper URL [string]
--keyPath Path to master account key [string]
--accountId, --account_id Unique identifier for the account that will be used to sign this call [string] [required]
--useLedgerKey Use Ledger for signing with given HD key path [string] [default: "44'/397'/0'/0'/1'"]
--walletUrl Website for NEAR Wallet [string]
--contractName Account name of contract [string]
--masterAccount Master account used when creating new accounts [string]
--helperAccount Expected top-level account for a network [string]
--verbose, -v Prints out verbose output [boolean] [default: false]
--gas Max amount of gas this call can use [string] [default: "100000000000000"]
--amount Number of tokens to attach [string] [default: "0"]
--args Arguments to the contract call, in JSON format (e.g. '{"param_a": "value"}') [string] [default: null]
node bin\near view --help
near view [args]
make smart contract call which can view state
Options:
--help Show help [boolean]
--version Show version number [boolean]
--nodeUrl, --node_url NEAR node URL [string] [default: "https://rpc.betanet.near.org"]
--networkId, --network_id NEAR network ID, allows using different keys based on network [string] [default: "betanet"]
--helperUrl NEAR contract helper URL [string]
--keyPath Path to master account key [string]
--accountId, --account_id Unique identifier for the account [string]
--useLedgerKey Use Ledger for signing with given HD key path [string] [default: "44'/397'/0'/0'/1'"]
--walletUrl Website for NEAR Wallet [string]
--contractName Account name of contract [string]
--masterAccount Master account used when creating new accounts [string]
--helperAccount Expected top-level account for a network [string]
--verbose, -v Prints out verbose output [boolean] [default: false]
--args Arguments to the view call, in JSON format (e.g. '{"param_a": "value"}') [string] [default: null]