@authereum/graphql
Authereum GraphQL API client library
Getting started
import * as graphql from '@authereum/graphql'
;(async () => {
const available = await graphql.ensNameAvailable({
ensName: 'foobar'
})
console.log(available) // true
})()
Setting a different GraphQL endpoint:
import * as graphql from '@authereum/graphql'
graphql.setApiUrl('http://localhost:4000/graphql')
Development
Install dependencies:
npm install
Watch and build:
npm run dev
Build:
npm run build
Lint:
npm run lint
Test
npm test