Giter Site home page Giter Site logo

satran004 / aion-graphql Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 30.8 MB

A GraphQL Server for AION Blockchain.

Home Page: https://satran004.github.io/aion-graphql-docs/

License: GNU General Public License v3.0

C 51.47% Java 43.75% C++ 0.35% HTML 2.48% Groovy 1.83% Solidity 0.13%
graphql aionnetwork blockchain

aion-graphql's People

Contributors

satran004 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aion-graphql's Issues

sendRawTranaction is throwing exception.

org.satran.blockchain.graphql.exception.BlockChainAcessException: Function exception!
at org.satran.blockchain.graphql.impl.aion.service.TxnServiceImpl.lambda$sendRawTransaction$15(TxnServiceImpl.java:486)
at org.satran.blockchain.graphql.impl.aion.service.dao.AionBlockchainAccessor.call(AionBlockchainAccessor.java:34)
at org.satran.blockchain.graphql.impl.aion.service.TxnServiceImpl.sendRawTransaction(TxnServiceImpl.java:481)
at org.satran.blockchain.graphql.resolvers.TxnMutator.sendRawTransaction(TxnMutator.java:49)
at org.satran

Secure connection to Aion Kernel 0.3.2 is not working

In Aion Kernel 0.3.2, secure connection is enabled by default. The current released version of Aion Graphql (0.4.0) is not able to connect to Aion kernel 0.3.2 when secure connection is true.

Workaround:

  1. Disable secure connection for Java Rpc port in Aion kernel.
 <java active="true" ip="0.0.0.0" port="8547"> 
        <secure-connect>**false**</secure-connect>
 </java> 
  1. In Aion GraphQL installation folder, edit config/apiconfig.xml to disable secure connection in client.
<secure-connect>false</secure-connect>

Note: apiconfig.xml is automatically generated after the first run of aion-graphql server.

Provide api to return transaction payload for contract deploy and method calls

Currently, the contract call apis support transaction signing only in server side through default account in the kernel node. This enhancement plans to return the transaction payload which can be signed independently in the client side.

  • Provide api to return transaction payload for contract deploy from both contract source and compiled code. The encoding will be done through Abi encoder.
  • Provide api to return transaction payload for contract method call with the encoded constructor arguments.
  • The return transaction object can then be signed in client side code and sent to server for processing through txApi's sendTransaction() / call()

Usage with different AION releases

Hey Satya, this project is interesting and very useful. Would it be possible to create a Gitter channel to discuss the project. Myself and @arjitkhullar will be exploring this for future projects. Is this library built to work with any AION version or is this a specific version?

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.