Skip to content

Instantly share code, notes, and snippets.

View chukwukap's full-sized avatar

chukwuka uba chukwukap

View GitHub Profile
@chukwukap
chukwukap / jito-jsonrpc-snippets.ts
Created April 30, 2026 16:14
Degxifi — Jito JSON-RPC UUID auth + bundle submission
// Degxifi — Jito JSON-RPC UUID auth + bundle submission
// Stack: jito-js-rpc@0.2.2 on Bun + TypeScript
// Project: automated DLMM LP on Solana (Meteora). Each user action = a 4-5 TX bundle.
// ============================================================================
// 1) JSON-RPC UUID AUTHENTICATION SETUP
// ============================================================================
//
// `JitoJsonRpcClient(baseUrl, uuid?)` from `jito-js-rpc` automatically attaches
// the UUID as both `x-jito-auth: <uuid>` header AND `?uuid=<uuid>` query param
@chukwukap
chukwukap / jito-grpc-snippets.ts
Created April 30, 2026 12:30
Degxifi — Jito gRPC integration (auth + bundle submission)
// Degxifi — Jito gRPC integration snippets (jito-ts@4.2.1, Bun + TS)
// Project: automated DLMM LP on Solana (Meteora). Each user action = 4–5 TX bundle.
// ============================================================================
// 1) gRPC AUTHENTICATION SETUP
// ============================================================================
//
// One persistent SearcherClient per region (9 mainnet regions). Auth uses
// JWT challenge-response signed by a dedicated keypair (no funds, never
// used elsewhere). Channel keepalive tuned for long-lived idle connections.