Skip to main content

transaction_events

Creates, updates, deletes, gets or lists a transaction_events resource.

Overview

Nametransaction_events
TypeResource
Idaws.managedblockchain_query.transaction_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blockchain_instantobjectThe container for time.
confirmation_statusstringThis container specifies whether the transaction has reached Finality. (FINAL, NONFINAL)
contract_addressstringThe blockchain address for the contract (pattern: <code>[-A-Za-z0-9]{13,74}</code>)
event_typestringThe type of transaction event. (ERC20_TRANSFER, ERC20_MINT, ERC20_BURN, ERC20_DEPOSIT, ERC20_WITHDRAWAL, ERC721_TRANSFER, ERC1155_TRANSFER, BITCOIN_VIN, BITCOIN_VOUT, INTERNAL_ETH_TRANSFER, ETH_TRANSFER)
fromstringThe wallet address initiating the transaction. It can either be a public key or a contract. (pattern: <code>[-A-Za-z0-9]{13,74}</code>)
networkstringThe blockchain network where the transaction occurred. (ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET)
spent_vout_indexintegerThe position of the spent transaction output in the output list of the creating transaction. This is only returned for BITCOIN_VIN event types.
spent_vout_transaction_hashstringThe transactionHash that created the spent transaction output. This is only returned for BITCOIN_VIN event types.
spent_vout_transaction_idstringThe transactionId that created the spent transaction output. This is only returned for BITCOIN_VIN event types.
tostringThe wallet address receiving the transaction. It can either be a public key or a contract. (pattern: <code>[-A-Za-z0-9]{13,74}</code>)
token_idstringThe unique identifier for the token involved in the transaction. (pattern: <code>[a-zA-Z0-9]{1,66}</code>)
transaction_hashstringThe hash of a transaction. It is generated when a transaction is created. (pattern: <code>(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})</code>)
transaction_idstringThe identifier of a Bitcoin transaction. It is generated when a transaction is created.
valuestringThe value that was transacted.
vout_indexintegerThe position of the transaction output in the transaction output list.
vout_spentbooleanSpecifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types. This is only returned for BITCOIN_VOUT event types.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_transaction_eventsselectregionLists all the transaction events for a transaction This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists all the transaction events for a transaction This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.

SELECT
blockchain_instant,
confirmation_status,
contract_address,
event_type,
from,
network,
spent_vout_index,
spent_vout_transaction_hash,
spent_vout_transaction_id,
to,
token_id,
transaction_hash,
transaction_id,
value,
vout_index,
vout_spent
FROM aws.managedblockchain_query.transaction_events
WHERE region = '{{ region }}' -- required
;