@authereum/graphql

> Authereum GraphQL API client library

Usage no npm install needed!

<script type="module">
  import authereumGraphql from 'https://cdn.skypack.dev/@authereum/graphql';
</script>

README

@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

License

MIT