Class: Google::Apis::BlockchainnodeengineV1::EthereumDetails
- Inherits:
-
Object
- Object
- Google::Apis::BlockchainnodeengineV1::EthereumDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/blockchainnodeengine_v1/classes.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb
Overview
Ethereum-specific blockchain node details.
Instance Attribute Summary collapse
-
#additional_endpoints ⇒ Google::Apis::BlockchainnodeengineV1::EthereumEndpoints
Contains endpoint information specific to Ethereum nodes.
-
#api_enable_admin ⇒ Boolean
(also: #api_enable_admin?)
Immutable.
-
#api_enable_debug ⇒ Boolean
(also: #api_enable_debug?)
Immutable.
-
#beacon_fee_recipient ⇒ String
An Ethereum address which the beacon client will send fee rewards to if no recipient is configured in the validator client.
-
#consensus_client ⇒ String
Immutable.
-
#execution_client ⇒ String
Immutable.
-
#geth_details ⇒ Google::Apis::BlockchainnodeengineV1::GethDetails
Options for the Geth execution client.
-
#network ⇒ String
Immutable.
-
#node_type ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EthereumDetails
constructor
A new instance of EthereumDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EthereumDetails
Returns a new instance of EthereumDetails.
221 222 223 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_endpoints ⇒ Google::Apis::BlockchainnodeengineV1::EthereumEndpoints
Contains endpoint information specific to Ethereum nodes.
Corresponds to the JSON property additionalEndpoints
169 170 171 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 169 def additional_endpoints @additional_endpoints end |
#api_enable_admin ⇒ Boolean Also known as: api_enable_admin?
Immutable. Enables JSON-RPC access to functions in the admin namespace.
Defaults to false.
Corresponds to the JSON property apiEnableAdmin
175 176 177 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 175 def api_enable_admin @api_enable_admin end |
#api_enable_debug ⇒ Boolean Also known as: api_enable_debug?
Immutable. Enables JSON-RPC access to functions in the debug namespace.
Defaults to false.
Corresponds to the JSON property apiEnableDebug
182 183 184 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 182 def api_enable_debug @api_enable_debug end |
#beacon_fee_recipient ⇒ String
An Ethereum address which the beacon client will send fee rewards to if no
recipient is configured in the validator client. See https://lighthouse-book.
sigmaprime.io/suggested-fee-recipient.html or https://docs.prylabs.network/
docs/execution-node/fee-recipient for examples of how this is used. Note that
while this is often described as "suggested", as we run the execution node we
can trust the execution node, and therefore this is considered enforced.
Corresponds to the JSON property beaconFeeRecipient
193 194 195 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 193 def beacon_fee_recipient @beacon_fee_recipient end |
#consensus_client ⇒ String
Immutable. The consensus client.
Corresponds to the JSON property consensusClient
198 199 200 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 198 def consensus_client @consensus_client end |
#execution_client ⇒ String
Immutable. The execution client
Corresponds to the JSON property executionClient
203 204 205 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 203 def execution_client @execution_client end |
#geth_details ⇒ Google::Apis::BlockchainnodeengineV1::GethDetails
Options for the Geth execution client. See Command-line Options for more details.
Corresponds to the JSON property gethDetails
209 210 211 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 209 def geth_details @geth_details end |
#network ⇒ String
Immutable. The Ethereum environment being accessed.
Corresponds to the JSON property network
214 215 216 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 214 def network @network end |
#node_type ⇒ String
Immutable. The type of Ethereum node.
Corresponds to the JSON property nodeType
219 220 221 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 219 def node_type @node_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 226 def update!(**args) @additional_endpoints = args[:additional_endpoints] if args.key?(:additional_endpoints) @api_enable_admin = args[:api_enable_admin] if args.key?(:api_enable_admin) @api_enable_debug = args[:api_enable_debug] if args.key?(:api_enable_debug) @beacon_fee_recipient = args[:beacon_fee_recipient] if args.key?(:beacon_fee_recipient) @consensus_client = args[:consensus_client] if args.key?(:consensus_client) @execution_client = args[:execution_client] if args.key?(:execution_client) @geth_details = args[:geth_details] if args.key?(:geth_details) @network = args[:network] if args.key?(:network) @node_type = args[:node_type] if args.key?(:node_type) end |