{"id":40240003,"url":"https://github.com/acuarica/vscode-ethers","last_synced_at":"2026-01-19T23:40:01.073Z","repository":{"id":40296440,"uuid":"481177041","full_name":"acuarica/vscode-ethers","owner":"acuarica","description":"Ethers Mode allows you to explore and call Smart Contracts methods using Ethers.js and view the response directly in VS Code. It interacts with any EVM-compatible blockchain, e.g., Ethereum, Polygon, Avalanche, etc.","archived":false,"fork":false,"pushed_at":"2023-11-18T02:58:16.000Z","size":15244,"stargazers_count":14,"open_issues_count":8,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-29T01:16:14.620Z","etag":null,"topics":["address","avalanche","blockchain","bytecode","ethereum","ethers","evm","polygon","repl","smart-contracts","solidity","web3"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=acuarica.ethers-mode","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acuarica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-13T10:49:27.000Z","updated_at":"2024-01-19T09:59:27.000Z","dependencies_parsed_at":"2023-11-18T04:04:10.343Z","dependency_job_id":null,"html_url":"https://github.com/acuarica/vscode-ethers","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/acuarica/vscode-ethers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acuarica%2Fvscode-ethers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acuarica%2Fvscode-ethers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acuarica%2Fvscode-ethers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acuarica%2Fvscode-ethers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acuarica","download_url":"https://codeload.github.com/acuarica/vscode-ethers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acuarica%2Fvscode-ethers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28590657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["address","avalanche","blockchain","bytecode","ethereum","ethers","evm","polygon","repl","smart-contracts","solidity","web3"],"created_at":"2026-01-19T23:40:00.539Z","updated_at":"2026-01-19T23:40:01.066Z","avatar_url":"https://github.com/acuarica.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Ethers Mode\n\n[![marketplace](https://vsmarketplacebadges.dev/version-short/acuarica.ethers-mode.png)](https://marketplace.visualstudio.com/items?itemName=acuarica.ethers-mode)\n[![installs](https://vsmarketplacebadges.dev/installs-short/acuarica.ethers-mode.png)](https://marketplace.visualstudio.com/items?itemName=acuarica.ethers-mode)\n[![downloads](https://vsmarketplacebadges.dev/downloads-short/acuarica.ethers-mode.png)](https://marketplace.visualstudio.com/items?itemName=acuarica.ethers-mode)\n[![rating](https://vsmarketplacebadges.dev/rating-star/acuarica.ethers-mode.png)](https://marketplace.visualstudio.com/items?itemName=acuarica.ethers-mode)\n[![workflow](https://github.com/acuarica/vscode-ethers/actions/workflows/main.yaml/badge.svg)](https://github.com/acuarica/vscode-ethers/actions)\n\nEthers Mode allows you to explore and call Smart Contracts methods using [Ethers.js](https://docs.ethers.io/v5/) and view the response directly in VS Code.\nIt interacts with any EVM-compatible blockchain, _e.g._, Ethereum, Polygon, Avalanche, _etc_.\nIt uses VS CodeLens to display contextual information about Contracts, Externally Owned Accounts and networks.\n\n![preview](https://user-images.githubusercontent.com/4592980/166147485-ae00599b-d6c0-456b-9777-0a42706cbf9a.gif)\n\n## Main Features\n\n- Call Smart Contract method by writing its [Human-Readable ABI Signature](https://blog.ricmoo.com/human-readable-contract-abis-in-ethers-js-141902f4d917)\n- Detect contract or EOA address and provide its balance\n- Call multiple Smart Contract methods in a single file\n- Send method arguments and autodetect argument types\n- View return value as a notification (**CHANGE**)\n- Provide network info\n- Select multiple network in a single file networks (using `net \u003cnetwork name | RPC URL\u003e`)\n- Error reporting as you type\n- Alias definitions with `as` and `this`\n- Send and sign transactions using private keys\n- Ether CashFlow report for block ranges and block contextual information\n- `Ethers` language support\n  - `.ethers` and `.web3` file extensions\n  - Syntax highlight of Human-Readable ABI Signatures if Solidity extension is installed\n  - TODO Auto completion for method, url, header, custom/system variables, mime types and so on\n  - Comments (line starts with `#`) support\n  - Code snippets for several ERCs\n  - TODO Support navigate to symbol definitions(request and file level custom variable) in open `http` file\n  - CodeLens support to add an actionable link to call method\n  - CHECK Fold/Unfold for request block\n\nAnd more\n\n- Auto detect language mode using `net` declaration\n\n## Usage\n\nIn a new editor, select a network, followed by a contract address and a method call\n\n```ethers\nnet fuji\n\n0x5425890298aed601595a70AB815c96711a31Bc65\nname() view returns (string)\n```\n\nOnce you prepared a Smart Contract method call,\nclick the `Call Smart Contract Method` link above the call\n(this will appear if the file's language is `Ethers`, by default `.ethers` and `.web3` files are like this).\n\n## Features\n\n### Aliases\n\nYou can define aliases using the `as` keyword.\nThese aliases can be used to reference the aliased address within another address.\nMoreover, you can use the `this` reference to use the address in the current scope.\n\n![preview-aliases](https://user-images.githubusercontent.com/4592980/166147504-f41a8a57-e628-4ab2-8503-e93eece2406b.gif)\n\n### Hovers \u0026 Decompile\n\nProvide connection info and decompilation of smart contracts.\n\n![preview-decompile](https://user-images.githubusercontent.com/4592980/166395723-64519b4a-2648-4e05-aeab-3f2a1c6c3226.gif)\n\n### Sending and Signing Transactions\n\nTo send and sign transactions,\nyou can provide a private key for an account.\nThe address will be displayed as a code lens.\n\n![preview-signing](https://user-images.githubusercontent.com/4592980/166147513-e9670847-92b1-4380-84b7-d6c03b51e0d4.gif)\n\n### Display inferred types\n\nWhen you omit the type of an argument, it will display an inlay with the inferred type.\n\n![preview-inlays](https://user-images.githubusercontent.com/4592980/166147364-ddbd652d-e284-4927-85d1-5b92e61c1c1b.gif)\n\n### Blocks and Ether CashFlow\n\nAllows you display single block or block range information by proving a contextual hover.\nMoreover, you can calculate the Ether CashFlow of the entire block range.\nUse `-` as a block number separator to denote a block range.\n\n![preview-cashflow](https://user-images.githubusercontent.com/4592980/169706483-10d8a1b1-1af1-470f-b76d-35d6dbf6ac05.gif)\n\n### Snippets\n\nWhen you know that a contract implements a specific ERC,\nyou can use snippets to insert its methods.\nThe errors are caused because on methods that require sending a transaction without specifying a signer.\n\n![preview-snippets](https://user-images.githubusercontent.com/4592980/166147529-7302d0bb-a0bd-469c-9f39-3c4b96ab5157.gif)\n\n### Error Reporting\n\nWhenever there is a syntax error or the method call is inconsistent, _e.g._, trying to send a transaction without a signer, the extension will show provide diagnostics about them.\n\n![preview-errors](https://user-images.githubusercontent.com/4592980/166147549-e28da62b-1376-4ee3-97f2-88c511fcb00f.gif)\n\n### Language Auto Detection\n\nJust write `net \u003cprovider\u003e` at the beginning of the file and select\n`Change Language Mode -\u003e Auto Detect`.\n\n![preview-autodetect](https://user-images.githubusercontent.com/4592980/166147557-c7e516d3-caa9-40bb-821c-d530bf17915c.gif)\n\n### a\n\n```ethers\n\nsdsd\nnet sdsd\n\nnet\n```\n\n## Contributing\n\n- Execute `yarn install` in terminal to install dependencies\n- Execute the `Run Extension` target in the Debug View.\n  This will:\n  - Start a task `npm: watch` to compile the code\n  - Run the extension in a new VS Code window\n\n### Typechecking and Building\n\nTo typecheck the extension using `tsc`, run\n\n```sh\nyarn compile\n```\n\nTo build and package the extension we use the `esbuild` bundler.\nTo bundle the extension into `dist/main.js`, run\n\n```sh\nyarn build\n```\n\n### Unit Testing\n\nUnit tests can be found under the `test` folder.\nOur test suite uses `mocha` to run the tests.\n\n```sh\nyarn test\n```\n\n### VS Code Testing\n\n**TODO!**\n\n### VS Code API Overview\n\n### `languages` module\n\nThe extension uses [`languages.registerCodeLensProvider`](https://code.visualstudio.com/api/references/vscode-api#languages.registerCodeLensProvider)\nto register the `CodeLensProvider`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facuarica%2Fvscode-ethers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facuarica%2Fvscode-ethers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facuarica%2Fvscode-ethers/lists"}