Transaction Status

class TransactionDetails

Levels of transaction detail to return in RPC requests.

Accounts = TransactionDetails.Accounts
Full = TransactionDetails.Full
None_ = TransactionDetails.None_
Signatures = TransactionDetails.Signatures
class UiTransactionEncoding

Encoding options for transaction data.

Base58 = UiTransactionEncoding.Base58
Base64 = UiTransactionEncoding.Base64
Binary = UiTransactionEncoding.Binary
Json = UiTransactionEncoding.Json
JsonParsed = UiTransactionEncoding.JsonParsed
class TransactionBinaryEncoding
Base58 = TransactionBinaryEncoding.Base58
Base64 = TransactionBinaryEncoding.Base64
class UiCompiledInstruction
accounts
data
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.

program_id_index
stack_height
to_json()

Convert to a JSON string.

class UiAddressTableLookup
account_key
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.

readonly_indexes
to_json()

Convert to a JSON string.

writable_indexes
class UiRawMessage

A duplicate representation of a Message, in raw format, for pretty JSON serialization

account_keys
address_table_lookups
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.

header
instructions
recent_blockhash
to_json()

Convert to a JSON string.

class ParsedAccountSource
LookupTable = ParsedAccountSource.LookupTable
Transaction = ParsedAccountSource.Transaction
class ParsedAccount

A duplicate representation of a Message, in raw format, for pretty JSON serialization

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.

pubkey
signer
source
to_json()

Convert to a JSON string.

writable
class ParsedInstruction
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.

parsed
program
program_id
stack_height
to_json()

Convert to a JSON string.

class UiPartiallyDecodedInstruction
accounts
data
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.

program_id
stack_height
to_json()

Convert to a JSON string.

class UiParsedMessage

A duplicate representation of a Message, in raw format, for pretty JSON serialization

account_keys
address_table_lookups
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.

instructions
recent_blockhash
to_json()

Convert to a JSON string.

class UiTransaction
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.

message
signatures
to_json()

Convert to a JSON string.

class UiInnerInstructions
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.

index
instructions
to_json()

Convert to a JSON string.

class UiLoadedAddresses
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.

readonly
to_json()

Convert to a JSON string.

writable
class UiAccountsList
account_keys
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.

signatures
to_json()

Convert to a JSON string.

class UiTransactionTokenBalance
account_index
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.

mint
owner
program_id
to_json()

Convert to a JSON string.

ui_token_amount
class RewardType
Fee = RewardType.Fee
Rent = RewardType.Rent
Staking = RewardType.Staking
Voting = RewardType.Voting
class TransactionReturnData
data
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.

program_id
to_json()

Convert to a JSON string.

class UiTransactionStatusMeta

A duplicate representation of TransactionStatusMeta with err field

compute_units_consumed
err
fee
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
loaded_addresses
log_messages
post_balances
post_token_balances
pre_balances
pre_token_balances
return_data
rewards
to_json()

Convert to a JSON string.

class EncodedTransactionWithStatusMeta
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
to_json()

Convert to a JSON string.

transaction
version
class InstructionErrorCustom
code
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.

to_json()

Convert to a JSON string.

class InstructionErrorBorshIO
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.

to_json()

Convert to a JSON string.

