1

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 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.