I am trying to build a custom strategy for my application and I would like to know that given a transaction, is there a method (similar to estimateGas) that I can call to estimate how much the transaction will need (including transaction fees/ relayer service fees)?
Really sorry for the delay in getting back to you regarding this one. I think this should help however, I haven’t tried it yet and will confirm once I have.
I have one more question regarding integrating GSN with my smart contracts. If my recipient contract (say contract ABC is GSNRecipient) interacts with other contracts, is it already assumed that ABC contract pays gas for those calls as well?
Yes. If a contract ABC implements GSNRecipient then any relayed call that your GSN Strategy accepts, includes the gas cost of ABC calling other contracts as part of the transaction.