We're looking to support both sponsored and non-sponsored transactions, both work fine actually, but I can't find anywhere, for non-sponsored transactions, what should the fields safeTxGas and gasPrice be. I can pass 1 for them and I get a little amount in return, however I don't see the relation between it and the value 1 that I pass in and what ends up getting refunded. Example of a transaction using these values here(polygonscan transaction).
I read this but I don't think it explicitly tells what these fields are, and more specifically, how should the values be calculated.
I'm assuming there's a formula to calculate this but I'm not even sure what should I be looking for... Thank you in advance for any comments and suggestions.