So I am sending multiple transactions i can add the priority fee in the first one but when I try to add it in the second one it says the transaction length exceeds.
1 Answer
Short answer is you can't, Solana has a max tx size of 1232 bytes and if your tx is larger than that it won't be processed.
Fortunately, there a few things you can do to still get your instructions through:
- Save space on accounts using LUTs
- Try serialize your data differently to use less bytes
- If nothing else works, split your transaction instructions over two transactions and use a Jito bundle to still get those two executed atomically.