Inclusion metadata for an execution-apis transaction object, plus the typed transaction.
from_json/1 on each envelope drops blockHash, blockNumber,
blockTimestamp, from, hash, and transactionIndex (TransactionInfo in
execution-apis v1.0.0-beta.7, src/schemas/transaction.yaml). Those fields
live here. Block fields are nil when the transaction is pending.
block_timestamp is also nil when the node omits blockTimestamp.
Alchemy mainnet sometimes does that for mined transactions (observed
2026-10-01), even though the beta.7 schema lists the field as required.
Summary
Functions
Decodes a JSON-RPC transaction object into an envelope.
Types
@type t() :: %Onchain.Transaction.Info{ block_hash: <<_::256>> | nil, block_number: non_neg_integer() | nil, block_timestamp: non_neg_integer() | nil, from: <<_::160>>, hash: <<_::256>>, transaction: transaction(), transaction_index: non_neg_integer() | nil }
@type transaction() :: Onchain.Transaction.V1.t() | Onchain.Transaction.V_2930.t() | Onchain.Transaction.V2.t() | Onchain.Transaction.V3.t() | Onchain.Transaction.V4.t()