Class: Aws::ManagedBlockchainQuery::Types::Transaction

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#block_hashString

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.

Returns:

  • (String)


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_numberString

The block number in which the transaction is recorded.

Returns:

  • (String)


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_addressString

The blockchain address for the contract.

Returns:

  • (String)


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_usedString

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

Returns:

  • (String)


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_priceString

The effective gas price.

Returns:

  • (String)


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

#fromString

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

Returns:

  • (String)


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_usedString

The amount of gas used for the transaction.

Returns:

  • (String)


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

#networkString

The blockchain network where the transaction occurred.

Returns:

  • (String)


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_transactionsInteger

The number of transactions in the block.

Returns:

  • (Integer)


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_rString

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

Returns:

  • (String)


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_sString

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

Returns:

  • (String)


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_vInteger

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

Returns:

  • (Integer)


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

#statusString

The status of the transaction.

Returns:

  • (String)


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

#toString

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

Returns:

  • (String)


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_feeString

The transaction fee.

Returns:

  • (String)


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_hashString

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

Returns:

  • (String)


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_idString

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

Returns:

  • (String)


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_indexInteger

The index of the transaction within a blockchain.

Returns:

  • (Integer)


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_timestampTime

The ‘Timestamp` of the transaction.

Returns:

  • (Time)


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