Class: Aws::ManagedBlockchainQuery::Types::Transaction
- Inherits:
-
Struct
- Object
- Struct
- Aws::ManagedBlockchainQuery::Types::Transaction
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-managedblockchainquery/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#block_hash ⇒ String
The block hash is a unique identifier for a block.
-
#block_number ⇒ String
The block number in which the transaction is recorded.
-
#contract_address ⇒ String
The blockchain address for the contract.
-
#cumulative_gas_used ⇒ String
The amount of gas used up to the specified point in the block.
-
#effective_gas_price ⇒ String
The effective gas price.
-
#from ⇒ String
The initiator of the transaction.
-
#gas_used ⇒ String
The amount of gas used for the transaction.
-
#network ⇒ String
The blockchain network where the transaction occurred.
-
#number_of_transactions ⇒ Integer
The number of transactions in the block.
-
#signature_r ⇒ String
The signature of the transaction.
-
#signature_s ⇒ String
The signature of the transaction.
-
#signature_v ⇒ Integer
The signature of the transaction.
-
#status ⇒ String
The status of the transaction.
-
#to ⇒ String
The identifier of the transaction.
-
#transaction_fee ⇒ String
The transaction fee.
-
#transaction_hash ⇒ String
The hash of the transaction.
-
#transaction_id ⇒ String
The unique identifier of the transaction.
-
#transaction_index ⇒ Integer
The index of the transaction within a blockchain.
-
#transaction_timestamp ⇒ Time
The ‘Timestamp` of the transaction.
Instance Attribute Details
#block_hash ⇒ String
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.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#block_number ⇒ String
The block number in which the transaction is recorded.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#contract_address ⇒ String
The blockchain address for the contract.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#cumulative_gas_used ⇒ String
The amount of gas used up to the specified point in the block.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#effective_gas_price ⇒ String
The effective gas price.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#from ⇒ String
The initiator of the transaction. It is either in the form a public key or a contract address.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#gas_used ⇒ String
The amount of gas used for the transaction.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#network ⇒ String
The blockchain network where the transaction occurred.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#number_of_transactions ⇒ Integer
The number of transactions in the block.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#signature_r ⇒ String
The signature of the transaction. The X coordinate of a point R.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#signature_s ⇒ String
The signature of the transaction. The Y coordinate of a point S.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#signature_v ⇒ Integer
The signature of the transaction. The Z coordinate of a point V.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#status ⇒ String
The status of the transaction.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#to ⇒ String
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#transaction_fee ⇒ String
The transaction fee.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#transaction_hash ⇒ String
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#transaction_id ⇒ String
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#transaction_index ⇒ Integer
The index of the transaction within a blockchain.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |
#transaction_timestamp ⇒ Time
The ‘Timestamp` of the transaction.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/aws-sdk-managedblockchainquery/types.rb', line 1017 class Transaction < Struct.new( :network, :block_hash, :transaction_hash, :block_number, :transaction_timestamp, :transaction_index, :number_of_transactions, :status, :to, :from, :contract_address, :gas_used, :cumulative_gas_used, :effective_gas_price, :signature_v, :signature_r, :signature_s, :transaction_fee, :transaction_id) SENSITIVE = [] include Aws::Structure end |