zkSync Era was rolled out for a while, currently seems we only have zkSync Lite transaction fee adapter, add adapter for zkSync Era is necessary.
The adapter is using rpc method “zks-estimatefee” to check transaction fee.
And based on documentation “
https://era.zksync.io/docs/dev/developer-guides/transactions/fee-model.html#refunds”, the fee normally is over estimated, it will refund the sender, the actual fee will be less than estimation, so add a method to estimate the real cost considering refund(normally there will be more than 40% refund)
The adapter: zkSync Era Transaction Fees Adapter - CryptoStats
Could someone help to put it in l2-fee collection?