Unofficial API Documentation for the Axie Infinity's GraphQL Endpoint.

Overview

Axie GraphQL Documentation

API Documentation for the Axie Infinity GraphQL Endpoint.

Customization Guide

This site is usings rocketseat. You may refer to this guide.

Rebuild Locally

Install dependencies.

npm install

Start development server.

gatsby develop

Test production build.

gatsby clean && gatsby build && gatsby serve
Comments
  • Get MMR of a player

    Get MMR of a player

    How to obtain the MMR by using the player's ronin address (or anything else)? Some sites like already fetch leaderboard data, like https://axie.zone/leaderboard

    opened by stdevCrow 7
  • GetRecentlySold params seem to have no effect?

    GetRecentlySold params seem to have no effect?

    Hey was playing around with this end point to see if I could get more results of recently sold axies to look/search through but I noticed no matter how much I changed the parameters I could only get back 20 at a time and the "from" parameter I thought was a pointer for pagination but seem to have no effect at all

        iterator = 0
        axies_list = []
        while iterator < 100:
            print(iterator)
            body = {
            "operationName": "GetRecentlyAxiesSold",
            "variables": {
            "from": iterator,
            "size": 100
            },
            "query": "query GetRecentlyAxiesSold($from: Int, $size: Int) {\n  settledAuctions {\n    axies(from: $from, size: $size) {\n      total\n      results {\n        ...AxieSettledBrief\n        transferHistory {\n          ...TransferHistoryInSettledAuction\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment AxieSettledBrief on Axie {\n  id\n  name\n  image\n  class\n  breedCount\n  __typename\n}\n\nfragment TransferHistoryInSettledAuction on TransferRecords {\n  total\n  results {\n    ...TransferRecordInSettledAuction\n    __typename\n  }\n  __typename\n}\n\nfragment TransferRecordInSettledAuction on TransferRecord {\n  from\n  to\n  txHash\n  timestamp\n  withPrice\n  withPriceUsd\n  fromProfile {\n    name\n    __typename\n  }\n  toProfile {\n    name\n    __typename\n  }\n  __typename\n}\n"
            }
            r = requests.post('https://axieinfinity.com/graphql-server-v2/graphql', data=body)
            iterator += 20
            axies_list.extend(r.json()['data']['settledAuctions']['axies']['results'])
        count = {}
        for axie in axies_list:
            if axie['id'] in count:
                count[axie['id']] = count[axie['id']] + 1
            else: 
                count[axie['id']] = 1
        return count
    

    Attached the results and as you can see despite iterating it just gets the same 20 back. Am I missing something or do they seem to be disabled? Screen Shot 2021-07-21 at 3 00 12 PM

    opened by JClutch 3
  • Authentication

    Authentication

    Hey man, I wanted to ask you if you know how to currently generate a valid JWT token for authenticated requests. I found a couple interesting endpoints, but I can only get my info using my own JWT token from the client.

    Any idea how to implement other users' log in so that I can authenticate their requests? Or is that totally unsafe?

    opened by lopermo 3
  • GetAxieDetail Query

    GetAxieDetail Query

    Hello! I would like to check for the getting the price of an axie, i noticed there are two values, one is currentPrice and the other one is currentPriceUSD. I assumed the currentPrice was supposed to be current price of axie in ETH but the numbers are huge, for example if axie is 0.091 then its showing me currentPrice = 91000000000000000.

    Basically what i want to ask is what is this currentPrice referring to? and is it possible to get currentPrice in ETH

    opened by njh18 2
  • Minimal queries

    Minimal queries

    I'm trying to write a C++ program to query the Axie server, and I don't know GraphQL. All the attempted queries I've sent result in "Bad Request". Could you post a minimal query for each operation? For instance, for GetAxieDetail, you could ask for only the back of one specific Axie.

    Also is the \n in the queries supposed to be sent as \n or as a linefeed?

    opened by phma 2
  • Get list of all abilities

    Get list of all abilities

    Is there a way to get a list of all possible abilities?

    With GetAxieDetail you can get the parts abilities for a specific axie, but I would like to get all possible abilities.

    opened by mattqs 2
  • GetAxieBriefList Operation

    GetAxieBriefList Operation

    I was trying to filter axies using this operation, however, the size is limited to 100 even after i tried to input a size more than 100, is there any way to query a larger size?

    opened by njh18 2
  • POST request also possible or not ?

    POST request also possible or not ?

    Hi, Sorry that's not an issue on the code itself but I can't find a way to contact you.

    Is there a way to also POST on this API ?

    For example claiming SLP or morphing ?

    (nothing forbidden by the ToS of course, just simple stuff like that)

    opened by Joyen12 2
  • Question: Was looking for a way to query recent sales by some form of criteria

    Question: Was looking for a way to query recent sales by some form of criteria

    Hey, really enjoying the documentation!

    Was wondering if you knew of a way to search for recently sold axies by criteria?

    i.e. I'd like to get an idea of what axies are actually selling for that have Christmas Parts or 0 breed aquas. From what I can tell the recently sold search query doesn't appear to take criteria. One work around is to just call for latest sold and filter out based on criteria on my end BUT I don't know what the size limit is or call volume limit is so would like to try and use something more built in if it's available.

    Thank you!

    opened by JClutch 2
  • Issue with GetRecentlyAxiesSold not working correctly.

    Issue with GetRecentlyAxiesSold not working correctly.

    Sending a get/post request to the "GetRecentlyAxiesSold" operation always SAYS that it's returning 100 results but only ACTUALLY returns 20 results always starting from 0 no matter what the "size" and "from" variables are set to.

    I wrote a test in python that I simplified to 43 lines to test if the API behaves as I expected it to from reading the documentation. I could be misunderstanding the documentation but if that is the case; then I have no idea what the "from" and "size" variables are supposed to do.

    Here are my tests. Please let me know if I am misunderstanding something about how the API is supposed to work and this isn't an actual issue.

    import requests
    import json
    
    
    def getRequest( frm=0, size=20 ):
        url = 'https://graphql-gateway.axieinfinity.com/graphql'
        return requests.get( url, params = {
          "operationName": "GetRecentlyAxiesSold",
          "variables": {
            "from": frm,
            "size": size
          },
          "query": '''
            query GetRecentlyAxiesSold($from: Int, $size: Int) {
                settledAuctions {
                    axies(from: $from, size: $size) {
                        total
                        results {
                            ...AxieSettledBrief
                        }
                    }
                }
            }
            
            fragment AxieSettledBrief on Axie {
                id
            }'''})
    
    x, y = [ getRequest(frm = 40, size = 5), getRequest(frm = 0, size = 5) ]
        
    json_data_x = json.loads(x.text)["data"]["settledAuctions"]["axies"]
    json_data_y = json.loads(y.text)["data"]["settledAuctions"]["axies"]
        
    total = int(json_data_x["total"])
    results_x, results_y = [ json_data_x["results"], json_data_y["results"] ]
    
    #Size Test
    assert ( total == 5 )
    assert ( len(results_x) <= 5 )
    
    #From Test
    id_x, id_y = [ results_x[0]['id'], results_y[0]['id'] ]
    assert ( id_x != id_y )
    
    opened by deeredman1991 1
  • GetAxieBriefList does not show auction information

    GetAxieBriefList does not show auction information

    Hi there

    thanks for your providing this document. do you know why GetAxieBriefList does show auction information ? by using GetAxieDetail I could see it is on auction but brief list shows 'None'

    opened by shobiiiii 1
  • Number of returns

    Number of returns

    Hello, when I use the GetAxieBriefList query, it is said that there are 647729 in total, but I when I set "from" larger than 10000, it just returned nothing. So I can only fetch thousands of data? What is the maximum number of data lists that I can get?

    opened by BANALW 0
  • Pagination issue

    Pagination issue

    Hi, using the following query/body on postman I can fetch 100 axies ordered by id starting from the n'th, this seems to work perfectly for smaller values, and "total" shows over 10 million items, but for some reason after the 10k mark I start seeing an empty result, is this a bug or am I missing something ?

    method: POST query: https://graphql-gateway.axieinfinity.com/graphql body (raw, json): { "operationName": "GetAxieBriefList", "variables": { "from": n, "size": 100, "sort": "IdAsc", "auctionType": "All" }, "query": "query GetAxieBriefList($auctionType: AuctionType, $criteria: AxieSearchCriteria, $from: Int, $sort: SortBy, $size: Int, $owner: String) {\n axies(auctionType: $auctionType, criteria: $criteria, from: $from, sort: $sort, size: $size, owner: $owner) {\n total\n results {\n ...AxieBrief\n }\n }\n}\n\nfragment AxieBrief on Axie {\n id\n name \n}\n" }

    result for n === 10000: { "data": { "axies": { "total": 0, "results": [] } } }

    opened by danielObon 7
