/connex-graphql

A GraphQL implementation based on Ethereum and uses Connex

Primary LanguageTypeScriptMIT LicenseMIT

connex-graphql

thor connex graphql

Install

npm i

Run

npm start Open graphiql in http://localhost:3000

Environment variables

THOR_URL: Thor node

Sample

{
  contractFilter(
    abiSignatures: [
      "event LogSomething(bytes32 indexed id,address indexed user)",
      "event LogOther(bytes32 indexed id,address indexed user, address indexed payer)"
    ]
    address: "0xe24dBBEd860aD4b71cf69ED9c0AcEeeDcA99f935", 
    filter: {
      indexed: [{
        user: "0xf02e4e64f9f7fe6e461f136d248baab3c1f2a11d"
      }], 
      order: "desc", 
      limit: 200,
    range: {
      from: "06/01/2019"
    	to: "07/30/2019"
    },
    }) {
    meta{
      txID
    }
    txDate
    logName
    timestamp
    address
    decoded
  }
}