Network Tool
Network tool is a convenient way to organize all of your network configurations in one place.
You can register several blockchains (networks) under short names and then use these names as a target blockchain when working with contracts.
You can mark one of the networks as a default. It can be used in network commands without providing net name.
Available commands
See available commands with help command:
Add a network
This command adds a network to the everdev registry.
See other available network addition options with help command:
Example with mainnet endpoint:
Set credentials for a network
Access to the devnet and mainnet blockchains requires authorization. Create a project on dashboard.evercloud.dev if you don't have one, find your "Project Id" and "Secret" (optional) on the "Security" tab, and pass them as parameters:
Example with "devnet" endpoint:
Set a giver for a network
This command sets a giver account for a network. Giver will be used to top up your account balances on the network, including during deployment.
See other available network addition options with help command:
Note: The default signer and the initial balance value of 10 tokens will be used, unless otherwise specified through options. Also note, that some contracts may require a higher initial balance for successful deployment. DePool contract, for instance, requires a minimun of 21 tokens.
Only one giver can be set for a network. Setting another one will overwrite the current giver. To view the current giver settings for all networks, use the everdev network list
command (for details see the section below).
List the registered networks
This command lists all registered networks, their public endpoints, and their giver addresses, if any.
Result:
Set a default network
This command sets a previously added network as default (initially the mainnet is used by default).
Delete a network
This command deletes a network from everdev registry.
Last updated
Was this helpful?