value
class InstructionErrorFieldless
AccountAlreadyInitialized = InstructionErrorFieldless.AccountAlreadyInitialized
AccountBorrowFailed = InstructionErrorFieldless.AccountBorrowFailed
AccountBorrowOutstanding = InstructionErrorFieldless.AccountBorrowOutstanding
AccountDataSizeChanged = InstructionErrorFieldless.AccountDataSizeChanged
AccountDataTooSmall = InstructionErrorFieldless.AccountDataTooSmall
AccountNotExecutable = InstructionErrorFieldless.AccountNotExecutable
AccountNotRentExempt = InstructionErrorFieldless.AccountNotRentExempt
ArithmeticOverflow = InstructionErrorFieldless.ArithmeticOverflow
BuiltinProgramsMustConsumeComputeUnits = InstructionErrorFieldless.BuiltinProgramsMustConsumeComputeUnits
CallDepth = InstructionErrorFieldless.CallDepth
ComputationalBudgetExceeded = InstructionErrorFieldless.ComputationalBudgetExceeded
DuplicateAccountIndex = InstructionErrorFieldless.DuplicateAccountIndex
DuplicateAccountOutOfSync = InstructionErrorFieldless.DuplicateAccountOutOfSync
ExecutableAccountNotRentExempt = InstructionErrorFieldless.ExecutableAccountNotRentExempt
ExecutableDataModified = InstructionErrorFieldless.ExecutableDataModified
ExecutableLamportChange = InstructionErrorFieldless.ExecutableLamportChange
ExecutableModified = InstructionErrorFieldless.ExecutableModified
ExternalAccountDataModified = InstructionErrorFieldless.ExternalAccountDataModified
ExternalAccountLamportSpend = InstructionErrorFieldless.ExternalAccountLamportSpend
GenericError = InstructionErrorFieldless.GenericError
IllegalOwner = InstructionErrorFieldless.IllegalOwner
Immutable = InstructionErrorFieldless.Immutable
IncorrectAuthority = InstructionErrorFieldless.IncorrectAuthority
IncorrectProgramId = InstructionErrorFieldless.IncorrectProgramId
InsufficientFunds = InstructionErrorFieldless.InsufficientFunds
InvalidAccountData = InstructionErrorFieldless.InvalidAccountData
InvalidAccountOwner = InstructionErrorFieldless.InvalidAccountOwner
InvalidArgument = InstructionErrorFieldless.InvalidArgument
InvalidError = InstructionErrorFieldless.InvalidError
InvalidInstructionData = InstructionErrorFieldless.InvalidInstructionData
InvalidRealloc = InstructionErrorFieldless.InvalidRealloc
InvalidSeeds = InstructionErrorFieldless.InvalidSeeds
MaxAccountsDataAllocationsExceeded = InstructionErrorFieldless.MaxAccountsDataAllocationsExceeded
MaxAccountsExceeded = InstructionErrorFieldless.MaxAccountsExceeded
MaxInstructionTraceLengthExceeded = InstructionErrorFieldless.MaxInstructionTraceLengthExceeded
MaxSeedLengthExceeded = InstructionErrorFieldless.MaxSeedLengthExceeded
MissingAccount = InstructionErrorFieldless.MissingAccount
MissingRequiredSignature = InstructionErrorFieldless.MissingRequiredSignature
ModifiedProgramId = InstructionErrorFieldless.ModifiedProgramId
NotEnoughAccountKeys = InstructionErrorFieldless.NotEnoughAccountKeys
PrivilegeEscalation = InstructionErrorFieldless.PrivilegeEscalation
ProgramEnvironmentSetupFailure = InstructionErrorFieldless.ProgramEnvironmentSetupFailure
ProgramFailedToCompile = InstructionErrorFieldless.ProgramFailedToCompile
ProgramFailedToComplete = InstructionErrorFieldless.ProgramFailedToComplete
ReadonlyDataModified = InstructionErrorFieldless.ReadonlyDataModified
ReadonlyLamportChange = InstructionErrorFieldless.ReadonlyLamportChange
ReentrancyNotAllowed = InstructionErrorFieldless.ReentrancyNotAllowed
RentEpochModified = InstructionErrorFieldless.RentEpochModified
UnbalancedInstruction = InstructionErrorFieldless.UnbalancedInstruction
UninitializedAccount = InstructionErrorFieldless.UninitializedAccount
UnsupportedProgramId = InstructionErrorFieldless.UnsupportedProgramId
UnsupportedSysvar = InstructionErrorFieldless.UnsupportedSysvar
class TransactionErrorInstructionError
err
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.

index
to_json()

Convert to a JSON string.

class TransactionErrorDuplicateInstruction
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.

index
to_json()

Convert to a JSON string.

class TransactionErrorInsufficientFundsForRent
account_index
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.

to_json()

Convert to a JSON string.

