Skip to content

Commit

Permalink
Merge pull request #3101 from ethereum/addressParam
Browse files Browse the repository at this point in the history
address param explained
  • Loading branch information
ryestew committed Jul 19, 2022
2 parents 791c2c7 + 76fe614 commit 751e558
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ There are many ways to customize Remix IDE by using url parameters. Here are som
* Specify **the theme** (Dark or Light). [SEE MORE](#specifying-a-theme)
* Specify which panels should be **minimized** - useful when embedding Remix in your site. [SEE MORE](#minimizing-remix-panels)
* Select the **version of the Solidity** compiler, enable/disable the **optimizer**, turn on auto compile or choose the language for the Solidity compiler. [SEE MORE](#load-a-specific-version-of-the-solidity-compiler)
* Load **verified contracts from Etherscan** using contract address [SEE MORE](#load-contracts-from-etherscan-via-address)

### Activating a list of plugins
The following example contains the url parameter **activate** followed by **a comma separated list of plugins**.
Expand Down Expand Up @@ -117,6 +118,11 @@ The `code` parameter takes an encoded base64 string and loads it into the Editor
```
https://remix.ethereum.org/?#code=Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVAoKcHJhZ21hIHNvbGlkaXR5IDAuOC40OwoKLyoqCiAqIEB0aXRsZSBXb25kZXJmdWxDb2RlCiAqIEBkZXYgV2VsY29tZSB0byBSZW1peAogKi8KY29udHJhY3QgWW91IHsKCiAgICBhZGRyZXNzIHByaXZhdGUgb3duZXI7CiAgICAKICAgIC8qKgogICAgICogQGRldiBTZXQgY29udHJhY3QgZGVwbG95ZXIgYXMgeW91QW5kWW91cldvbmRlcmZ1bFNlbGYKICAgICAqLwogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgeW91QW5kWW91cldvbmRlcmZ1bFNlbGYgPSBtc2cuc2VuZGVyOwoKICAgIH0KCiAgICAvKioKICAgICAqIEBkZXYgQ2hhbmdlIG1vb2QKICAgICAqIEBwYXJhbSBuZXdPd25lciBhZGRyZXNzIG9mIG5ldyBvd25lcgogICAgICovCiAgICBmdW5jdGlvbiBjaGFuZ2VNb29kKGFkZHJlc3MgbmV3TW9vZEFkZHIpIHB1YmxpYyB7CiAgICAgICAgb3duZXJNb29kID0gbmV3TW9vZEFkZHI7CiAgICB9Cn0=
```
## Load contracts from Etherscan via address
The `address` parameter takes an address, loads all the **verified contracts** found for the address on different Ethereum networks and saves them into the `etherscan-code-sample` workspace of the File Explorer:
```
https://remix.ethereum.org/#address=0xdac17f958d2ee523a2206206994597c13d831ec7
```

## Load a GIST
The URL parameter here is `gist`.
Expand Down

0 comments on commit 751e558

Please sign in to comment.