@jet-lab/jet-engine
v0.3.8
Published
Library for interacting with the Jet on-chain programs
Downloads
61
Readme
Install
Add the package as a dependency to your project:
$ npm i @jet-lab/jet-engine
...or with yarn
$ yarn add @jet-lab/jet-engine
Usage
View the typedocs for the full package documentation and available API.
Instantiate the Client
import { JetClient } from '@jet-lab/jet-engine'
import { Provider, Wallet } from '@project-serum/anchor'
import { clusterApiUrl, Connection, Keypair } from '@solana/web3.js'
const provider = new Provider(new Connection(clusterApiUrl('devnet')), new Wallet(Keypair.generate()), {})
const client = await JetClient.connect(provider, true)