Transaction & RPC errors

InvalidAccountForFee

Appears as This account may not be used to pay transaction fees

Transaction

InvalidAccountForFee

“This account may not be used to pay transaction fees”

The fee payer is not a system-owned account, so it cannot pay fees.

Common causes

  • Setting a PDA or token account as the fee payer.

How to fix it

  • Use a normal wallet (System Program owned) as the fee payer.

Decode another error

Try: