pub fn is_resubmitable(tx: &Transaction) -> boolExpand description
Determines if a transaction’s blockhash can be safely updated.
A blockhash can only be updated if the transaction requires a single signature (the relayer). Multi-signer transactions cannot have their blockhash updated because it would invalidate the existing signatures from other parties.
§Returns
trueif the transaction has only one required signer (relayer can update blockhash)falseif the transaction has multiple required signers (blockhash is locked)
§Use Cases
- Prepare phase: Decide whether to fetch a fresh blockhash
- Submit phase: Decide whether BlockhashNotFound error is retriable