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:

CompiledInstruction

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:

TransactionReturnData

signature()
Returns:

The transaction signature

Return type:

Signature

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:

TransactionMetadata

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:

TransactionMetadata

post_accounts()
Returns:

Pubkey-Account pairs, showing the state of writable accounts after transaction execution.

Return type:

list[tuple[Pubkey, Account]]

to_json()

Convert to a JSON string.