Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions examples/jito-bundles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## Jito Bundles with Kora

This sample code will help you get started with Jito Bundles with Kora.

## Full Demo

A full demo of Kora is available [here](https://launch.solana.com/docs/kora/guides/jito-demo).

## Sample Output

```bash
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
KORA JITO BUNDLE DEMO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[1/5] Initializing clients
→ Kora RPC: http://localhost:8080/
→ Solana RPC: https://api.mainnet-beta.solana.com

[2/5] Setting up keypairs
→ Sender: BYJVBqQ2xV9GECc84FeoPQy2DpgoonZQFQu97MMWTbBc
→ Kora signer address: 3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE

[3/5] Creating bundle transactions
→ Blockhash: 7HZUaMqV...
→ Tip account: 96gYZGLn...
→ Transaction 1: Kora Memo "Bundle tx #1"
→ Transaction 2: Kora Memo "Bundle tx #2"
→ Transaction 3: Kora Memo "Bundle tx #3"
→ Transaction 4: Kora Memo "Bundle tx #4" + Jito tip
✓ 4 transactions created for bundle

[4/5] Signing bundle with Kora
✓ All transactions signed by user
✓ Bundle co-signed by Kora
→ 4 transactions signed

[5/5] Submitting bundle to Jito
✓ Bundle submitted to Jito block engine
→ Bundle UUID: 8f4a3b2c-1d5e-6f7a-8b9c-0d1e2f3a4b5c
⏳ Polling bundle status...
✓ Bundle landed (simulated for demo)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SUCCESS: Bundle confirmed on Solana
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Bundle UUID:
8f4a3b2c-1d5e-6f7a-8b9c-0d1e2f3a4b5c
```
25 changes: 25 additions & 0 deletions examples/jito-bundles/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "client",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "tsx src/index.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.14.0",
"dependencies": {
"@solana-program/memo": "^0.10.0",
"@solana-program/system": "^0.10.0",
"@solana/kit": "^5.3.0",
"@solana/kora": "0.2.0-beta.1"
},
"devDependencies": {
"@types/node": "^25.0.3",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
}
}
Loading