pub async fn mark_sponsored_gas_estimation<N: Network, P: Provider<N>>(
provider: &P,
request: &mut N::TransactionRequest,
)where
N::TransactionRequest: FoundryTransactionBuilder<N>,Expand description
Marks request, the gas estimation request of a transaction a fee payer will sponsor, as
sponsored.
From T14 a fee payer signature costs one cold account access: the fee payer’s account is read
to check that its root key is not retired. The sponsor signs after estimation, because its
signature commits to the gas limit, so the request carries [FEE_PAYER_SIGNATURE_MARKER] in its
place, for which a Tempo node adds that access to the estimate. Before T14 nodes do not handle
the marker, so the request is left unchanged there and when the hardfork is unknown.