jito-bundle-tip-v2
v1.4.2
Published
A TypeScript library for creating Jito bundle tip transactions on Solana blockchain
Maintainers
Readme
Jito Tip Service 🚀
A TypeScript library for creating Jito bundle tip transactions on the Solana blockchain. This package provides a simple interface to generate tip transactions for Jito bundle services.
Installation 📦
npm install jito-bundle-tip-v2Usage 💡
Basic Usage
import { createTipTransaction } from 'jito-bundle-tip-v2';
import { Connection, Keypair } from '@solana/web3.js';
// Initialize connection and wallet
const connection = new Connection('https://api.mainnet-beta.solana.com');
const wallet = Keypair.generate(); // Replace with your actual wallet
// Create a tip transaction
const tipTransaction = await createTipTransaction(connection, wallet);
console.log('Tip transaction:', tipTransaction);Custom Fee
import { createTipTransaction } from 'jito-bundle-tip-v2';
// Create a tip transaction with custom fee (in SOL)
const customFee = 0.00005; // 0.00005 SOL
const tipTransaction = await createTipTransaction(connection, wallet, customFee);API Reference 📚
createTipTransaction(connection, wallet, fee?)
Creates a Jito bundle tip transaction.
Parameters:
connection(Connection): Solana connection instancewallet(Keypair): The wallet keypair to use for the transactionfee(number, optional): Tip amount in SOL (default: 0.00001 SOL)
Returns:
Promise<string>: Base58 encoded serialized transaction
Constants
defaultFee: Default tip amount (0.00001 SOL)jito_tipaccounts: Array of Jito tip account public keys
Features ✨
- 🔧 TypeScript support with full type definitions
- 🚀 Easy-to-use API for creating tip transactions
- 💰 Configurable tip amounts
- 🔐 Automatic wallet whitelist management
- 📦 Zero dependencies on external services
Requirements 📋
- Node.js >= 16.0.0
- Solana web3.js library
- Upstash Redis (for whitelist management)
License 📄
MIT License - see LICENSE file for details.
Contributing 🤝
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support 💬
If you encounter any issues or have questions, please open an issue on GitHub.
Made with ❤️ for the Solana community
