0.2.1 • Published 2 years ago

@chain-runners/api-client v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@chain-runners/api-client

This package uses graphql-code-generator to generate a typed API client for the Chain Runners GraphQL API at https://api.chainrunners.xyz/graphql. The client generated is a graphql-request Client that makes the GraphQL requests using the generated functions.

Usage

import { getChainRunnersAPIClient } from "@chain-runners/api-client"

async function main(): Promise<void> {
  const client = getChainRunnersAPIClient()
  const response = await client.getRunnerById({ id: "780" })
  console.log(response.token?.dnaHexString)
}

main()

Functions

Will expand this documentation over time, for now either utilize intellisense in your editor or check out the types in src/generated.ts starting on line 410 to see what functions are available.

0.2.1

2 years ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago