Get Transaction by Version
POST
Retrieves a specific transaction by version number.
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.networkstringrequired
Parameter specifying the network of the target chain.Request Body
transactionVersionintegerrequired
Parameter specifying the transaction version to query. The transaction version must be entered as a positive integer.withBalanceChangesboolean
Parameter specifying whether to include the balanceChanges field in the response.- balanceChanges is a field containing balance changes for Native token (APT) and Tokens.
- Response speed may be slower when true is set for this parameter.
Responses
transactionHashstringrequired
A field that represents the unique identifier of the transaction.A cryptographic hash computed from all transaction data (signed payload), provided as a 64-character hexadecimal string prefixed with 0x.Used to verify transaction integrity and to uniquely identify the transaction.transactionVersionintegerrequired
A field that represents the version of the transaction.A unique sequence ID indicating the order of the transaction on the chain, incrementing sequentially from 0.Used to ensure transaction execution order and to query the state of a specific transaction.blockHeightintegerrequired
A field that represents the height of the block containing the transaction.Provided as an integer that increments sequentially from the genesis block (0).Used to identify which block the transaction was included in and to verify if the transaction has been finalized.blockTimestampintegerrequired
A field that represents the creation time of the block containing the transaction.Provided as a UNIX timestamp; this value means both when the block was created and when the transactions in that block were processed.expirationTimestampSecsintegerrequired
A field that represents the expiration time of the transaction.Provided as a UNIX timestamp in seconds; the transaction cannot be included in the chain after this time.Sets the validity period of the transaction to prevent old transactions from being processed.gasUnitPricestringrequired
A field that represents the gas unit price of the transaction.Provided in Octas (1 APT = 10^8 Octas); indicates the amount to pay per gas unit.Used to determine transaction processing priority and to calculate transaction fees.gasUsedstringrequired
A field that represents the amount of gas actually consumed during transaction execution.A unit that measures the amount of computing resources consumed for transaction processing.Actual transaction fee is calculated as gasUsed * gasUnitPrice.maxGasAmountstringrequired
A field that represents the maximum amount of gas available for the transaction.The transaction fails if this value is exceeded during execution; serves as a cap on gas cost.Prevents users from paying unexpectedly high fees.secondarySignersarrayrequired
A field that represents the list of addresses of additional signers in a multi-signature transaction.Contains the addresses of accounts that signed the transaction in addition to the primary signer (sender).Used for complex permission management or transactions requiring multiple approvals.senderstringrequired
A field that represents the address of the account that initiated the transaction.Provided as a 64-character hexadecimal string prefixed with 0x; identifies the principal of the transaction.The account against which transaction fee payment and sequence number management are applied.sequenceNumberintegerrequired
A field that represents the current sequence number of the sender account.Starts at 0 and increments by 1 per transaction per account; prevents replay attacks and ensures transaction order.Transactions with the same sequence number cannot be executed redundantly.successbooleanrequired
A field that indicates whether the transaction executed successfully.true means the transaction was executed successfully; false means an error occurred during execution.vmStatusstringrequired
A field that represents the execution result status of the transaction.Returns 'Executed successfully' on success; includes specific error messages on failure.Helps analyze the cause of transaction failures and troubleshoot issues.A field that represents the list of events emitted during transaction execution.Each event records state changes or important operations caused by the transaction.Provides information to track transaction impact and for integration with external systems.
eventIndexintegerrequired
A field that represents the order index of the event within the transaction.Indicates the order of the current event among multiple events emitted in a single transaction.Starts at 0 and increments in event emission order; used to identify the order of events within the same transaction.eventTypestringrequired
A field that represents the type of the event.Provided as the full path (address::module::struct) of the event struct defined in the Move module.Used to identify the type of operation that caused the balance change.accountAddressstringrequired
A field that represents the address of the resource owner that emitted the event.Provided as a 64-character hexadecimal string prefixed with 0x; identifies the owner of the resource where the event occurred.The account that owns the event handle; can be used as a filter condition when querying events.dataobjectrequired
A field that represents the specific data of the event.The fields of the event struct defined in eventType are provided as a JSON object.Contains the event details and may have different structures depending on the event type.creationNumberintegerrequired
A field that represents the creation number of the event handle.A unique identifier to distinguish event handles created by an account, incrementing sequentially from 0.Used to distinguish different types of events emitted from the same account.sequenceNumberintegerrequired
A field that represents the sequence number of the event emitted from the event handle.Indicates the order of events emitted from the same event handle.Starts at 0 and increments sequentially; ensures the time order of events emitted from a specific event handle.objectAddressstringrequired
A field that represents the address of the Object when the event is for an Object resource.Provided as a 64-character hexadecimal string prefixed with 0x; the unique identifier for Object-based resources.Used to track and query events related to Object resources.objectOwnerAddressstringrequired
A field that represents the owner address of the Object identified by objectAddress.Provided as a 64-character hexadecimal string prefixed with 0x; identifies the current owner of the Object.Used for Object ownership tracking and permission verification.balanceInAccountsarrayrequired
A field that represents the list of addresses of accounts that received assets in the transaction.Contains addresses of accounts with positive values (deposits) in balanceChanges.Used to track asset transfer recipients and analyze deposit history.balanceOutAccountsarrayrequired
A field that represents the list of addresses of accounts that sent assets in the transaction.Contains addresses of accounts with negative values (withdrawals) in balanceChanges.Used to track asset transfer senders and analyze withdrawal history.balanceChangedTokensarrayrequired
A field that represents the list of token types whose balances changed due to the transaction.Each token is provided in 'moduleAddress::moduleName::structName' format.Used to identify the types of assets affected by the transaction and to track changes per asset.A field that represents the transaction payload.Contains the execution content of the transaction, such as entry function calls or script executions.Only provided when the payload type is entry_function_payload.
functionstringrequired
A field that represents the full identifier of the on-chain function being invoked.Provided in 'address::moduleName::functionName' format; uniquely identifies the Module function to be executed.typestringrequired
A field that represents the type of the payload.The following values are possible:- entry_function_payload: Directly invokes an entry function of a Move module
- script_payload: Executes a Move script
- multisig_payload: Transaction requiring multi-signature
typeArgumentsarrayrequired
A field that represents the type arguments used when calling a generic function.argumentsarrayrequired
A field that represents the arguments passed to the invoked function.Values must be provided in order matching the function parameters; parameter types and count differ per function.entryFunctionContractAddressstring
A field that represents the module address of the called entry function.Only provided when the payload type is entry_function_payload.entryFunctionIdStrstring
A field that represents the full identifier of the called entry function.Provided in 'moduleAddress::moduleName::functionName' format.Only provided when the payload type is entry_function_payload.entryFunctionModuleNamestring
A field that represents the module name of the called entry function.Only provided when the payload type is entry_function_payload.entryFunctionNamestring
A field that represents the name of the called entry function.Only provided when the payload type is entry_function_payload.A field that represents the asset change history that occurred in the transaction.Only provided when withBalance=true is included in the request.
blockHeightinteger
A field that represents the height of the block containing this balance change.An integer that increments sequentially starting from the genesis block (0), used as an indicator for the blockchain length and the position of a specific block.blockTimestampinteger
A field that represents the block creation time.Provided as a UNIX timestamp, used for block creation order and time tracking.Block timestamps are used to ensure transaction order and measure inter-block creation intervals.transactionHashstring
A field that represents the hash of the transaction that caused the balance change.A cryptographic hash computed from all transaction data, provided as a 64-character hexadecimal string prefixed with 0x.This hash enables retrieval of full information for the transaction related to the balance change.transactionVersioninteger
A field that represents the version of the transaction where the balance change occurred.A unique sequence ID indicating the order of the transaction on the chain, incrementing sequentially from 0.eventIndexintegerrequired
A field that represents the order index of the event within the transaction.Indicates the order of the current event among multiple events emitted in a single transaction.Starts at 0 and increments in event emission order; used to identify the order of events within the same transaction.eventTypestringrequired
A field that represents the type of the event.Provided as the full path (address::module::struct) of the event struct defined in the Move module.Used to identify the type of operation that caused the balance change.subEventIndexintegerrequired
A field that represents the order of asset changes when multiple asset changes occur within a single event.Identifies the order of multiple asset changes within an event sharing the same eventIndex.Starts at 0 and increments sequentially; plays an important role in complex asset operations (e.g., swaps).accountAddressstringrequired
A field that represents the address of the account where the balance change occurred.Provided as a 64-character hexadecimal string prefixed with 0x; identifies the account whose asset balance changed.This address is either the asset owner or the destination account the asset was transferred to.assetTypestringrequired
A field that represents the type of the asset whose balance changed.Provided in one of two formats:- Coin: Asset ID in Move struct format (e.g., 0x1::aptos_coin::AptosCoin)
- Fungible Asset: Object address that owns the metadata of the asset
linkedAssetTypestringrequired
A common identifier that links Coin and Fungible Asset when they have been migrated.This field serves as a unified key that groups Coin/Fungible Asset into a single asset unit for identification and retrieval, providing the Object address where the migrated Fungible Asset's Metadata is stored.changeValuestringrequired
A field that represents the balance change amount.Provided as a string in integer form.- Positive: indicates the account balance increased
- Negative: indicates the account balance decreased
tokenStandardstringrequired
A field that represents the standard type of the asset.- v1: Assets following the Coin standard
- v2: Assets following the Fungible Asset standard
transferTypestringrequired
A field that represents the transfer direction or action type.Indicates the specific type of balance change; the following values are possible:- deposit: asset deposit
- withdraw: asset withdrawal
- swap_in: deposit from swap
- swap_out: withdrawal from swap
- gas: gas fee payment
- refund_gas: gas fee refund
codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "MISSING_REQUIRED_PARAMETER","message": "Missing required parameter: { PARAMETER_NAME }"}
cURL
curl -X POST 'https://web3.nodit.io/v1/aptos/mainnet/blockchain/getTransactionByVersion' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{}'