Who pays the solana gas fees in the accounts array?

Hi does anyone know if there is a way to tell who payed the gas fee for a transaction from looking at the accounts array? Is it the signer? Thank you!

I’m not exactly sure you can. sorry

Hey @gigu, I think you can. After further research it seems that the first account in the accounts array is the one that pays the fee.

See here: Transactions | Solana Wiki

really? if that’s true. I’ll look through it now