1.0.130 • Published 5 months ago

flash-sdk-multi-pool v1.0.130

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Flash SDK

Client SDK for interacting with FLASH.TRADE's smart-contracts

Install

npm i flash-sdk / yarn add flash-sdk 

Using the SDK

connect sdk locally

` import { AnchorProvider } from "@coral-xyz/anchor";

const provider : AnchorProvider = AnchorProvider.local(clusterUrl, { commitment: "confirmed", preflightCommitment: "confirmed", skipPreflight: true }); client = new PerpetualsClient(provider, programId); `

To fetch all the pool data