Owner
Shane Maglangit
Booting up ⚡
Shane Maglangit
curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.

graphqurl graphqurl is a curl like CLI for GraphQL. It's features include: CLI for making GraphQL queries. It also provisions queries with autocomplet

Hasura 3.2k Jan 3, 2023
GraphQL Fastify Server is an implementation of GraphQL.

GraphQL Fastify Server Installation Usage Using cache Middlewares Liveness & Readiness Contributing License Installation npm install --save graphql-fa

Rui Silva 33 Dec 19, 2022
Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database!

PostGraphile Instant lightning-fast GraphQL API backed primarily by your PostgreSQL database. Highly customisable and extensible thanks to incredibly

Graphile 11.7k Jan 4, 2023
GraphQL API Playground with cascade-like operations

modif ( ?? ?? ?? ) modif is a small GraphQL API with transform capabilities. It takes a string input and outputs a string. Always. TL;DR Go play with

Pedro Palhari 6 Jan 4, 2022
Starter template for NestJS 😻 includes GraphQL with Prisma Client, Passport-JWT authentication, Swagger Api and Docker

Instructions Starter template for ?? NestJS and Prisma. Checkout NestJS Prisma Schematics to automatically add Prisma support to your Nest application

notiz.dev 1.6k Jan 4, 2023
around nestjs, with prisma and some graphql lib,write less code,create power api

