# Gql

### Available Commands

| Command               | Description                                                              |
| --------------------- | ------------------------------------------------------------------------ |
| [**app**](#app)       | Queries details about an app.                                            |
| [**assets**](#assets) | Queries details about your deployed apps and ADOs for the current chain. |
| [**url**](#url)       | Fetches the GraphQL url used.                                            |

## App

Queries details about an app.

#### Usage

```
gql app <contract address>
```

#### Example

```
gql app andr1vtsclrxc0vk8qx3xqj4nm9uczqxc5rh3w4ey2ha9zz0cpv8lrncsp436gs
```

#### Response

The response includes the owner address, app name, and components of the app.

```
- Searching the Cosmos...
Owner: andr1vcmlq0snkv8tjccxq8r86aqd3l67xlwnqgma7q
App Name: Crowdfunding

Components
Crowdfund   crowdfund andr10y4jzxavk0uw2usy7ezt4dq5h0k64na8c9yz3rq3dk50v7j8mezsq8cnce
Splitter    splitter  andr1nywjc2mfzl2fud8epzrllj2f2xlpnk2tfpnf49qh02z7c97gv2dqw3qvdn
Tokens      cw721     andr1zkjmt8x78w5de0pysh6yrdd3alxf7dp8uv80ey2yadjxsaywy3vquj76lx
Yield-Vault vault     andr1k528kg8h3q56j5yazshv39fafmhjzl4540u7w36g6q2amgyrpwpsf50ury
```

## Assets

Queries details about your deployed apps and ADOs for the current chain.

#### Usage

```
gql assets
```

{% hint style="warning" %}
The result is the same as running "ado list"
{% endhint %}

#### Example

```
? guides@galileo-3> gql assets
⠂ Searching the Cosmos...
Address                                                         ADO Type App Contract                                                   
andr1dtaqwlmzlk3jku5un6h6rfunttmwsqnfz7evvdf4pwr0wypsl68qa30vxv cw20                                                                    
andr138gmtsqwcz0z09ja6y4cs3uyestx85440xcuwsght70jvmc9v92s9lwvj0 app                                                                     
andr1qdgvugdnscwnj8lc96q666000gyjv434kn9zl9ey3dph6p0cunuszv3dwf cw721    andr138gmtsqwcz0z09ja6y4cs3uyestx85440xcuwsght70jvmc9v92s9lwvj0
? guides@galileo-3> () 
```

#### Flags

| Flag     | Description                              | Usage        |
| -------- | ---------------------------------------- | ------------ |
| **type** | Filter assets by ADO type.               | --type cw721 |
| **help** | Displays info about the current command. | --help       |

## URL

### Get

Fetches the GraphQL url used.

#### Usage

```
gql url get
```

#### Example

```
? mainnet-1@andromeda-1> gql url get
https://api.andromedaprotocol.io/graphql/mainnet
? mainnet-1@andromeda-1> () 
```

### Set

{% hint style="info" %}
Setting the URL&#x20;
{% endhint %}

Sets the GraphQL url to be used.

#### Usage

```
gql url set <url>
```

#### Example

```
gql url set https://api.andromedaprotocol.io/graphql/mainnet
```

or&#x20;

```
gql url set
```

and then choose from the available options.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.andromedaprotocol.io/andromeda/andromeda-beta-ados-1/andromeda-cli/gql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
