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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-managedblockchainquery/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)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#block_numberString

The block number in which the transaction is recorded.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#confirmation_statusString

Specifies whether the transaction has reached Finality.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#contract_addressString

The blockchain address for the contract.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#cumulative_gas_usedString

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

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#effective_gas_priceString

The effective gas price.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#execution_statusString

Identifies whether the transaction has succeeded or failed.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  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)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#gas_usedString

The amount of gas used for the transaction.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#networkString

The blockchain network where the transaction occurred.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#number_of_transactionsInteger

The number of transactions in the block.

Returns:

  • (Integer)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#signature_rString

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

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#signature_sString

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

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#signature_vInteger

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

Returns:

  • (Integer)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  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)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#transaction_feeString

The transaction fee.

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#transaction_hashString

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

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#transaction_idString

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

Returns:

  • (String)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#transaction_indexInteger

The index of the transaction within a blockchain.

Returns:

  • (Integer)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end

#transaction_timestampTime

The Timestamp of the transaction.

Returns:

  • (Time)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/types.rb', line 1247

class Transaction < Struct.new(
  :network,
  :block_hash,
  :transaction_hash,
  :block_number,
  :transaction_timestamp,
  :transaction_index,
  :number_of_transactions,
  :to,
  :from,
  :contract_address,
  :gas_used,
  :cumulative_gas_used,
  :effective_gas_price,
  :signature_v,
  :signature_r,
  :signature_s,
  :transaction_fee,
  :transaction_id,
  :confirmation_status,
  :execution_status)
  SENSITIVE = []
  include Aws::Structure
end