Help Center
How can we help? 👋

Coding blocks

A description of coding block

Endpoints

Production environment:

https://graphigo.prd.galaxy.eco/query

Staging environment:

https://graphigo.stg.galaxy.eco/query

Query type

The Query type contains the API’s top-level entry points for all executable queries.

Query.campaign

Find a campaign. Returns campaign.

 

Example

Request:

javascript caption.js
query {
  campaign(id: 120) {
    id
    name
    numberID
    info
    description
    requireEmail
    status
    gasType
    startTime
    chain
    enableWhitelist
  }
}

Response:

extracaption/file.xml
{
  "data": {
    "campaign": {
      "id": "GCUKoUUbRo",
      "name": "50 GTC from GitcoinDAO",
      "numberID": 120,
      "info": "- Onboard to GitcoinDAO and get 50 GTC for completing an intermediate mission, with mentorship and support from Austin Griffith.\n- To onboard, use this form: https://form.typeform.com/to/E96KbTSy (mention \"shadowy super coder\" under \"specific skills\" section) \n- In addition to the 50 GTC rewards up for grabs, Gitcoin is also offering hands on support for grant creation leading up to GR11.\n",
      "description": "- Onboard to GitcoinDAO and get 50 GTC for completing an intermediate mission, with mentorship and support from Austin Griffith.\n- To onboard, use this form: https://form.typeform.com/to/E96KbTSy (mention \"shadowy super coder\" under \"specific skills\" section) \n- In addition to the 50 GTC rewards up for grabs, Gitcoin is also offering hands on support for grant creation leading up to GR11.\n",
      "requireEmail": false,
      "status": "Draft",
      "gasType": "GAS",
      "startTime": 1629129600,
      "chain": "RINKEBY",
      "enableWhitelist": true
    }
  }
}
extrafile/file/dot.js
{
  "data": {
    "campaign": {
      "id": "GCUKoUUbRo",
      "name": "50 GTC from GitcoinDAO",
      "numberID": 120,
      "info": "- Onboard to GitcoinDAO and get 50 GTC for completing an intermediate mission, with mentorship and support from Austin Griffith.\n- To onboard, use this form: https://form.typeform.com/to/E96KbTSy (mention \"shadowy super coder\" under \"specific skills\" section) \n- In addition to the 50 GTC rewards up for grabs, Gitcoin is also offering hands on support for grant creation leading up to GR11.\n",
      "description": "- Onboard to GitcoinDAO and get 50 GTC for completing an intermediate mission, with mentorship and support from Austin Griffith.\n- To onboard, use this form: https://form.typeform.com/to/E96KbTSy (mention \"shadowy super coder\" under \"specific skills\" section) \n- In addition to the 50 GTC rewards up for grabs, Gitcoin is also offering hands on support for grant creation leading up to GR11.\n",
      "requireEmail": false,
      "status": "Draft",
      "gasType": "GAS",
      "startTime": 1629129600,
      "chain": "RINKEBY",
      "enableWhitelist": true
    }
  }
}
 

Query.nftCore

Find a nft contract. Returns nftCore.

 

Example

Request:

Caption here hahaha
PHP

query {
  nftCore(address: "0x574E84F1837a69791379eCb9dbC9CB5c5d92b55E") {
    id
    contractAddress
    spaceStationAddress
    name
    info
    symbol
    chain
    transferable
  }
}
Caption here hahaha asdfsad asdfasdf link
PHP

query {
  nftCore(address: "0x574E84F1837a69791379eCb9dbC9CB5c5d92b55E") {
    id
    contractAddress
    spaceStationAddress
    name
    info
    symbol
    chain
    transferable
  }
}

Response:

{
  "data": {
    "nftCore": {
      "id": "7",
      "contractAddress": "0x574E84F1837a69791379eCb9dbC9CB5c5d92b55E",
      "spaceStationAddress": "0x860366952A0CC61196aAA861A71eE7bE3eB6E3eD",
      "name": "KOVAN NFT",
      "info": "KOVAN NFT",
      "symbol": "KN",
      "chain": "KOVAN",
      "transferable": true
    }
  }
}

Query.addressInfo

Get information about user. Returns Address.

 
Did this answer your question?
😞
😐
🤩