{"id":23486203,"url":"https://github.com/aurora-is-near/aurora-cli-rs","last_synced_at":"2025-04-15T01:28:12.951Z","repository":{"id":62827617,"uuid":"537449581","full_name":"aurora-is-near/aurora-cli-rs","owner":"aurora-is-near","description":"Command-line tool for interacting with the Aurora Engine","archived":false,"fork":false,"pushed_at":"2025-03-19T10:43:36.000Z","size":1838,"stargazers_count":16,"open_issues_count":8,"forks_count":14,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-28T13:21:18.301Z","etag":null,"topics":["aurora","cli","ethereum","near","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aurora-is-near.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-16T12:32:03.000Z","updated_at":"2025-03-19T10:43:41.000Z","dependencies_parsed_at":"2023-10-10T20:07:06.180Z","dependency_job_id":"3f3c3f7f-f9ad-41ec-a15f-cac84e7cfe7c","html_url":"https://github.com/aurora-is-near/aurora-cli-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurora-is-near%2Faurora-cli-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurora-is-near%2Faurora-cli-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurora-is-near%2Faurora-cli-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurora-is-near%2Faurora-cli-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aurora-is-near","download_url":"https://codeload.github.com/aurora-is-near/aurora-cli-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248988142,"owners_count":21194369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aurora","cli","ethereum","near","rust"],"created_at":"2024-12-24T22:14:59.502Z","updated_at":"2025-04-15T01:28:12.932Z","avatar_url":"https://github.com/aurora-is-near.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"img/aurora-cli-logo.png\" width=500 alt=\"Aurora CLI\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003eAn instant, zero-config Aurora engine operator\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n[![CI](https://github.com/aurora-is-near/aurora-cli-rs/actions/workflows/rust.yml/badge.svg?branch=main)](https://github.com/aurora-is-near/aurora-cli-rs/actions/workflows/rust.yml)\n![rust 1.70.0+ required](https://img.shields.io/badge/rust-1.70.0+-blue.svg?label=MSRV)\n\n## What is Engine?\n\n[Aurora](https://doc.aurora.dev/getting-started/aurora-engine/) is an Ethereum Virtual Machine (EVM)\nproject built on the NEAR Protocol, that provides a solution for developers to deploy their apps\non an Ethereum-compatible, high-throughput, scalable and future-safe platform, with low transaction costs\nfor their users. Engine is the Aurora's implementation for it.\n\n## What is Aurora CLI?\n\nAurora CLI is a command line interface to bootstrap Aurora Engine with rapid speed built with rust.\n\nAurora CLI comes pre-configuration with opinionated, sensible defaults for standard testing environments.\nIf other projects mention testing on Aurora, they are referring to the settings defined in this repo.\n\n**Aurora CLI has the following advantages over api:**\n\n- :pencil: **Easily modifiable EVM states through terminal**\n- :handshake: **Quick to interact for rapid iterations**\n\nSee also prior version [aurora-cli](https://github.com/aurora-is-near/aurora-cli).\n\n## Prerequisites\n\n- :crab: Rust\n\n## Quickstart\n\n- 📦 Install `aurora-cli-rs` and start interacting with it:\n  *`cargo install --git https://github.com/aurora-is-near/aurora-cli-rs.git`*\n- 🔍 Check out what each command is for in the [Commands Reference](#commands-reference) section\n- ✋ Have questions? Ask them at the official Aurora [forum](https://forum.aurora.dev/)\n\n## Usage\n\nIn the following example, we will see how to deploy Aurora EVM on the `localnet`. Also, we will deploy a simple EVM\nsmart contract and will be interacting with it.\n\n### **Requirements**\n\n- Rust 1.75.0 or newer\n- Python3\n\nFirst what we need to do is to install `aurora-cli`:\n\n### **Installing aurora-cli**\n\n```shell\ngit clone https://github.com/aurora-engine/aurora-cli-rs\ncd aurora-cli-rs \u0026\u0026 cargo install --path . \n```\n\nNext we need to start a NEAR node locally. We can use the NEAR utility, `nearup`.\n\n### **Start a NEAR node locally**\n\nInstall `nearup`:\n\n```shell\npip3 install --user nearup\n```\n\nStart NEAR node:\n\n```shell\nnearup run localnet --home /tmp/localnet\n```\n\nWhen running the `nearup run localnet` command on Apple’s M-based hardware, a local build of `neard` is required due to\ncompatibility issues with the architecture.\n\nStart NEAR node (Apple's M-based hardware):\n\n```shell\nnearup run localnet --home /tmp/localnet --binary-path /path/to/nearcore/target/release\n```\n\nReplace `/path/to/nearcore/target/release` with the actual path to the locally built `neard` binary.\n\n### **Prepare an account and create a private key file for Aurora EVM**\n\n```shell\naurora-cli --near-key-path /tmp/localnet/node0/validator_key.json create-account \\\n  --account aurora.node0 --balance 100 \u003e /tmp/localnet/aurora_key.json\n```\n\nLet's check if the account has been created successfully:\n\n```shell\naurora-cli view-account aurora.node0\n```\n\n### **Download and deploy Aurora EVM**\n\nTo download the latest version, run the following command:\n\n```shell\ncurl -sL https://github.com/aurora-is-near/aurora-engine/releases/download/latest/aurora-mainnet.wasm -o /tmp/aurora-mainnet.wasm\n```\n\nDeploy Aurora EVM:\n\n```shell\naurora-cli --near-key-path /tmp/localnet/aurora_key.json deploy-aurora /tmp/aurora-mainnet.wasm\n```\n\nInitialize Aurora EVM:\n\n```shell\naurora-cli --engine aurora.node0 --near-key-path /tmp/localnet/aurora_key.json init --chain-id 1313161556 --owner-id aurora.node0\n```\n\n### **Deploy the EVM smart contract**\n\nAnd now we can deploy the EVM smart contract. In our example, it will be a simple counter that can return its current\nvalue and increment and decrement its value.\n\nBut before that we need to generate a private key for signing transactions:\n\n```shell\naurora-cli key-pair --random\n```\n\nThe response should be similar to this:\n\n```json\n{\n  \"address\": \"0xa003a6e0e1a1dc40aa9e496c1c058b2667c409f5\",\n  \"secret_key\": \"3fac6dca1c6fc056b971a4e9090afbbfbdf3bc443e9cda595facb653cb1c01e1\"\n}\n```\n\n**_NOTE:_** The key should be used for demonstration only.\n\nDeploy EVM smart contract:\n\n```shell\naurora-cli --engine aurora.node0 --near-key-path /tmp/localnet/aurora_key.json deploy \\\n  --code $(cat docs/res/Counter.hex) \\\n  --abi-path docs/res/Counter.abi \\\n  --args '{\"init_value\":\"5\"}' \\\n  --aurora-secret-key 3fac6dca1c6fc056b971a4e9090afbbfbdf3bc443e9cda595facb653cb1c01e1\n```\n\nIf everything went well, the response should be like this:\n\n```\nContract has been deployed to address: 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf successfully\n```\n\nSo. Now we have deployed the smart contract at address: `0x53a9fed853e02a39bf8d298f751374de8b5a6ddf`.\n\n### **Interact with the smart contract**\n\nFirst, let's check that the current value is the same as we set in the\ninitialization stage. For that, we will use the `view-call` operation, which doesn't demand a private key\nbecause it is a read-only operation:\n\n```shell\naurora-cli --engine aurora.node0 view-call -a 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf -f value \\\n  --abi-path docs/res/Counter.abi\n```\n\nIf we see `5` then everything is right.\n\nNow let's try to increment the value:\n\n```shell\naurora-cli --engine aurora.node0 --near-key-path /tmp/localnet/aurora_key.json submit \\\n  --address 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf \\\n  -f increment \\\n  --abi-path docs/res/Counter.abi \\\n  --aurora-secret-key 3fac6dca1c6fc056b971a4e9090afbbfbdf3bc443e9cda595facb653cb1c01e1\n```\n\nIn the response, we can see if the transaction was successful and the amount of gas used for the execution of this\ntransaction.\n\nLet's make sure that our value was incremented:\n\n```shell\naurora-cli --engine aurora.node0 view-call -a 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf -f value \\\n  --abi-path docs/res/Counter.abi\n```\n\nSo, if we can see `6` in the output then the demo was successful. That's it!\n\n### **Build aurora-cli with the advanced command line interface (Advanced CLI)**\n\nAdvanced CLI provides more options andadvanced features. You can try it by building with the following command:\n\n```shell\ncargo install --path . --no-default-features -F advanced\n```\n\nDocumentation on how to work with the advanced version of `aurora-cli` can be found [here](docs/localnet.md).\n\n### **Browse Deployed EVM Metadata**\n\n```shell\naurora-cli --engine aurora.node0 get-version\naurora-cli --engine aurora.node0 get-owner\naurora-cli --engine aurora.node0 get-bridge-prover\naurora-cli --engine aurora.node0 get-chain-id\n```\n\n### **Examining EVM contract state**\n\n```shell\naurora-cli --engine aurora.node0 get-nonce 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf\naurora-cli --engine aurora.node0 get-code 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf\naurora-cli --engine aurora.node0 get-balance 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf\naurora-cli --engine aurora.node0 get-storage-at \\\n  --address 0x53a9fed853e02a39bf8d298f751374de8b5a6ddf \\\n  --key 0x0000000000000000000000000000000000000000000000000000000000000000\n```\n\n### **Silo methods**\n\nRetrieves the current fixed gas set in the Silo contract.\n\n```shell\naurora-cli --engine aurora.node0 get-fixed-gas\n```\n\nSets the fixed gas in the Silo contract to a specific value.\n\n```shell\naurora-cli --engine aurora.node0 set-fixed-gas 0\n```\n\nCheck whitelists statuses\n\n```shell\naurora-cli --engine aurora.node0 get-whitelist-status admin\naurora-cli --engine aurora.node0 get-whitelist-status evm-admin\naurora-cli --engine aurora.node0 get-whitelist-status account\naurora-cli --engine aurora.node0 get-whitelist-status address\n```\n\nAdd whitelist entry\n\n```shell\naurora-cli --engine aurora.node0 add-entry-to-whitelist --kind \u003cwhitelist-kind\u003e --entry \u003centry-value\u003e\n```\n\nRemove whitelist entry\n\n```shell\naurora-cli --engine aurora.node0 remove-entry-from-whitelist --kind \u003cwhitelist-kind\u003e --entry \u003centry-value\u003e\n```\n\nDisable whitelist status\n\n```shell\naurora-cli --engine aurora.node0 set-whitelist-status --kind \u003cwhitelist-kind\u003e --status 0\n```\n\nReplace `\u003cwhitelist-kind\u003e` with the desired whitelist type (admin, evm-admin, account, or address), and `\u003centry-value\u003e`\nwith the address or account to be whitelisted or removed.\n\nAdd whitelist batch\n\n```shell\naurora-cli --engine aurora.node0 add-entry-to-whitelist-batch path/to/batch_list.json\n```\n\nThe batch should be provided in a JSON format. Each entry in the JSON array should have two properties: `kind` and\neither `account_id` or `address`, depending on the type of whitelist being updated.\n\nExample JSON batch file (`batch_list.json`):\n\n```json\n[\n  {\n    \"kind\": \"Admin\",\n    \"account_id\": \"account.near\"\n  },\n  {\n    \"kind\": \"EvmAdmin\",\n    \"address\": \"0xef5d992c74e531bba6bf92ca1476d8ca4ca1b997\"\n  },\n  {\n    \"kind\": \"Account\",\n    \"account_id\": \"account1.near\"\n  },\n  {\n    \"kind\": \"Address\",\n    \"address\": \"0x92f854dadc0526717893da71cb44012fd4b8faac\"\n  }\n]\n```\n\n## Commands Reference\n\n- [`aurora-cli help`](#aurora-cli-help)\n- [`aurora-cli create-account`](#aurora-cli-create-account)\n- [`aurora-cli view-account`](#aurora-cli-view-account)\n- [`aurora-cli deploy-aurora`](#aurora-cli-deploy-aurora)\n- [`aurora-cli init`](#aurora-cli-init)\n- [`aurora-cli get-chain-id`](#aurora-cli-get-chain-id)\n- [`aurora-cli get-nonce`](#aurora-cli-get-nonce)\n- [`aurora-cli get-block-hash`](#aurora-cli-get-block-hash)\n- [`aurora-cli get-code`](#aurora-cli-get-code)\n- [`aurora-cli get-balance`](#aurora-cli-get-balance)\n- [`aurora-cli get-upgrade-index`](#aurora-cli-get-upgrade-index)\n- [`aurora-cli get-version`](#aurora-cli-get-version)\n- [`aurora-cli get-owner`](#aurora-cli-get-owner)\n- [`aurora-cli set-owner`](#aurora-cli-set-owner)\n- [`aurora-cli get-bridge-prover`](#aurora-cli-get-bridge-prover)\n- [`aurora-cli get-storage-at`](#aurora-cli-get-storage-at)\n- [`aurora-cli register-relayer`](#aurora-cli-register-relayer)\n- [`aurora-cli pause-precompiles`](#aurora-cli-pause-precompiles)\n- [`aurora-cli resume-precompiles`](#aurora-cli-resume-precompiles)\n- [`aurora-cli paused-precompiles`](#aurora-cli-paused-precompiles)\n- [`aurora-cli factory-update`](#aurora-cli-factory-update)\n- [`aurora-cli factory-get-wnear-address`](#aurora-cli-factory-get-wnear-address)\n- [`aurora-cli factory-set-wnear-address`](#aurora-cli-factory-set-wnear-address)\n- [`aurora-cli fund-xcc-sub-account`](#aurora-cli-fund-xcc-sub-account)\n- [`aurora-cli upgrade`](#aurora-cli-upgrade)\n- [`aurora-cli stage-upgrade`](#aurora-cli-stage-upgrade)\n- [`aurora-cli deploy-upgrade`](#aurora-cli-deploy-upgrade)\n- [`aurora-cli deploy`](#aurora-cli-deploy)\n- [`aurora-cli view-call`](#aurora-cli-view-call)\n- [`aurora-cli call`](#aurora-cli-call)\n- [`aurora-cli submit`](#aurora-cli-submit)\n- [`aurora-cli encode-address`](#aurora-cli-encode-address)\n- [`aurora-cli key-pair`](#aurora-cli-key-pair)\n- [`aurora-cli generate-near-key`](#aurora-cli-generate-near-key)\n- [`aurora-cli get-fixed-gas`](#aurora-cli-get-fixed-gas)\n- [`aurora-cli set-fixed-gas`](#aurora-cli-set-fixed-gas)\n- [`aurora-cli set-silo-params`](#aurora-cli-set-silo-params)\n- [`aurora-cli get-whitelist-status`](#aurora-cli-get-whitelist-status)\n- [`aurora-cli set-whitelist-status`](#aurora-cli-set-whitelist-status)\n- [`aurora-cli add-entry-to-whitelist`](#aurora-cli-add-entry-to-whitelist)\n- [`aurora-cli add-entry-to-whitelist-batch`](#aurora-cli-add-entry-to-whitelist-batch)\n- [`aurora-cli remove-entry-from-whitelist`](#aurora-cli-remove-entry-from-whitelist)\n- [`aurora-cli set-key-manager`](#aurora-cli-set-key-manager)\n- [`aurora-cli add-relayer-key`](#aurora-cli-add-relayer-key)\n- [`aurora-cli remove-relayer-key`](#aurora-cli-remove-relayer-key)\n- [`aurora-cli get-upgrade-delay-blocks`](#aurora-cli-get-upgrade-delay-blocks)\n- [`aurora-cli set-upgrade-delay-blocks`](#aurora-cli-set-upgrade-delay-blocks)\n- [`aurora-cli get-erc20-from-nep141`](#aurora-cli-get-erc20-from-nep141)\n- [`aurora-cli get-nep141-from-erc20`](#aurora-cli-get-nep141-from-erc20)\n- [`aurora-cli get-erc20-metadata`](#aurora-cli-get-erc20-metadata)\n- [`aurora-cli set-erc20-metadata`](#aurora-cli-set-erc20-metadata)\n- [`aurora-cli mirror-erc20-token`](#aurora-cli-mirror-erc20-token)\n- [`aurora-cli set-eth-connector-contract-account`](#aurora-cli-set-eth-connector-contract-account)\n- [`aurora-cli get-eth-connector-contract-account`](#aurora-cli-get-eth-connector-contract-account)\n- [`aurora-cli set-eth-connector-contract-data`](#aurora-cli-set-eth-connector-contract-data)\n- [`aurora-cli get-paused_flags`](#aurora-cli-get-paused-flags)\n- [`aurora-cli set-paused_flags`](#aurora-cli-set-paused-flags)\n- [`aurora-cli transaction-status`](#aurora-cli-transaction-status)\n- [`aurora-cli add-relayer`](#aurora-cli-add-relayer)\n\n### `aurora-cli help`\n\n```console\n$ aurora-cli help\nSimple command line interface for communication with Aurora Engine\n\nUsage: aurora-cli [OPTIONS] \u003cCOMMAND\u003e\n\nCommands:\n  create-account                      Create new NEAR account\n  view-account                        View NEAR account\n  deploy-aurora                       Deploy Aurora EVM smart contract\n  init                                Initialize Aurora EVM and ETH connector\n  get-chain-id                        Return chain id of the network\n  get-nonce                           Return next nonce for address\n  get-block-hash                      Return block hash of the specified height\n  get-code                            Return smart contract's code for contract address\n  get-balance                         Return balance for address\n  get-upgrade-index                   Return a height for a staged upgrade\n  get-version                         Return Aurora EVM version\n  get-owner                           Return Aurora EVM owner\n  set-owner                           Set a new owner of Aurora EVM\n  get-bridge-prover                   Return bridge prover\n  get-storage-at                      Return a value from storage at address with key\n  register-relayer                    Register relayer address\n  pause-precompiles                   Pause precompiles\n  resume-precompiles                  Resume precompiles\n  paused-precompiles                  Return paused precompiles\n  factory-update                      Updates the bytecode for user's router contracts\n  factory-get-wnear-address           Return the address of the `wNEAR` ERC-20 contract\n  factory-set-wnear-address           Sets the address for the `wNEAR` ERC-20 contract\n  fund-xcc-sub-account                Create and/or fund an XCC sub-account directly\n  upgrade                             Upgrade contract with provided code\n  stage-upgrade                       Stage a new code for upgrade\n  deploy-upgrade                      Deploy staged upgrade\n  deploy                              Deploy EVM smart contract's code in hex\n  call                                Call a method of the smart contract\n  view-call                           Call a view method of the smart contract\n  submit                              Call a modified method of the smart contract\n  encode-address                      Encode address\n  key-pair                            Return Public and Secret ED25519 keys\n  generate-near-key                   Return randomly generated NEAR key for AccountId\n  get-fixed-gas                       Return fixed gas\n  set-fixed-gas                       Set fixed gas\n  set-silo-params                     Set SILO params\n  get-whitelist-status                Return a status of the whitelist\n  set-whitelist-status                Set a status for the whitelist\n  add-entry-to-whitelist              Add entry into the whitelist\n  add-entry-to-whitelist-batch        Add entries into the whitelist\n  remove-entry-from-whitelist         Remove the entry from the whitelist\n  set-key-manager                     Set relayer key manager\n  add-relayer-key                     Add relayer public key\n  remove-relayer-key                  Remove relayer public key\n  get-upgrade-delay-blocks            Get delay for upgrade in blocks\n  set-upgrade-delay-blocks            Set delay for upgrade in blocks\n  get-erc20-from-nep141               Get ERC-20 from NEP-141\n  get-nep141-from-erc20               Get NEP-141 from ERC-20\n  get-erc20-metadata                  Get ERC-20 metadata\n  set-erc20-metadata                  Set ERC-20 metadata\n  mirror-erc20-token                  Mirror ERC-20 token\n  set-eth-connector-contract-account  Set eth connector account id\n  get-eth-connector-contract-account  Get eth connector account id\n  set-eth-connector-contract-data     Set eth connector data\n  set-paused-flags                    Set eth connector paused flags\n  get-paused-flags                    Get eth connector paused flags\n  transaction-status                  Get transaction status\n  add-relayer                         Add relayer\n  help                                Print this message or the help of the given subcommand(s)\n\nOptions:\n      --network \u003cNETWORK\u003e              NEAR network ID [default: localnet]\n      --engine \u003cACCOUNT_ID\u003e            Aurora EVM account [default: aurora]\n      --near-key-path \u003cNEAR_KEY_PATH\u003e  Path to file with NEAR account id and secret key in JSON format\n  -h, --help                           Print help\n  -V, --version                        Print version\n```\n\n### `aurora-cli view-account`\n\n```console\n$ aurora-cli help create-account\nCreate new NEAR account\n\nUsage: aurora-cli create-account --account \u003cACCOUNT\u003e --balance \u003cBALANCE\u003e\n\nOptions:\n  -a, --account \u003cACCOUNT\u003e  AccountId\n  -b, --balance \u003cBALANCE\u003e  Initial account balance in NEAR\n  -h, --help               Print help\n```\n\n### `aurora-cli create-account`\n\n```console\n$ aurora-cli help view-account\nView NEAR account\n\nUsage: aurora-cli view-account \u003cACCOUNT\u003e\n\nArguments:\n  \u003cACCOUNT\u003e  AccountId\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli deploy-aurora`\n\n```console\n$ aurora-cli help deploy-aurora\nDeploy Aurora EVM smart contract\n\nUsage: aurora-cli deploy-aurora \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  Path to the WASM file\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli init`\n\n```console\n$ aurora-cli help init\nInitialize Aurora EVM and ETH connector\n\nUsage: aurora-cli init [OPTIONS]\n\nOptions:\n      --chain-id \u003cCHAIN_ID\u003e\n          Chain ID [default: 1313161556]\n      --owner-id \u003cOWNER_ID\u003e\n          Owner of the Aurora EVM\n      --bridge-prover-id \u003cBRIDGE_PROVER_ID\u003e\n          Account of the bridge prover\n      --upgrade-delay-blocks \u003cUPGRADE_DELAY_BLOCKS\u003e\n          How many blocks after staging upgrade can deploy it\n      --custodian-address \u003cCUSTODIAN_ADDRESS\u003e\n          Custodian ETH address\n      --ft-metadata-path \u003cFT_METADATA_PATH\u003e\n          Path to the file with the metadata of the fungible token\n  -h, --help\n          Print help\n```\n\n### `aurora-cli get-chain-id`\n\n```console\n$ aurora-cli help get-chain-id\nReturn chain id of the network\n\nUsage: aurora-cli get-chain-id\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-nonce`\n\n```console\n$ aurora-cli help get-nonce\nReturn next nonce for address\n\nUsage: aurora-cli get-nonce \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  \n\nOptions:\n  -h, --help  Print help\n\n```\n\n### `aurora-cli get-block-hash`\n\n```console\n$ aurora-cli help get-block-hash\nReturn block hash of the specified height\n\nUsage: aurora-cli get-block-hash \u003cHEIGHT\u003e\n\nArguments:\n  \u003cHEIGHT\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-code`\n\n```console\n$ aurora-cli help get-code\nReturn smart contract's code for contract address\n\nUsage: aurora-cli get-code \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  \n\nOptions:\n  -h, --help  Print help\n\n```\n\n### `aurora-cli get-balance`\n\n```console\n$ aurora-cli help get-balance\nReturn balance for address\n\nUsage: aurora-cli get-balance \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-upgrade-index`\n\n```console\n$ aurora-cli help get-upgrade-index\nReturn a height for a staged upgrade\n\nUsage: aurora-cli get-upgrade-index\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-version`\n\n```console\n$ aurora-cli help get-version\nReturn Aurora EVM version\n\nUsage: aurora-cli get-version\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-owner`\n\n```console\n$ aurora-cli help get-owner\nReturn Aurora EVM owner\n\nUsage: aurora-cli get-owner\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-owner`\n\n```console\n$ aurora-cli help set-owner\nSet a new owner of Aurora EVM\n\nUsage: aurora-cli set-owner \u003cACCOUNT_ID\u003e\n\nArguments:\n  \u003cACCOUNT_ID\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-bridge-prover`\n\n```console\n$ aurora-cli help get-bridge-prover\nReturn bridge prover\n\nUsage: aurora-cli get-bridge-prover\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-storage-at`\n\n```console\n$ aurora-cli help get-storage-at\nReturn a value from storage at address with key\n\nUsage: aurora-cli get-storage-at --address \u003cADDRESS\u003e --key \u003cKEY\u003e\n\nOptions:\n  -a, --address \u003cADDRESS\u003e  \n  -k, --key \u003cKEY\u003e          \n  -h, --help  Print help\n```\n\n### `aurora-cli register-relayer`\n\n```console\n$ aurora-cli help register-relayer\nRegister relayer address\n\nUsage: aurora-cli register-relayer \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli pause-precompiles`\n\n```console\n$ aurora-cli help pause-precompiles\nPause precompiles\n\nUsage: aurora-cli pause-precompiles \u003cMASK\u003e\n\nArguments:\n  \u003cMASK\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli resume-precompiles`\n\n```console\n$ aurora-cli help resume-precompiles\nResume precompiles\n\nUsage: aurora-cli resume-precompiles \u003cMASK\u003e\n\nArguments:\n  \u003cMASK\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli paused-precompiles`\n\n```console\n$ aurora-cli help paused-precompiles\nReturn paused precompiles\n\nUsage: aurora-cli paused-precompiles\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli factory-update`\n\n```console\n$ aurora-cli help factory-update\nUpdates the bytecode for user's router contracts\n\nUsage: aurora-cli factory-update \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli factory-get-wnear-address`\n\n```console\n$ aurora-cli help factory-get-wnear-address\nReturn the address of the `wNEAR` ERC-20 contract\n\nUsage: aurora-cli factory-get-wnear-address\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli factory-set-wnear-address`\n\n```console\n$ aurora-cli help factory-set-wnear-address\nSets the address for the `wNEAR` ERC-20 contract\n\nUsage: aurora-cli factory-set-wnear-address \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli fund-xcc-sub-account`\n\n```console\n$ aurora-cli help fund-xcc-sub-account\nCreate and/or fund an XCC sub-account directly\n\nUsage: aurora-cli fund-xcc-sub-account \u003cTARGET\u003e [WNEAR_ACCOUNT_ID] \u003cDEPOSIT\u003e\n\nArguments:\n  \u003cTARGET\u003e            Address of the target\n  [WNEAR_ACCOUNT_ID]  Wnear Account Id\n  \u003cDEPOSIT\u003e           Attached deposit in NEAR\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli stage-upgrade`\n\n```console\n$ aurora-cli help stage-upgrade\nStage a new code for upgrade\n\nUsage: aurora-cli stage-upgrade \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli upgrade`\n\n```console\n$ aurora-cli help upgrade\nUpgrade contract with provided code\n\nUsage: aurora-cli upgrade \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli deploy-upgrade`\n\n```console\n$ aurora-cli help deploy-upgrade\nDeploy staged upgrade\n\nUsage: aurora-cli deploy-upgrade\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli deploy`\n\n```console\n$ aurora-cli help deploy\nDeploy EVM smart contract's code in hex\n\nUsage: aurora-cli deploy [OPTIONS] --code \u003cCODE\u003e\n\nOptions:\n      --code \u003cCODE\u003e                            Code in HEX to deploy\n      --args \u003cARGS\u003e                            Constructor arguments with values in JSON\n      --abi-path \u003cABI_PATH\u003e                    Path to ABI of the contract\n      --aurora-secret-key \u003cAURORA_SECRET_KEY\u003e  Aurora EVM secret key\n  -h, --help                                   Print help\n```\n\n### `aurora-cli view-call`\n\n```console\n$ aurora-cli help view-call\nCall a view method of the smart contract\n\nUsage: aurora-cli view-call [OPTIONS] --address \u003cADDRESS\u003e --function \u003cFUNCTION\u003e --abi-path \u003cABI_PATH\u003e\n\nOptions:\n  -a, --address \u003cADDRESS\u003e    Address of the smart contract\n  -f, --function \u003cFUNCTION\u003e  Name of the function to call\n      --args \u003cARGS\u003e          Arguments with values in JSON\n      --abi-path \u003cABI_PATH\u003e  Path to ABI of the contract\n  -h, --help                 Print help\n```\n\n### `aurora-cli call`\n\n```console\"\n$ aurora-cli help call\nCall a method of the smart contract\n\nUsage: aurora-cli call [OPTIONS] --address \u003cADDRESS\u003e\n\nOptions:\n      --address \u003cADDRESS\u003e  Address of the smart contract\n      --input \u003cINPUT\u003e      Input data of the EVM transaction encoded in hex\n      --value \u003cVALUE\u003e      Attached value in EVM transaction\n      --from \u003cFROM\u003e        From account_id\n  -h, --help               Print help\n ```\n\n### `aurora-cli submit`\n\n```console\n$ aurora-cli help submit\nCall a modified method of the smart contract\n\nUsage: aurora-cli call [OPTIONS] --address \u003cADDRESS\u003e --function \u003cFUNCTION\u003e --abi-path \u003cABI_PATH\u003e\n\nOptions:\n  -a, --address \u003cADDRESS\u003e                      Address of the smart contract\n  -f, --function \u003cFUNCTION\u003e                    Name of the function to call\n      --args \u003cARGS\u003e                            Arguments with values in JSON\n      --abi-path \u003cABI_PATH\u003e                    Path to ABI of the contract\n      --value \u003cVALUE\u003e                          Value sending in EVM transaction\n      --aurora-secret-key \u003cAURORA_SECRET_KEY\u003e  Aurora EVM secret key\n  -h, --help                                   Print help\n```\n\n### `aurora-cli encode-address`\n\n```console\n$ aurora-cli help encode-address\nEncode address\n\nUsage: aurora-cli encode-address \u003cACCOUNT\u003e\n\nArguments:\n  \u003cACCOUNT\u003e  \n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli key-pair`\n\n```console\n$ aurora-cli help key-pair\nReturn Public and Secret ED25519 keys\n\nUsage: aurora-cli key-pair [OPTIONS]\n\nOptions:\n      --random       Random\n      --seed \u003cSEED\u003e  From seed\n  -h, --help         Print help\n```\n\n### `aurora-cli generate-near-key`\n\n```console\n$ aurora-cli help generate-near-key\nReturn randomly generated NEAR key for AccountId\n\nUsage: aurora-cli generate-near-key \u003cACCOUNT_ID\u003e \u003cKEY_TYPE\u003e\n\nArguments:\n  \u003cACCOUNT_ID\u003e  AccountId\n  \u003cKEY_TYPE\u003e    Key type: ed25519 or secp256k1\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-fixed-gas`\n\n```console\n$ aurora-cli help get-fixed-gas\nReturn fixed gas\n\nUsage: aurora-cli get-fixed-gas\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-fixed-gas`\n\n```console\n$ aurora-cli help set-fixed-gas\nSet fixed gas\n\nUsage: aurora-cli set-fixed-gas \u003cCOST\u003e\n\nArguments:\n  \u003cCOST\u003e  Fixed gas in EthGas\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-silo-params`\n\n```console\n$ aurora-cli help set-silo-params\nSet SILO params\n\nUsage: aurora-cli set-silo-params --gas \u003cGAS\u003e --fallback-address \u003cFALLBACK_ADDRESS\u003e\n\nOptions:\n  -g, --gas \u003cGAS\u003e                            Fixed gas in EthGas\n  -f, --fallback-address \u003cFALLBACK_ADDRESS\u003e  Fallback EVM address\n  -h, --help                                 Print help\n```\n\n### `aurora-cli get-whitelist-status`\n\n```console\n$ aurora-cli help get-whitelist-status\nReturn a status of the whitelist\n\nUsage: aurora-cli get-whitelist-status \u003cKIND\u003e\n\nArguments:\n  \u003cKIND\u003e  Kind of the whitelist\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-whitelist-status`\n\n```console\n$ aurora-cli help set-whitelist-status\nSet a status for the whitelist\n\nUsage: aurora-cli set-whitelist-status --kind \u003cKIND\u003e --status \u003cSTATUS\u003e\n\nOptions:\n      --kind \u003cKIND\u003e      Kind of the whitelist\n      --status \u003cSTATUS\u003e  Status of the whitelist, 0/1\n  -h, --help             Print help\n```\n\n### `aurora-cli add-entry-to-whitelist`\n\n```console\n$ aurora-cli help add-entry-to-whitelist\nAdd entry into the whitelist\n\nUsage: aurora-cli add-entry-to-whitelist --kind \u003cKIND\u003e --entry \u003cENTRY\u003e\n\nOptions:\n      --kind \u003cKIND\u003e    Kind of the whitelist\n      --entry \u003cENTRY\u003e  Entry for adding to the whitelist\n  -h, --help           Print help\n```\n\n### `aurora-cli add-entry-to-whitelist-batch`\n\n```console\n$ aurora-cli help add-entry-to-whitelist-batch\nAdd entries into the whitelist\n\nUsage: aurora-cli add-entry-to-whitelist-batch \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  Path to JSON file with array of entries\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli remove-entry-from-whitelist`\n\n```console\n$ aurora-cli help remove-entry-from-whitelist\nRemove the entry from the whitelist\n\nUsage: aurora-cli remove-entry-from-whitelist --kind \u003cKIND\u003e --entry \u003cENTRY\u003e\n\nOptions:\n      --kind \u003cKIND\u003e    Kind of the whitelist\n      --entry \u003cENTRY\u003e  Entry for removing from the whitelist\n  -h, --help           Print help\n```\n\n### `aurora-cli set-key-manager`\n\n```console\n$ aurora-cli help set-key-manager\nSet relayer key manager\n\nUsage: aurora-cli set-key-manager [ACCOUNT_ID]\n\nArguments:\n  [ACCOUNT_ID] AccountId of the key manager\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli add-relayer-key`\n\n```console\n$ aurora-cli help add-relayer-key\nAdd relayer public key\n\nUsage: aurora-cli add-relayer-key --public-key \u003cPUBLIC_KEY\u003e --allowance \u003cALLOWANCE\u003e\n\nOptions:\n      --public-key \u003cPUBLIC_KEY\u003e  Public key\n      --allowance \u003cALLOWANCE\u003e    Allowance\n  -h, --help                     Print help\n```\n\n### `aurora-cli remove-relayer-key`\n\n```console\n$ aurora-cli help remove-relayer-key\nRemove relayer public key\n\nUsage: aurora-cli remove-relayer-key \u003cPUBLIC_KEY\u003e\n\nArguments:\n  \u003cPUBLIC_KEY\u003e  Public key\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-upgrade-delay-blocks`\n\n```console\n$ aurora-cli help  get-upgrade-delay-blocks\nGet delay for upgrade in blocks\n\nUsage: aurora-cli get-upgrade-delay-blocks\n\nOptions:\n-h, --help  Print help\n```\n\n### `aurora-cli set-upgrade-delay-blocks`\n\n```console\n$ aurora-cli help set-upgrade-delay-blocks\nSet delay for upgrade in blocks\n\nUsage: aurora-cli set-upgrade-delay-blocks \u003cBLOCKS\u003e\n\nArguments:\n  \u003cBLOCKS\u003e  Number blocks\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-erc20-from-nep141`\n\n```console\n$ aurora-cli help get-erc20-from-nep141\nGet ERC-20 from NEP-141\n\nUsage: aurora-cli get-erc20-from-nep141 \u003cACCOUNT_ID\u003e\n\nArguments:\n  \u003cACCOUNT_ID\u003e Account id of NEP-141\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-nep141-from-erc20`\n\n```console\n$ aurora-cli help get-nep141-from-erc20\nGet NEP-141 from ERC-20\n\nUsage: aurora-cli get-nep141-from-erc20 \u003cADDRESS\u003e\n\nArguments:\n  \u003cADDRESS\u003e  Address for ERC-20\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-erc20-metadata`\n\n```console\n$ aurora-cli help get-erc20-metadata\nGet ERC-20 metadata\n\nUsage: aurora-cli get-erc20-metadata \u003cERC20_ID\u003e\n\nArguments:\n  \u003cERC20_ID\u003e  Address or account id of the ERC-20 contract\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-erc20-metadata`\n\n```console\n$ aurora-cli help set-erc20-metadata\nSet ERC-20 metadata\n\nUsage: aurora-cli set-erc20-metadata --erc20-id \u003cERC20_ID\u003e --name \u003cNAME\u003e --symbol \u003cSYMBOL\u003e --decimals \u003cDECIMALS\u003e\n\nOptions:\n      --erc20-id \u003cERC20_ID\u003e  Address or account id of the ERC-20 contract\n      --name \u003cNAME\u003e          Name of the token\n      --symbol \u003cSYMBOL\u003e      Symbol of the token\n      --decimals \u003cDECIMALS\u003e  Decimals of the token\n  -h, --help                 Print help\n```\n\n### `aurora-cli mirror-erc20-token`\n\n```console\n$ aurora-cli help mirror-erc20-token\nMirror ERC-20 token\n\nUsage: aurora-cli mirror-erc20-token --contract-id \u003cCONTRACT_ID\u003e --nep141 \u003cNEP141\u003e\n\nOptions:\n      --contract-id \u003cCONTRACT_ID\u003e  Account of contract where ERC-20 has been deployed\n      --nep141 \u003cNEP141\u003e            Account of corresponding NEP-141\n  -h, --help                       Print help\n```\n\n### `aurora-cli set-eth-connector-contract-account`\n\n```console\n$ aurora-cli help set-eth-connector-contract-account\nSet eth connector account id\n\nUsage: aurora-cli set-eth-connector-contract-account [OPTIONS] --account-id \u003cACCOUNT_ID\u003e\n\nOptions:\n      --account-id \u003cACCOUNT_ID\u003e      Account id of eth connector\n      --withdraw-ser \u003cWITHDRAW_SER\u003e  Serialization type in withdraw method\n  -h, --help           \n```\n\n### `aurora-cli get-eth-connector-contract-account`\n\n```console\n$ aurora-cli help get-eth-connector-contract-account\nGet eth connector account id\n\nUsage: aurora-cli get-eth-connector-contract-account\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli set-eth-connector-contract-data`\n\n```console\n$ aurora-cli help set-eth-connector-contract-data\nSet eth connector data\n\nUsage: aurora-cli set-eth-connector-contract-data --prover-id \u003cPROVER_ID\u003e --custodian-address \u003cCUSTODIAN_ADDRESS\u003e --ft-metadata-path \u003cFT_METADATA_PATH\u003e\n\nOptions:\n      --prover-id \u003cPROVER_ID\u003e\n          Prover account id\n      --custodian-address \u003cCUSTODIAN_ADDRESS\u003e\n          Custodian ETH address\n      --ft-metadata-path \u003cFT_METADATA_PATH\u003e\n          Path to the file with the metadata of the fungible token\n  -h, --help\n          Print help\n```\n\n### `aurora-cli set-paused-flags`\n\n```console\n$ aurora-cli help set-paused-flags\nSet eth connector paused flags\n\nUsage: aurora-cli set-paused-flags \u003cMASK\u003e\n\nArguments:\n  \u003cMASK\u003e  Pause mask\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli get-paused-flags`\n\n```console\n$ aurora-cli help get-paused-flags\nGet eth connector paused flags\n\nUsage: aurora-cli get-paused-flags\n\nOptions:\n  -h, --help  Print help\n```\n\n### `aurora-cli transaction-status`\n\n```console\n$ aurora-cli help transaction-status\nGet transaction status\n\nUsage: aurora-cli transaction-status [OPTIONS] --hash \u003cHASH\u003e\n\nOptions:\n      --hash \u003cHASH\u003e              Transaction hash\n      --wait-until \u003cWAIT_UNTIL\u003e  Wait until the transaction is in the `wait_until` state [default: final] [possible values: none, included, executed-optimistic, included-final, executed, final]\n  -h, --help                     Print help\n```\n\n### `aurora-cli add-relayer`\n\n```console\n$ aurora-cli help add-relayer\nAdd relayer\n\nUsage: aurora-cli add-relayer --deposit \u003cDEPOSIT\u003e --full-access-pub-key \u003cFULL_ACCESS_PUB_KEY\u003e --function-call-pub-key \u003cFUNCTION_CALL_PUB_KEY\u003e\n\nOptions:                    \n      --deposit \u003cDEPOSIT\u003e                              \n      --full-access-pub-key \u003cFULL_ACCESS_PUB_KEY\u003e      \n      --function-call-pub-key \u003cFUNCTION_CALL_PUB_KEY\u003e  \n  -h, --help                                           Print help\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurora-is-near%2Faurora-cli-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faurora-is-near%2Faurora-cli-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurora-is-near%2Faurora-cli-rs/lists"}