简介

  • 导航混音
  • Remix Desktop
  • 安全使用 Remix
  • Remix 教程
  • Remix重置链接和参数
    • 主要的Remix URLs
    • Remix with URL parameters
      • Plugin management
        • Activate a list of plugins
        • Pass commands to a plugin's API via a URL param
        • 调用多个不同插件的API
      • Loading content
        • Load a file via a URL param into the Editor
        • Load a Solidity file in the Editor via an encoded base64 string
        • 通过地址从Etherscan中加载合约
        • Load a Solidity contract from GitHub
        • 加载一个GIST
      • Compiler settings
        • Load a specific version of the Solidity Compiler
        • 选择Solidity编译器的语言
      • UI / Appearance
        • Minimize Remix panels
        • Specify a theme
      • Combine multiple parameters
  • 常见问题

核心单元

  • 文件管理器
  • Remix Workspaces
  • AI Tools
  • Working with Git in Remix
  • 搜索文件
  • 插件管理器
  • 设置
  • 编辑器
  • 部署 & 运行
  • 部署 & 运行 (第 2 部分)
  • 部署与运行代理合约
  • QuickDApp: Generating UIs for your Contracts
  • Deploying a dApp
  • Deploy a Base Mini App
  • Account Abstraction & Smart Accounts
  • 终端
  • Remixd:访问您的本地文件系统

稳固模块

  • Solidity 编译器
  • 调试器
  • 调试交易
  • 固态分析仪

Other Compilers

  • Noir Compiler
  • Circom Compiler
  • Vyper Compiler

单元测试

  • Solidity Unit Testing plugin
  • 命令行接口
  • Remix 断言库
  • 示例测试
  • 使用 Chai 和 Mocha 测试

外部工具集成

  • 安全帽
  • Slither
  • 铸造厂

指南

  • 创建和部署合约
  • 在Solidity中导入和加载源文件
  • 合同核查
  • 运行脚本

高级

  • 编译工具
  • Remix命令

其它选项

  • 插件列表
  • 将Remix作为代码查看器
  • 代码贡献指南
  • 社区支持
Remix - Ethereum IDE
  • Remix重置链接和参数
  • 查看页面源码

Remix重置链接和参数

主要的Remix URLs

  • Remix IDE线上地址是https://remix.ethereum.org.

  • The alpha version of Remix is located at https://alpha.remix.live. This is not a stable version.

  • GitHub repository: https://github.com/remix-project-org. The README contains instructions for running Remix-IDE locally.

  • Remix Desktop is an Electron App. Here is the release page.

  • The Remix X account is EthereumRemix.

  • The Remix Project Blog for release notes and articles is: https://ethereumremix.substack.com.

  • Remix blog used to be: https://medium.com/remix-ide. Older release notes are here.

  • The Remix Project is our info site about the tool and the project.

Remix is an open source project. Other projects have forked our codebase. The forked versions of Remix sites will look like Remix but are not Remix. So be careful! Forked sites are not maintained by us nor endorsed by us.

Remix with URL parameters

Using Remix with URL parameters will load the tool in the following ways:

Remix URL parameters follow these conventions:

  • ?#param=value: a query string (?) immediately followed by a hash fragment (#). value can be a plugin name, a comma-separated list of plugin names, a boolean (true/false), a theme name, a base64-encoded string, or a compiler version string. Used to activate or deactivate plugins, set a theme, minimize panels, load a base64-encoded file, and set a specific compiler build version.

  • #param=value: a hash fragment only, with no preceding query string. value can be a URL, an Ethereum address, a boolean, or a language name. Used to load a file via URL, load a verified contract from Etherscan, enable auto-compile, select the compiler language, and load a custom compiler from a URL.

  • ?param=value: a plain query string with no hash fragment. value is a Gist ID. Used to load a GitHub Gist into the File Explorer.

  • //: a double slash delimiter used within call and calls values to separate a plugin's name, function, and arguments (e.g. fileManager//open//contracts/3_Ballot.sol).

  • ///: a triple slash delimiter used within calls to separate multiple plugin API calls from one another.

