> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockrush.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tip Transaction

> How to tip a transaction.

Using our SWQoS, you can use default priority fees (no need to set them specifically), using tips as the priority option. When constructing transactions, you need to add a tip transfer instruction to the transaction to speed up inclusion in blocks.

The base64-encoded tx data generated by the example code can be directly called through SDK methods, for example passed to `send_transaction`.

```javascript theme={null}
const ixs = {your instructions ixs};
const keypair = {your_actual_keypair};
const TIP_AMOUNT = 1_000_000; // 0.001 SOL;
const BLOCKRUSH_TIP = new PublicKey("AhMVT9KWLGjBbzvdqQkTt4vHwpawnGNoGSqaqXYftNDR");

// Append Tip payment instruction
ixs.push(
    SystemProgram.transfer({
        fromPubkey: keypair.publicKey,
        toPubkey: BLOCKRUSH_TIP,
        lamports: TIP_AMOUNT,
    }),
);

// Compile and sign transaction instructions
const messageV0 = new TransactionMessage({
    payerKey: keypair.publicKey,
    recentBlockhash: latestBlockhash.blockhash,
    instructions: ixs,
}).compileToV0Message();
const transaction = new VersionedTransaction(messageV0);
transaction.sign([keypair]);

// Get Base64 encoded string of fully signed transaction
const transactionRaw = Buffer.from(transaction.serialize()).toString('base64');
```
