Skip to main content

transactions

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

Overview​

Nametransactions
TypeResource
Idaws.managedblockchain_query.transactions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
confirmation_statusstringSpecifies whether to list transactions that have not reached Finality. (FINAL, NONFINAL)
networkstringThe blockchain network where the transaction occurred. (ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET)
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. (pattern: <code>(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})</code>)
transaction_timestampstring (date-time)The time when the transaction occurred.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_transactionsselectregionLists all the transaction events for a transaction.
get_transactionselectregionGets the details of 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.

SELECT
confirmation_status,
network,
transaction_hash,
transaction_id,
transaction_timestamp
FROM aws.managedblockchain_query.transactions
WHERE region = '{{ region }}' -- required
;