Plugin management

Activate a list of plugins

The following example contains the URL parameter activate followed by a comma separated list of plugins.

https://remix.ethereum.org/?#activate=LearnEth,noir-compiler

The last plugin in the list will gain the focus.

When you use the activate list, all other plugins that a user had loaded will be deactivated. This does not apply to the File Explorer, Solidity Compiler, Deploy & Run, the Plugin Manager, and the Settings modules.

备注

In a Remix URL parameter, a plugin is referred to by its name as specified in its profile in the Remix Plugins Directory repository. To quickly get a plugin's name go to Plugin List page of the docs and search for the plugin you want. There will be a link with the urls to activate the plugin.

To deactivate a list of plugins:

https://remix.ethereum.org/?#deactivate=debugger

Pass commands to a plugin's API via a URL param

The URL parameter to issue a command is call. Following the call is a // (double slash) separated list of arguments.

call=plugin_name//function//parameter1//parameter2

The URL below uses activate & call. It activates a number of plugins and calls the File Explorer to tell it to load one of the default Remix files:

https://remix.ethereum.org/?#activate=defiexplorer,solidity&call=fileManager//open//contracts/3_Ballot.sol

To load a specific tutorial in the LearnEth plugin:

https://remix.ethereum.org/?#activate=solidityUnitTesting,solidity,LearnEth&call=LearnEth//startTutorial//ethereum/remix-workshops//master//proxycontract

调用多个不同插件的API

Use calls instead of call when you need to issue commands to multiple plugins in sequence. Where call targets a single plugin, calls chains multiple commands together, each separated by ///.

For example, the URL below activates a list of plugins, then calls the LearnEth plugin's API and the File Explorer's API in sequence:

https://remix.ethereum.org/?#activate=solidityUnitTesting,solidity,LearnEth&calls=LearnEth//startTutorial//ethereum/remix-workshops//master//proxycontract///fileManager//open//contracts/3_Ballot.sol

Loading content

Load a file via a URL param into the Editor

The url parameter takes a URL, loads it into the Editor and saves it in a Workspace called code-sample:

https://remix.ethereum.org/#url=https://github.com/remix-project-org/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol

重要

The code-sample workspaces are ephemeral and will not be persisted on a reload. To save a loaded code-sample workspace, rename the workspace.

Load a Solidity file in the Editor via an encoded base64 string

The code parameter takes a base64-encoded string of Solidity source code and loads it into the Editor as a .sol file, saving it in a Workspace called code-sample. To generate the base64 string, use btoa() in the browser console or any online base64 encoder.

https://remix.ethereum.org/?#code=Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVAoKcHJhZ21hIHNvbGlkaXR5IDAuOC40OwoKLyoqCiAqIEB0aXRsZSBXb25kZXJmdWxDb2RlCiAqIEBkZXYgV2VsY29tZSB0byBSZW1peAogKi8KY29udHJhY3QgWW91IHsKCiAgICBhZGRyZXNzIHByaXZhdGUgb3duZXI7CiAgICAKICAgIC8qKgogICAgICogQGRldiBTZXQgY29udHJhY3QgZGVwbG95ZXIgYXMgeW91QW5kWW91cldvbmRlcmZ1bFNlbGYKICAgICAqLwogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgeW91QW5kWW91cldvbmRlcmZ1bFNlbGYgPSBtc2cuc2VuZGVyOwoKICAgIH0KCiAgICAvKioKICAgICAqIEBkZXYgQ2hhbmdlIG1vb2QKICAgICAqIEBwYXJhbSBuZXdPd25lciBhZGRyZXNzIG9mIG5ldyBvd25lcgogICAgICovCiAgICBmdW5jdGlvbiBjaGFuZ2VNb29kKGFkZHJlc3MgbmV3TW9vZEFkZHIpIHB1YmxpYyB7CiAgICAgICAgb3duZXJNb29kID0gbmV3TW9vZEFkZHI7CiAgICB9Cn0=

通过地址从Etherscan中加载合约

The address parameter takes an address and loads the verified contract found for the address on Ethereum mainnet and saves it into the etherscan-code-sample workspace of the File Explorer:

https://remix.ethereum.org/#address=0xdac17f958d2ee523a2206206994597c13d831ec7

Load a Solidity contract from GitHub

With a GitHub URL of a Solidity contract like this one:

https://github.com/remix-project-org/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol

Then delete the GitHub part and type remix.ethereum.org in its place, like this:

https://remix.ethereum.org/ethereum/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol

Remix will fetch the Solidity file and open it up in the File Explorer in a Workspace named code-sample.

加载一个GIST

The gist parameter fetches all files from a GitHub Gist and saves them into a workspace named gist-<gist-id> in the File Explorer.

https://remix.ethereum.org/?gist=0fe90e825327ef313c88aedfe66ec142

To also have the GIST visible in the Editor, use both gist & call:

https://remix.ethereum.org/?#activate=solidity,fileManager&gist=0fe90e825327ef313c88aedfe66ec142&call=fileManager//open//gist-0fe90e825327ef313c88aedfe66ec142/gridMix4.sol

To load the GIST, have it visible in the Editor, and activate a list of plugins:

https://remix.ethereum.org/?#activate=solidity,LearnEth&gist=0fe90e825327ef313c88aedfe66ec142&call=fileManager//open//gist-0fe90e825327ef313c88aedfe66ec142/gridMix4.sol

Compiler settings

Load a specific version of the Solidity Compiler

The version parameter pins the compiler to a specific build, which is useful for reproducibility or working with contracts that require a particular version. The version string follows the format soljson-v<version>+commit.<hash>, where both the version number and commit hash are required.

https://remix.ethereum.org/?#version=soljson-v0.6.6+commit.6c089d02

备注

You need to specify both the Solidity version and the commit.

To load a custom compiler from a URL instead:

https://remix.ethereum.org/#version=https://solidity-blog.s3.eu-central-1.amazonaws.com/data/08preview/soljson.js

To enable autoCompile:

https://remix.ethereum.org/#autoCompile=true

选择Solidity编译器的语言

The language parameter sets the compiler language. Valid values are Solidity (the default) and Yul. Yul is an intermediate language used for low-level EVM programming and compiler development.

https://remix.ethereum.org/#language=Yul

UI / Appearance

Minimize Remix panels

The following URL will close everything except the Main Panel & the icon panel (the side and terminal are minimized).

https://remix.ethereum.org/?#embed=true

To minimize just the Side Panel, use this URL:

https://remix.ethereum.org/?#minimizesidepanel=true

要最小化终端,请使用此URL:

https://remix.ethereum.org/?#minimizeterminal=true

Specify a theme

The theme parameter accepts Dark or Light. To link to Remix with a theme specified, use this URL:

https://remix.ethereum.org/?#theme=Dark

Combine multiple parameters

Multiple parameters can be combined in a single URL by chaining them with &. The example below uses the following parameters:

  • activate=solidity,solidityUnitTesting,LearnEth — activates three plugins; LearnEth gains the Side Panel focus as the last in the list

  • theme=Light — sets the Light theme

  • minimizeterminal=true — minimizes the terminal panel

  • optimize=false — disables compiler optimization

  • evmVersion=null — uses the default EVM version

  • version=soljson-v0.6.6+commit.6c089d02.js — loads a specific compiler version

https://remix.ethereum.org/?#activate=solidity,solidityUnitTesting,LearnEth&theme=Light&minimizeterminal=true&optimize=false&evmVersion=null&version=soljson-v0.6.6+commit.6c089d02.js
上一页 下一页

© 版权所有 2019 - 2026, Remix Team。 最后更新于 6月 05, 2026.