介绍 这是一个 prisma + nestjs + graphql 的集成示例 对于开发者来说,特别是使用 graphql 的时候,只需要写非常少量的代码即可完成数据的各种操作,同时也支持接口透传。 开发&部署 本地开发 npm run start:dev swagger 地址:http://loc

芋头 26 Nov 24, 2022
A GraphQL wrapper of the DeSo API.

DeSo GraphQL A DeSo GraphQL wrapper sitting on top of the DeSo HTTP API. What is DeSo (Decentralized Social) DeSo is a new type of blockchain designed

WAGMI Labs 11 Nov 20, 2022
📖 Contenerised documentation generator from in-code comments for CLIPS (inspired by JavaDoc)

clips-doc Installation Download the clips-doc.docker.tar Docker image. You will need docker to proceed. docker load --input clips-doc.docker.tar Image

Konrad Szychowiak 2 Apr 18, 2022
🔗 Automations for continuous up-to-date documentation

Mintlify Connect A GitHub App built with Probot that Mintlify Connect Setup # Install dependencies npm install # Run the bot npm start Docker # 1. Bu

Mintlify 129 Nov 19, 2022
Conjure SQL from GraphQL queries 🧙🔮✨

Sqlmancer Conjure SQL from your GraphQL queries ?? ?? ✨ ⚠️ This project is currently on hiatus. I am hoping to resume working on Sqlmancer once I have

Daniel Rearden 132 Oct 30, 2022
Application made to show the basic concepts of GraphQL with Apollo Server

graphql-insta-example Application made to show the basic concepts of GraphQL with Apollo Server. Getting Started Run npm install Run npm run dev Go to

Ana Julia Bittencourt 26 Aug 26, 2022
Workshop to illustrate how to use GraphQL

?? Netflix Clone using Astra DB and GraphQL 50 minutes, Intermediate, Start Building A simple ReactJS Netflix homepage clone running on Astra DB that

DataStax Developers 606 Jan 4, 2023
Learn GraphQL PIAIC CNC Class code

GraphQL using React! Steps (for 01 - react-graphql) Generate and copy Access Token from Github Personal Acess Token Create .env file in project folder

Yousuf Qutubuddin 71 Jan 2, 2023
Código desenvolvido na mentoria do Hiring Coders utilizando Express e GraphQL

hiringcoders-graphql Código desenvolvido na mentoria do Hiring Coders utilizando Express e GraphQL Contribuições A ideia do repositório é continuar si

Daniel Mitre 37 Dec 29, 2022
A lightweight way to cache on graphQL servers

cacheflowQL What is cacheflowQL? CacheflowQL is an npm package with complex caching algorithms that provide developers deep insights into their GraphQ

OSLabs Beta 53 Nov 16, 2022
A template for WebSockets powered Cloudflare Worker project using graphql-ws

?? graphql-ws on Cloudflare Workers A template for WebSockets powered Cloudflare Worker project using graphql-ws. The worker serves the following rout

Denis Badurina 26 Dec 18, 2022
A Crypto App built to pracitse GraphQL Federation

Getting Started To start this project please first create a .env file in the root of your project with the following: REACT_APP_ASTRA_TOKEN={your_astr

Ania Kubow 34 Dec 28, 2022
A GraphQL Generator for Mongo and CosmosDB

A GraphQL Function Starter Kit for Cosmos DB This is a starter kit for rapid development of a GraphQL API using the Mongo driver for Cosmos DB. You cr

Rob Conery 1 Nov 12, 2021
Very easy graphQL example made by Bobby Chao

Very easy graphQL example made by Bobby Chao. The folder has been organized, the module has been split, and it can be directly used as a development scratch. It using graphQL + node.js + express, and MySQL as datasource.

Bobby Chao 4 Sep 18, 2022