Transaction - Amazon Managed Blockchain

Transaction

There are two possible types of transactions used for this data type:

  • A Bitcoin transaction is a movement of BTC from one address to another.

  • An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.

Contents

network

The blockchain network where the transaction occurred.

Type: String

Valid Values: ETHEREUM_MAINNET | ETHEREUM_SEPOLIA_TESTNET | BITCOIN_MAINNET | BITCOIN_TESTNET

Required: Yes

numberOfTransactions

The number of transactions in the block.

Type: Long

Required: Yes

to

The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

Type: String

Pattern: [-A-Za-z0-9]{13,74}

Required: Yes

transactionHash

The hash of a transaction. It is generated when a transaction is created.

Type: String

Pattern: (0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})

Required: Yes

transactionIndex

The index of the transaction within a blockchain.

Type: Long

Required: Yes

transactionTimestamp

The Timestamp of the transaction.

Type: Timestamp

Required: Yes

blockHash

The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.

Type: String

Pattern: (0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})

Required: No

blockNumber

The block number in which the transaction is recorded.

Type: String

Required: No

confirmationStatus

Specifies whether the transaction has reached Finality.

Type: String

Valid Values: FINAL | NONFINAL

Required: No

contractAddress

The blockchain address for the contract.

Type: String

Pattern: [-A-Za-z0-9]{13,74}

Required: No

cumulativeGasUsed

The amount of gas used up to the specified point in the block.

Type: String

Required: No

effectiveGasPrice

The effective gas price.

Type: String

Required: No

executionStatus

Identifies whether the transaction has succeeded or failed.

Type: String

Valid Values: FAILED | SUCCEEDED

Required: No

from

The initiator of the transaction. It is either in the form a public key or a contract address.

Type: String

Pattern: [-A-Za-z0-9]{13,74}

Required: No

gasUsed

The amount of gas used for the transaction.

Type: String

Required: No

signatureR

The signature of the transaction. The X coordinate of a point R.

Type: String

Required: No

signatureS

The signature of the transaction. The Y coordinate of a point S.

Type: String

Required: No

signatureV

The signature of the transaction. The Z coordinate of a point V.

Type: Integer

Required: No

transactionFee

The transaction fee.

Type: String

Required: No

transactionId

The identifier of a Bitcoin transaction. It is generated when a transaction is created.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: