Socket
Book a DemoInstallSign in
Socket

@avalabs/glacier-sdk

Package Overview
Dependencies
Maintainers
3
Versions
740
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalabs/glacier-sdk

sdk for interacting with glacier-api

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1.9K
101.48%
Maintainers
3
Weekly downloads
 
Created
Source

glacier-sdk

This package contains typescript api generated from the openAPI file from glacier.

To generate a new version based on the latest changes from glacier dev run:

$ yarn codegen
const glacierApi = new V1("https://glacier-api.avax.network/")

const resp = glacierApi.getNativeBalance(")

Debugging Build Issues After Code Generation

After running the codegen script, you may encounter build errors that look like this:

image

This is caused by changes to the Glacier API schema, and the GlacierClient class in src/glacierClient.ts that wraps auto-generated code from the API schema as this code is not updated automatically during code generation.

Please see PR #371 for an example of the type of update that must be made in order resolve the above error, in particular this commit.

FAQs

Package last updated on 01 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.