Instruction errors (runtime)

ReadonlyLamportChange

Appears as instruction changed the balance of a read-only account

Instruction

ReadonlyLamportChange

“instruction changed the balance of a read-only account”

The lamport balance of an account passed as read-only was changed.

Common causes

  • Marking an account non-writable in the transaction while the program transfers lamports to or from it.

How to fix it

  • Mark the account writable in the instruction's account metas.

Decode another error

Try: