Run a GraphQL query
curl --request POST \
--url https://api.windrose.market/graphql \
--header 'Content-Type: application/json' \
--data '
{
"query": "query Launches($limit: Int) {\n launchs(orderBy: \"createdAt\", orderDirection: \"desc\", limit: $limit) {\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\n pageInfo { hasNextPage endCursor }\n }\n}\n",
"variables": {
"limit": 2
}
}
'import requests
url = "https://api.windrose.market/graphql"
payload = {
"query": "query Launches($limit: Int) {
launchs(orderBy: \"createdAt\", orderDirection: \"desc\", limit: $limit) {
items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }
pageInfo { hasNextPage endCursor }
}
}
",
"variables": { "limit": 2 }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'query Launches($limit: Int) {\n launchs(orderBy: "createdAt", orderDirection: "desc", limit: $limit) {\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\n pageInfo { hasNextPage endCursor }\n }\n}\n',
variables: {limit: 2}
})
};
fetch('https://api.windrose.market/graphql', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.windrose.market/graphql",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'query Launches($limit: Int) {
launchs(orderBy: "createdAt", orderDirection: "desc", limit: $limit) {
items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }
pageInfo { hasNextPage endCursor }
}
}
',
'variables' => [
'limit' => 2
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.windrose.market/graphql"
payload := strings.NewReader("{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.windrose.market/graphql")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.windrose.market/graphql")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"launchs": {
"items": [
{
"token": "0x9c1f0a4a5d1c6b0d2b4b0f9d6a5e4c3b2a190807",
"symbol": "CHAI",
"currency": "INR",
"lastPriceQuote": "16000000000000",
"lastPriceUsd": "192192192192",
"volumeQuote": "412000000000000000000000",
"holderCount": 37,
"graduated": false
},
{
"token": "0x5b7d9e2f3c4a1b0e8d7c6f5a4b3c2d1e0f9a8b7c",
"symbol": "CAFE",
"currency": "USD",
"lastPriceQuote": "8000000000000",
"lastPriceUsd": "8000000000000",
"volumeQuote": "1250000000000000000000",
"holderCount": 12,
"graduated": false
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "eyJjcmVhdGVkQXQiOiIxNzg5Njk1MTAwIn0="
}
}
}
}{
"errors": [
{
"message": "Invalid limit. Got 5000, expected <=1000."
}
]
}GraphQL
Run a GraphQL query
Executes one GraphQL operation against the indexer of the selected chain. Every table has a singular query by
primary key and a plural query with where, orderBy, orderDirection, limit (max 1000) and after /
before cursors. Note the plural names launchs and currencys. Bigint columns are returned as decimal
strings, hex columns lowercase. Opening this path in a browser (GET) loads GraphiQL.
POST
/
graphql
Run a GraphQL query
curl --request POST \
--url https://api.windrose.market/graphql \
--header 'Content-Type: application/json' \
--data '
{
"query": "query Launches($limit: Int) {\n launchs(orderBy: \"createdAt\", orderDirection: \"desc\", limit: $limit) {\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\n pageInfo { hasNextPage endCursor }\n }\n}\n",
"variables": {
"limit": 2
}
}
'import requests
url = "https://api.windrose.market/graphql"
payload = {
"query": "query Launches($limit: Int) {
launchs(orderBy: \"createdAt\", orderDirection: \"desc\", limit: $limit) {
items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }
pageInfo { hasNextPage endCursor }
}
}
",
"variables": { "limit": 2 }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'query Launches($limit: Int) {\n launchs(orderBy: "createdAt", orderDirection: "desc", limit: $limit) {\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\n pageInfo { hasNextPage endCursor }\n }\n}\n',
variables: {limit: 2}
})
};
fetch('https://api.windrose.market/graphql', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.windrose.market/graphql",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'query Launches($limit: Int) {
launchs(orderBy: "createdAt", orderDirection: "desc", limit: $limit) {
items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }
pageInfo { hasNextPage endCursor }
}
}
',
'variables' => [
'limit' => 2
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.windrose.market/graphql"
payload := strings.NewReader("{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.windrose.market/graphql")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.windrose.market/graphql")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"query Launches($limit: Int) {\\n launchs(orderBy: \\\"createdAt\\\", orderDirection: \\\"desc\\\", limit: $limit) {\\n items { token symbol currency lastPriceQuote lastPriceUsd volumeQuote holderCount graduated }\\n pageInfo { hasNextPage endCursor }\\n }\\n}\\n\",\n \"variables\": {\n \"limit\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"launchs": {
"items": [
{
"token": "0x9c1f0a4a5d1c6b0d2b4b0f9d6a5e4c3b2a190807",
"symbol": "CHAI",
"currency": "INR",
"lastPriceQuote": "16000000000000",
"lastPriceUsd": "192192192192",
"volumeQuote": "412000000000000000000000",
"holderCount": 37,
"graduated": false
},
{
"token": "0x5b7d9e2f3c4a1b0e8d7c6f5a4b3c2d1e0f9a8b7c",
"symbol": "CAFE",
"currency": "USD",
"lastPriceQuote": "8000000000000",
"lastPriceUsd": "8000000000000",
"volumeQuote": "1250000000000000000000",
"holderCount": 12,
"graduated": false
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "eyJjcmVhdGVkQXQiOiIxNzg5Njk1MTAwIn0="
}
}
}
}{
"errors": [
{
"message": "Invalid limit. Got 5000, expected <=1000."
}
]
}Body
application/json