Transaction Status
- class UiTransactionEncoding
Encoding options for transaction data.
- Base58 = UiTransactionEncoding.Base58
- Base64 = UiTransactionEncoding.Base64
- Binary = UiTransactionEncoding.Binary
- Json = UiTransactionEncoding.Json
- JsonParsed = UiTransactionEncoding.JsonParsed
- class TransactionDetails
Levels of transaction detail to return in RPC requests.
- Accounts = TransactionDetails.Accounts
- Full = TransactionDetails.Full
- None_ = TransactionDetails.None_
- Signatures = TransactionDetails.Signatures
- class TransactionBinaryEncoding
- Base58 = TransactionBinaryEncoding.Base58
- Base64 = TransactionBinaryEncoding.Base64
- class ParsedInstruction(program, program_id, parsed, stack_height=None)
- 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(program_id, accounts, data, stack_height=None)
- 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 UiCompiledInstruction(program_id_index, accounts, data, stack_height=None)
- 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, writable_indexes, readonly_indexes)
- 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 UiParsedMessage(account_keys, recent_blockhash, instructions, address_table_lookups=None)
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 UiRawMessage(header, account_keys, recent_blockhash, instructions, address_table_lookups=None)
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
- ParsedAccount
alias of
ParsedAccountTxStatus
- class UiTransaction(signatures, message)
- 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 UiAccountsList(signatures, account_keys)
- 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 UiInnerInstructions(index, instructions)
- 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(writable, readonly)
- 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 UiTransactionTokenBalance(account_index, mint, ui_token_amount, owner=None, program_id=None)
- 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 Reward(pubkey, lamports, post_balance, reward_type=None, commission=None)
- 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 RewardType
- Fee = RewardType.Fee
- Rent = RewardType.Rent
- Staking = RewardType.Staking
- Voting = RewardType.Voting
- class TransactionReturnData(program_id, data)
- 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(err, fee, pre_balances, post_balances, inner_instructions=None, log_messages=None, pre_token_balances=None, post_token_balances=None, rewards=None, loaded_addresses=None, return_data=None, compute_units_consumed=None, cost_units=None)
A duplicate representation of TransactionStatusMeta with err field
- compute_units_consumed
- cost_units
- 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(transaction, meta=None, version=None)
- 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 TransactionConfirmationStatus
- Confirmed = TransactionConfirmationStatus.Confirmed
- Finalized = TransactionConfirmationStatus.Finalized
- Processed = TransactionConfirmationStatus.Processed
- class TransactionStatus(slot, confirmations=None, status=None, err=None, confirmation_status=None)
- 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(slot, transaction, block_time=None)
- 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(previous_blockhash, blockhash, parent_slot, transactions=None, signatures=None, rewards=None, block_time=None, block_height=None, num_reward_partitions=None)
- 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
- 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
- BorshIoError = InstructionErrorFieldless.BorshIoError
- 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 InstructionErrorCustom(code)
- 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(value)
- 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 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
- CommitCancelled = TransactionErrorFieldless.CommitCancelled
- 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 TransactionErrorInstructionError(index, err)
- 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(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.
- index
- to_json()
Convert to a JSON string.
- class TransactionErrorInsufficientFundsForRent(account_index)
- 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 TransactionErrorProgramExecutionTemporarilyRestricted(account_index)
- 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.