Skip to content

xray-network/cardano-kupo-client

Repository files navigation

Discord NPM CODEQL

TypeScript Client for Kupo blockchain indexer

Automatically generated Openapi-fetch client for Kupo based on schema.yaml OpenAPI schema.

Installation

To install the client with Yarn, run:

yarn install cardano-kupo-client

To install the client with NPM, run:

npm i cardano-kupo-client

Usage

import KupoClient from "cardano-kupo-client"

const client = KupoClient("https://graph.xray.app/output/services/kupo/mainnet/api/v1")

const app = async () => {
  const health = await client.GET("/health")

  if (health.data) {
    console.log(health.data)
  }
  if (health.error) {
    console.error(health.error)
  }
}

app()

Endpoints

API URLs

Managed by XRAY/Network (XRAY/Graph, Cloudflare WAF & Load Balancer), requires paid subscription

https://graph.xray.app/output/services/kupo/mainnet/api/v1
https://graph.xray.app/output/services/kupo/preprod/api/v1
https://graph.xray.app/output/services/kupo/preview/api/v1

About

TypeScript Client for Kupo blockchain indexer

Resources

License

MIT, MPL-2.0 licenses found

Licenses found

MIT
LICENSE
MPL-2.0
LICENSE-CARDANO-SOLUTIONS

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •