Skip to main content

Messages

RawTransaction

FieldTypeDescription
signaturethru.common.v1.SignatureTransaction signature extracted from the raw transaction
raw_transactionbytesComplete serialized transaction including header, accounts, instruction data, optional state proof, and signature

Transaction

FieldTypeDescription
signaturethru.common.v1.SignatureTransaction signature (same as fee_payer_signature in header, provided at top level for convenience)
headerTransactionHeaderTransaction metadata and parameters
bodyoptional ``bytesOptional raw transaction body containing account addresses, instruction data, and state proofs
execution_resultoptional ``TransactionExecutionResultOptional execution outcome including consumed resources and events
slotoptional ``uint64Optional slot number where transaction was included
block_offsetoptional ``uint32Optional offset within the block

TransactionEvent

FieldTypeDescription
event_idstring
call_idxuint32
program_idxuint32
programthru.common.v1.Pubkey
payloadbytes

TransactionExecutionResult

FieldTypeDescription
consumed_compute_unitsuint32
consumed_memory_unitsuint32
consumed_state_unitsuint32
user_error_codeuint64
vm_errorTransactionVmError
execution_resultuint64
pages_useduint32
events_countuint32
events_sizeuint32
readwrite_accountsrepeated ``thru.common.v1.Pubkey
readonly_accountsrepeated ``thru.common.v1.Pubkey
eventsrepeated ``TransactionEvent

TransactionHeader

FieldTypeDescription
fee_payer_signaturethru.common.v1.SignatureEd25519 signature from the fee payer authorizing the transaction (note: in wire format, signature is at the end)
versionuint32Transaction format version, must be 0x01
flagsuint32Transaction flags controlling optional features
readwrite_accounts_countuint32Number of accounts that can be modified by the program
readonly_accounts_countuint32Number of accounts that can only be read by the program
instruction_data_sizeuint32Size in bytes of the instruction data section
requested_compute_unitsuint32Maximum compute units the transaction may consume
requested_state_unitsuint32Maximum state units the transaction may consume
requested_memory_unitsuint32Maximum memory units the transaction may consume
expiry_afteruint32Number of slots after start_slot when transaction expires
feeuint64Transaction fee in native tokens
nonceuint64Transaction nonce, must match fee payer’s current nonce
start_slotuint64Earliest slot when transaction becomes valid
fee_payer_pubkeythru.common.v1.PubkeyPublic key of the account paying transaction fees
program_pubkeythru.common.v1.PubkeyPublic key of the program to execute
chain_iduint32Chain identifier to prevent transaction replay across different chains

Enums

TransactionView

TransactionView controls how transactions are materialized in responses.
ValueNumberDescription
TRANSACTION_VIEW_UNSPECIFIED0
TRANSACTION_VIEW_SIGNATURE_ONLY1
TRANSACTION_VIEW_HEADER_ONLY2
TRANSACTION_VIEW_HEADER_AND_BODY3
TRANSACTION_VIEW_FULL4

TransactionVmError

TransactionVmError enumerates runtime error codes returned by the executor.
ValueNumberDescription
TRANSACTION_VM_EXECUTE_SUCCESS0TN_RUNTIME_TXN_EXECUTE_SUCCESS
TRANSACTION_VM_ERROR_INVALID_FORMAT-255TN_RUNTIME_TXN_ERR_INVALID_FORMAT
TRANSACTION_VM_ERROR_INVALID_VERSION-254TN_RUNTIME_TXN_ERR_INVALID_VERSION
TRANSACTION_VM_ERROR_INVALID_FLAGS-253TN_RUNTIME_TXN_ERR_INVALID_FLAGS
TRANSACTION_VM_ERROR_INVALID_SIGNATURE-252TN_RUNTIME_TXN_ERR_INVALID_SIGNATURE
TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT-251TN_RUNTIME_TXN_ERR_DUPLICATE_ACCOUNT
TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS-250TN_RUNTIME_TXN_ERR_UNSORTED_ACCOUNTS
TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS-249TN_RUNTIME_TXN_ERR_UNSORTED_READWRITE_ACCOUNTS
TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS-248TN_RUNTIME_TXN_ERR_UNSORTED_READONLY_ACCOUNTS
TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED-247TN_RUNTIME_TXN_ERR_ACCOUNT_COUNT_LIMIT_EXCEEDED
TRANSACTION_VM_ERROR_NONCE_TOO_LOW-511TN_RUNTIME_TXN_ERR_NONCE_TOO_LOW
TRANSACTION_VM_ERROR_NONCE_TOO_HIGH-510TN_RUNTIME_TXN_ERR_NONCE_TOO_HIGH
TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE-509TN_RUNTIME_TXN_ERR_INSUFFICIENT_FEE_PAYER_BALANCE
TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST-508TN_RUNTIME_TXN_ERR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST
TRANSACTION_VM_ERROR_NOT_LIVE_YET-507TN_RUNTIME_TXN_ERR_NOT_LIVE_YET
TRANSACTION_VM_ERROR_EXPIRED-506TN_RUNTIME_TXN_ERR_EXPIRED
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF-505TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE-504TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_TYPE
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT-503TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_SLOT
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER-502TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_ACCOUNT_OWNER
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER-501TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ-500TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ
TRANSACTION_VM_ERROR_VM_FAILED-767TN_RUNTIME_TXN_ERR_VM_FAILED
TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT-766TN_RUNTIME_TXN_ERR_INVALID_PROGRAM_ACCOUNT
TRANSACTION_VM_ERROR_VM_REVERT-765TN_RUNTIME_TXN_ERR_VM_REVERT
TRANSACTION_VM_ERROR_CU_EXHAUSTED-764TN_RUNTIME_TXN_ERR_CU_EXHAUSTED
TRANSACTION_VM_ERROR_SU_EXHAUSTED-763TN_RUNTIME_TXN_ERR_SU_EXHAUSTED