jito-labs / jito-ts

Jito Typescript SDK
Other
91 stars 50 forks source link

jito-ts

Welcome to the Jito Typescript SDK repository! Use this to interact with the block-engine, relayer and future Jito APIs.

Setup

Use with yarn 1.22+ and Node 20.

yarn

Building Protos

The generated proto files have been committed for convenience, but if there's ever a change you'll need to re-generate. Steps to regenerate:

Geyser

Please request access to geyser by emailing support@jito.wtf

Note: Mac users may run into an error to the effect of "protoc-gen-js: program not found or is not executable"; if this is thrown, run:

Usage

export RPC_URL="https://MY_RPC_URL"
export BLOCK_ENGINE_URL=mainnet.block-engine.jito.wtf
export AUTH_KEYPAIR_PATH=MY_AUTH_KEYPAIR.json
export BUNDLE_TRANSACTION_LIMIT=5

yarn run:simple_bundle

See other commands in package.json