Transsaction Metadata
- class InnerInstruction
A compiled instruction that was invoked during a transaction instruction.
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- instruction()
- Returns:
the compiled instruction
- Return type:
- stack_height()
- Returns:
Invocation stack height of this instruction. Starts at 1.
- Return type:
int
- to_json()
Convert to a JSON string.
- class TransactionMetadata
Information about sent transactions.
- compute_units_consumed()
- Returns:
The compute units consumed by the transaction.
- Return type:
int
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- inner_instructions()
- Returns:
The transaction’s inner instructions.
- Return type:
list[list[InnerInstruction]]
- logs()
- Returns:
The transaction logs.
- Return type:
list[str]
- return_data()
- Returns:
The transaction return data.
- Return type:
- to_json()
Convert to a JSON string.
- class FailedTransactionMetadata
Information about failed transactions.
- err()
- Returns:
The transaction error.
- Return type:
TransactionErrorType
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- meta()
- Returns:
The transaction metadata.
- Return type:
- to_json()
Convert to a JSON string.
- class SimulatedTransactionInfo
Information about simulated transactions.
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- meta()
- Returns:
The transaction metadata.
- Return type:
- post_accounts()
- to_json()
Convert to a JSON string.