---
description: This page explains how the Glider UI works and what features it has
---

# Glider Usage

## Using the Glider IDE

The **Glider IDE** is a user-friendly platform for writing and running queries on smart contracts. This guide gives an overview of its main features and how it works.

### Selecting a Chain

Users can choose from various chains to scan their queries against. These chains include Kovan testnet, Ethereum mainnet, and more!

#### Recent Chains

Recent chains are dynamic databases of contracts active within the past 37 days. Researchers can use recent chains to get more relevant and timely results for their queries.

Unlike non-recent chains, recent chains are not deduplicated - meaning the Glider output may contain contracts with identical bytecode.

### Writing Queries and Viewing Output

* Glider offers a REPL-like interface divided into two main sections:
  *   **Left Panel**: This is where you write query code using the Monaco editor, the same editor used in VSCode, with support for various features.

      * To run your query, click the '**Run**' button at the top of the interface.



      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FATLIRockRz5mW3bALcL9%2FScreenshot%202025-01-07%20at%2013.35.53.png?alt=media&#x26;token=587de679-46a5-467f-bed2-e8c719b68d9e" alt=""><figcaption></figcaption></figure>

      * During execution, errors may occur and will be displayed in the output window.



      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FSiDcW7si8Tw25yfO763C%2Fimage.png?alt=media&#x26;token=c224b522-d673-4941-9c14-52a94522a8e2" alt=""><figcaption></figcaption></figure>
  *   **Right Panel**: This panel displays the query output. Glider supports different output types.

      * **Contract**: When you return a contract, you get the contract address, which is a link to the contract's page on a scanner (like Etherscan), along with the contract's name.

      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FJ6Xbvyx7ooeLELmfRMZx%2Fimage.png?alt=media&#x26;token=8452acd4-8a60-422b-992d-663ac0c48005" alt=""><figcaption></figcaption></figure>

      * **Function**: When you return a function, you get the source code of the function, along with the address and name of the contract where it is defined.

      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FlpOlX2bZNmRWM05s69pm%2Fimage.png?alt=media&#x26;token=f49856d5-f0de-4ca0-b2c9-67c3335b965f" alt=""><figcaption></figcaption></figure>

      * **Instruction**: When you return an instruction, you get the source code of the function where the instruction is used. **GliderIDE** will automatically highlight the instruction in the function's source code. It also returns the address and name of the contract where the function is defined and used.

      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FkbPhJ5qHlq0RREJM2QkZ%2Fimage.png?alt=media&#x26;token=36997202-433c-4045-9b27-ad7295bd3652" alt=""><figcaption></figcaption></figure>

      * **Print**: The print output appears in a separate window at the bottom of the output area, displaying any text you choose to print.

      <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FcPboA0b64ze58hp37QuL%2Fimage.png?alt=media&#x26;token=c8603e6a-af92-4f4e-a0be-d020af1bd4de" alt=""><figcaption></figcaption></figure>

### Creating, Importing, and Sharing Queries

*   Above the **output** and **editor** windows, you can see three buttons: **New Query**, **Import** **Query**, and **Share**.

    * The **New Query** button allows you to create a new file for your query.
    * The **Import Query** button lets you import a query from a file on your local device.

    <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FY49Q8MWbesdPBuTcjc0O%2FScreenshot%202025-01-07%20at%2016.00.48.png?alt=media&#x26;token=3188847d-7598-49ea-8432-5b8cf57e3e4a" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FWtrjzl6a1GBWLcAaLnJI%2FScreenshot%202025-01-07%20at%2016.01.47.png?alt=media&#x26;token=4b4d56db-462b-491f-87cf-721a553b46f7" alt=""><figcaption></figcaption></figure>

    * **Share Query** is the most exciting feature. With this button, you can share your query via a link. When you press the **Share button**, a new link is generated for your query. Anyone with this link can view your query. You can share the link on X (formerly Twitter) or by clicking the 'Copy Link' button.

    <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fqlur2UVhj4XKsKmzKKuF%2FScreenshot%202025-01-07%20at%2016.01.09.png?alt=media&#x26;token=fce53c6f-9499-4797-b306-e1a80f5df116" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F8u2UxkvXCLEdDYHAtv75%2FScreenshot%202025-01-07%20at%2016.01.38.png?alt=media&#x26;token=4e79397a-81d4-4474-8ae3-98627b02c650" alt=""><figcaption></figcaption></figure>

### Execution scope

* **Chain**: The first option allows you to run your query against an entire chain, which you can select from the integrated chain list. You also need access to run queries on the selected chain. The Kovan testnet is available to all users.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FuixQOS4DpNBq8RupMr0k%2Fimage.png?alt=media&#x26;token=f1760359-3d52-4d1e-89a5-613fafe92b85" alt="" width="224"><figcaption></figcaption></figure>

* **Custom Scope**: This option allows users to run queries on smart contracts they upload. Note: This feature is still under development.

### Profile your query

**Next to the Run button, you'll find the Profile button, which displays the profiler results for your query**.

* **Performance Button**: Click this to open the performance window.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FVAUDMxhvjMrgXS7x2SKX%2FScreenshot%202025-01-07%20at%2013.57.13.png?alt=media&#x26;token=84344eb5-00e7-489c-b74c-1384f88609d0" alt=""><figcaption></figcaption></figure>

