Giter VIP home page Giter VIP logo

aion-graphql's Introduction

GraphQL interface for Aion Blockchain

Aion Mainnet GraphQL Playground: https://api.aion-graphql.com/playground.html

Aion Mainnet GraphQL Endpoint: https://api.aion-graphql.com/graphql (To be used from application)

Manual

API Doc: Aion GraphQL API

This project provides GraphQL REST endpoint to query Aion blockchain. It is using AION java api to communicate with Aion blockchain.

Tested on:

  • Ubuntu 16.04 LTS, MacOS
  • Java 10.x

The following apis are currently supported :

  • blockApi
  • txnApi
  • accountApi
  • adminApi
  • chainApi
  • netApi
  • walletApi
  • contractApi

For detail information, please visit this API page

The project will be enhanced to support other read and write operations.

1. Setup from Binary

Download the latest release binary from GitHub repo.

$> unzip aion-graphql-dist-[version].zip

or

$> tar xvf aion-graphql-dist-[version].tar

Go to the extracted folder aion-graphql-dist-[version]

Update Config

Edit config/application.yml to provide aion kernel rpc host and port

example: tcp://x.x.x.x:8547

Start GraphQL server

From aion-graphql-dist-[version] folder, execute the following command to start the server.

$> bin/aion-graphql

on Windows :

bin\aion-graphql.bat

Note: Make sure you start the server inside aion-graphql-dist-[version] folder only. Starting server inside bin folder will not work.

2. Build from Source

git clone https://github.com/satran004/aion-graphql.git

$> ./gradlew clean build -x integrationTest

To run

$> rpc_endpoint=tcp://[kernel-host]:8547 ./gradlew bootRun

If you want to test GraphQL API on the browser, try the following url

http://[host]:[port]/playground.html

After running the above command, GraphQL endpoint can be accessed through the following url from your application :

http://[host]:[port]/graphql

aion-graphql's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.