DonGambas / jet-engine

TypeScript/JavaScript client for interacting with Jet Protocol's on-chain programs. ✈️

Home Page:https://jet-lab.github.io/jet-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@jet-lab/jet-engine

Version Docs Discord License

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)

Examples

Fetching a position

About

TypeScript/JavaScript client for interacting with Jet Protocol's on-chain programs. ✈️

https://jet-lab.github.io/jet-engine/

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%Language:Shell 0.0%