* **General Performance** results

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FG6HEHeJ1Dwxco7S4zQDm%2Fimage.png?alt=media&#x26;token=a178b276-4dc0-4847-ba04-9f8b1a7e2c8f" alt=""><figcaption></figcaption></figure>

* **Profile statistics**

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FPTF1n62ZAef1VrzF4bpw%2Fimage.png?alt=media&#x26;token=1f05b80f-3cfd-42c7-bf40-b59016c902e6" alt=""><figcaption></figcaption></figure>

### Query Explorer

* To create a new file, open the query explorer and click the '**`+`**'. This will create a file with a default name, which you can rename. By clicking the **folder icon**, you can create a folder in the same way as a file. To move a file into a folder, you have two options: first, click on the folder and then create the file inside it; second, create a file, click the '**`...`**' button, select '**Move File to Folder**', and choose the folder where you want to move it. From this menu, you can also delete, rename, or download files.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FvhDbKikQRm114yc6ODqr%2FScreenshot%202025-01-07%20at%2014.10.12.png?alt=media&#x26;token=396f4aac-dbe3-48ba-8ee9-39b89df61f6a" alt=""><figcaption></figcaption></figure>

* You can also download the entire output in **JSON** format by clicking the download button below the output window.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FVk4DfmubwRP0aBmG1EZD%2FScreenshot%202025-01-07%20at%2014.55.12.png?alt=media&#x26;token=9c04e3d8-a858-4e76-b5f5-c707346ed137" alt=""><figcaption></figcaption></figure>

Output json example:

```json
[
  {
    "contract": "0x9e35577836b8ac2e075a8d30e150bb9aafcbb64e",
    "contract_name": "Address",
    "contract_link": "https://etherscan.io/address/0x9e35577836b8ac2e075a8d30e150bb9aafcbb64e",
    "uuid": "db1fd33e-4f81-4fc3-86db-c03c6923baac",
    "severity": "none",
    "sol_function": "function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }",
    "sol_instruction": "{\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }"
  },
  {
    ...
  },
  ...
]
```

### Documentation

* You can access the full Glider documentation from the Glider IDE by clicking the '**Guide**' button.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FjA4jQvL4TPZzTvxPrDxX%2FScreenshot%202025-01-07%20at%2015.41.02.png?alt=media&#x26;token=5c690552-6936-49f2-bd10-b04515f242c3" alt=""><figcaption></figcaption></figure>

After clicking the '**Guide**' button, a window will appear on the right side of the editor with the documentation. In this window, you can find everything available in the **GitBook** documentation. It also includes a search function, allowing you to search for specific functions. Additionally, you can access the full **GitBook** documentation by clicking the link near the search bar.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FzZm4xbv0SC5MqgaF7M7s%2Fimage.png?alt=media&#x26;token=5523c011-8881-442c-b8b4-ae42c771a875" alt=""><figcaption></figcaption></figure>

### Useful Links and Materials

In the **Glider IDE** header, you'll find several useful buttons and links.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FfvyCxUEp5NaGMc2kBmpH%2Fimage.png?alt=media&#x26;token=ba4d56f0-a22c-4cad-a5d0-ea9e02bb2951" alt=""><figcaption></figcaption></figure>

* You'll find the '**Help**' button, which provides links to support resources, bug bounty guidelines, and the Glider documentation.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FnpPKYvdHW1KIMkwNTXZ1%2FScreenshot%202025-01-07%20at%2015.47.23.png?alt=media&#x26;token=ebfec8de-4b89-4ace-9c50-d87fd90ccfbc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FiRm7Dya36LO1QFJOaEWx%2Fimage.png?alt=media&#x26;token=8d8e8774-be3c-4fa0-8b6c-af0510d118ed" alt=""><figcaption></figcaption></figure>

* By clicking the **Discord** logo, you can join our **Discord** server, where you'll find channels for support, learning materials, and more.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FQi8xcOqzBtESGrD1vcm8%2FScreenshot%202025-01-07%20at%2015.49.03.png?alt=media&#x26;token=146ffa6f-9a8f-446b-9c89-cad279dd3433" alt=""><figcaption></figcaption></figure>

* In the Resources section, you'll find useful tools such as the **RVSS** **Calculator** (CVSS calculator for Web3), **Vulnerapedia**, Bug Bounty Guidelines, and the Glider Documentation.

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fj8pNTcTvBnIxqkZrzvG4%2Fimage.png?alt=media&#x26;token=1df62f6c-7225-4dfd-9f3f-cc1ea7db6f74" alt=""><figcaption></figcaption></figure>

* The '**My Scopes**' section is where you can use the custom scope features. As mentioned, this feature is still under development and will be available soon.
* If you click the rectangular button next to **Remedy** (highlighted in the red square in the screenshot), a dropdown will appear with other **Remedy** products, such as the **Remedy Bug Bounty platform** and **Engram** (ZK proof of text authority).

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FH5pcj01Q44dY7QEpdb6o%2FScreenshot%202025-01-07%20at%2015.54.44.png?alt=media&#x26;token=a966ba27-83ea-43d8-b29d-f1e4138af1c1" alt=""><figcaption></figcaption></figure>
