@solace-fi/sdk-nightly
TypeScript icon, indicating that this package has built-in type declarations

0.5.67 • Public • Published

Note - Unstable nightly build, documentation not up-to-date for nightly build

The Solace SDK exists to make it easy for developers to integrate Solace into external protocols and custom scripts. It is designed to run in Javascript environments (browsers, frontend, Node.js).

This SDK is in alpha testing and may contain bugs or change significantly between patch versions. If you have questions about how to use the SDK, please reach out in the Discord. Pull requests welcome!

Install npm package

npm i @solace-fi/sdk-nightly

Testing

yarn test

Basic Usage

Get active cover limit of Solace Cover Product on Ethereum mainnet

import { Coverage } from "@solace-fi/sdk-nightly"

// Create new Fetcher instance (contains blockchain read-only methods), connected to Ethereum mainnet (chainID = 1)
const coverage = new Coverage(1)

// Makes read-only call to SolaceCoverProduct.sol smart contract
const activeCoverLimit = await coverage.activeCoverLimit()

Documentation

https://docs.solace.fi/docs/dev-docs/sdk/getting-started

Readme

Keywords

Package Sidebar

Install

npm i @solace-fi/sdk-nightly

Weekly Downloads

7

Version

0.5.67

License

MIT

Unpacked Size

3.04 MB

Total Files

52

Last publish

Collaborators

  • kmacbeth
  • dafung1
  • kyzooghost