---
# System prepended metadata

title: Galaxy API

---

# Galaxy API

### Request endpoint: https://api.cream.finance/galaxy
## Conditions
1. [Address has ever borrowed](#Address-has-ever-borrowed)
2. [Hold iceCREAM](#Hold-iceCREAM)
3. [Deposit at least $50](#Deposit-at-least-$50)
4. [Borrow at least $100](#Borrow-at-least-$100)
5. [Borrow at least $300(abandoned)](#Borrow-at-least-$300)
6. [Borrow at least $5000](#Borrow-at-least-$5000)

### Graphql Query Sample

#### Memo:
> ${address} means user's address

#### Address has ever borrowed
Graphql request body:
```graphql=
query{
  everBorrowRecords(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "everBorrowRecords": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```

#### Hold iceCREAM
Graphql request body:
```graphql=
query{
  iceCreamHolderRecords(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "iceCreamHolderRecords": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```
#### Deposit at least $50
Graphql request body:
```graphql=
query{
  greaterFiftyRecords(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "greaterFiftyRecords": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```
#### Borrow at least $100
Graphql request body:
```graphql=
query{
  greaterOneHundred(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "greaterOneHundred": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```
#### Borrow at least $300(abandoned)
Graphql request body:
```graphql=
query{
  greaterThreeHundred(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "greaterThreeHundred": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```
#### Borrow at least $5000
Graphql request body:
```graphql=
query{
  greaterFiveThousand(address:"${address}"){
    address,
    isEligible
  }
}
```
Graphql response:
```graphql=
{
    "data": {
        "greaterFiveThousand": {
            "address": "${address}",
            "isEligible": boolean
        }
    }
}
```