class TransactionErrorFieldless
AccountBorrowOutstanding = TransactionErrorFieldless.AccountBorrowOutstanding
AccountInUse = TransactionErrorFieldless.AccountInUse
AccountLoadedTwice = TransactionErrorFieldless.AccountLoadedTwice
AccountNotFound = TransactionErrorFieldless.AccountNotFound
AddressLookupTableNotFound = TransactionErrorFieldless.AddressLookupTableNotFound
AlreadyProcessed = TransactionErrorFieldless.AlreadyProcessed
BlockhashNotFound = TransactionErrorFieldless.BlockhashNotFound
CallChainTooDeep = TransactionErrorFieldless.CallChainTooDeep
ClusterMaintenance = TransactionErrorFieldless.ClusterMaintenance
InsufficientFundsForFee = TransactionErrorFieldless.InsufficientFundsForFee
InvalidAccountForFee = TransactionErrorFieldless.InvalidAccountForFee
InvalidAccountIndex = TransactionErrorFieldless.InvalidAccountIndex
InvalidAddressLookupTableData = TransactionErrorFieldless.InvalidAddressLookupTableData
InvalidAddressLookupTableIndex = TransactionErrorFieldless.InvalidAddressLookupTableIndex
InvalidAddressLookupTableOwner = TransactionErrorFieldless.InvalidAddressLookupTableOwner
InvalidLoadedAccountsDataSizeLimit = TransactionErrorFieldless.InvalidLoadedAccountsDataSizeLimit
InvalidProgramForExecution = TransactionErrorFieldless.InvalidProgramForExecution
InvalidRentPayingAccount = TransactionErrorFieldless.InvalidRentPayingAccount
InvalidWritableAccount = TransactionErrorFieldless.InvalidWritableAccount
MaxLoadedAccountsDataSizeExceeded = TransactionErrorFieldless.MaxLoadedAccountsDataSizeExceeded
MissingSignatureForFee = TransactionErrorFieldless.MissingSignatureForFee
ProgramAccountNotFound = TransactionErrorFieldless.ProgramAccountNotFound
ProgramCacheHitMaxLimit = TransactionErrorFieldless.ProgramCacheHitMaxLimit
ResanitizationNeeded = TransactionErrorFieldless.ResanitizationNeeded
SanitizeFailure = TransactionErrorFieldless.SanitizeFailure
SignatureFailure = TransactionErrorFieldless.SignatureFailure
TooManyAccountLocks = TransactionErrorFieldless.TooManyAccountLocks
UnbalancedTransaction = TransactionErrorFieldless.UnbalancedTransaction
UnsupportedVersion = TransactionErrorFieldless.UnsupportedVersion
WouldExceedAccountDataBlockLimit = TransactionErrorFieldless.WouldExceedAccountDataBlockLimit
WouldExceedAccountDataTotalLimit = TransactionErrorFieldless.WouldExceedAccountDataTotalLimit
WouldExceedMaxAccountCostLimit = TransactionErrorFieldless.WouldExceedMaxAccountCostLimit
WouldExceedMaxBlockCostLimit = TransactionErrorFieldless.WouldExceedMaxBlockCostLimit
WouldExceedMaxVoteCostLimit = TransactionErrorFieldless.WouldExceedMaxVoteCostLimit
class Reward
commission
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.

lamports
post_balance
pubkey
reward_type
to_json()

Convert to a JSON string.

class TransactionConfirmationStatus
Confirmed = TransactionConfirmationStatus.Confirmed
Finalized = TransactionConfirmationStatus.Finalized
Processed = TransactionConfirmationStatus.Processed
class TransactionStatus
confirmation_status
confirmations
err
find_confirmation_status()
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.

satisfies_commitment(commitment_config)
slot
status
to_json()

Convert to a JSON string.

class EncodedConfirmedTransactionWithStatusMeta
block_time
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.

slot
to_json()

Convert to a JSON string.

transaction
class UiConfirmedBlock
block_height
block_time
blockhash
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.

parent_slot
previous_blockhash
rewards
signatures
to_json()

Convert to a JSON string.

transactions