Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve help for view/call operations #472

Merged
merged 2 commits into from Jul 27, 2020
Merged

Improve help for view/call operations #472

merged 2 commits into from Jul 27, 2020

Conversation

janedegtiareva
Copy link
Contributor

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]

@janedegtiareva
Copy link
Contributor Author

#237

@vgrichina vgrichina merged commit 7fce961 into master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants