alfredolopez80 / thor-connexql

thor connex graphql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thor-connexql

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 LogSetQuestOutcome(bytes32 indexed id,address indexed user,uint256 questEntryCount)",
      "event LogPayForQuest(bytes32 indexed id,address indexed user, address indexed payer,uint256 questEntryCount)"
    ]
    address: "0xe24dBBEd860aD4b71cf69ED9c0AcEeeDcA99f934", 
    filter: {
      indexed: [{
        user: "0xf02e4e64f9f7fe6e461f136d248baab3c1f2a11e"
      }], 
      order: "desc", 
      limit: 200,
    range: {
      from: "06/01/2019"
    	to: "07/30/2019"
    },
    }) {
    meta{
      txID
    }
    txDate
    logName
    timestamp
    address
    decoded
  }
}

About

thor connex graphql

License:MIT License


Languages

Language:TypeScript 52.7%Language:JavaScript 46.2%Language:Dockerfile 1.1%