v0.1.1-dev - C-Chain JSON-RPC Client
Pre-release
Pre-release
Phase 2 started: C-Chain read operations available.
What's New
- CChainClient - JSON-RPC client for Avalanche C-Chain
- Balance, nonce, block number, transaction receipt
- Avalanche-specific: eth_baseFee, eth_suggestPriceOptions
- GasEstimator - EIP-1559 gas estimation
- slow/normal/fast price options
- Transfer fee estimation
Live Example (Fuji Testnet)
final client = CChainClient(network: NetworkConfig.fuji);
final balance = await client.getBalance('0x71C7...');
final estimator = GasEstimator(client);
final options = await estimator.getPriceOptions();
print(options.normal.maxFeePerGas); // in WeiTests
278/278 passing · 24 new tests
Next
v0.1.2-dev: AvaxTransferTransaction (EIP-1559 signing + broadcast)