Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
sdk-api / 0.1.3

sdk-api 0.1.3

Install from the command line:
Learn more about npm packages
$ npm install @tzkt/sdk-api@0.1.3
Install via package.json:
"@tzkt/sdk-api": "0.1.3"

About this version

TzKt API SDK written in Typescript

Not written, but rather generated using @tzkt/oazapfts.

Install

npm i @tzkt/sdk-api

Use

import { operationsGetDoubleBaking } from '@tzkt/sdk-api'

await operationsGetDoubleBaking(
  {
    quote: 'Btc',
    accuser: {
      in: ['tz3VEZ4k6a4Wx42iyev6i2aVAptTRLEAivNN']
    }
  },
  {
    baseUrl: 'https://api.tzkt.io'
  }
)

With node.js or a custom fetch library

Please refer to the documentation of the original codegen library.

Update & publish

This package is managed by Lerna. All publishing and dep management should be done using it. Only regeneration of APIs is kept local (for now).

Inside this package

  • Get the latest swagger file
  • Use it to re-generate APIs
  • Fix linting and prettify
npm run sync-swagger
npm run generate
npm run fix

Building and publishing

You may build this package for local testing with simple npm run build. For publishing and deploying to production all builds should be done via Lerna.

After you've committed your changes and ready to publish, please follow Build and publish instructions in the root of this repository.

Details


Assets

  • sdk-api-0.1.3-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all