addEthereumConnector
Add Ethereum connector to the Dynamic client for blockchain functionality.Parameters
- client (DynamicClient) - Initialized Dynamic client
 - networkConfigProvider (NetworkConfigurationProvider) - Network configuration provider
 - initialChainId (Int) - Initial chain ID to connect to
 
Example
GenericNetworkConfigurationProvider
Default network configuration provider for Ethereum networks.Usage
SupportedEthereumNetwork
Enumeration of supported Ethereum networks with their configurations.Available Networks
- sepoliaTestnet - Ethereum Sepolia testnet (Chain ID: 11155111)
 - mainnet - Ethereum mainnet (Chain ID: 1)
 
Example
fromChainId
Get a supported network from chain ID.Parameters
- chainId (BigUInt) - Chain ID to look up
 
Returns
- SupportedEthereumNetwork? - Network if supported, nil otherwise
 
Example
ChainConfig
Configuration for a blockchain network.Properties
- chainId (BigUInt) - Chain ID of the network
 - name (String) - Human-readable network name
 - blockExplorerUrls ([String]) - Array of block explorer URLs
 
Example
EthereumTransaction
Transaction object for sending Ethereum transactions.Initialization
Parameters
- from (EthereumAddress) - Sender address
 - to (EthereumAddress) - Recipient address
 - value (BigUInt) - Amount to send in Wei
 - data (Data) - Transaction data (empty for ETH transfers)
 - nonce (BigUInt?) - Transaction nonce (nil for auto)
 - gasPrice (BigUInt) - Gas price in Wei
 - gasLimit (BigUInt) - Gas limit
 - chainId (BigUInt) - Chain ID of the network
 
Example
EthereumAddress
Ethereum address representation.Initialization
Parameters
- address (String) - Ethereum address string
 
Example
Methods
asString
Get the string representation of the address.Returns
- String - Address in string format
 
Example
BaseEthereumClient
Client for interacting with Ethereum networks.Methods
eth_gasPriceBigInt
Get the current gas price for the network.Returns
- BigUInt - Current gas price in Wei
 
Example
BlockParameter
Block parameter for queries.Values
- Latest - Latest block
 - Earliest - Earliest block
 - Pending - Pending block
 - Number(BigUInt) - Specific block number