Expand description
RuntimeTransaction is runtime
facing representation of transaction, while
solana_sdk::SanitizedTransaction is client facing representation.
It has two states:
- Statically Loaded: after receiving
packet
from sigverify and deserializing it intosolana_sdk::VersionedTransaction
, then sanitizing intosolana_sdk::SanitizedVersionedTransaction
, which can be wrapped intoRuntimeTransaction
with static transaction metadata extracted. - Dynamically Loaded: after successfully loaded account addresses from onchain
ALT, RuntimeTransaction
transits into Dynamically Loaded state, with its dynamic metadata loaded.