RpcTestResult class

Result of NetworkApi.testRpc.

Shape depends on type — fields relevant to the other chain families stay null. Use the boolean getters (isEvm, isSolana, isBitcoin) or switch on type to pick the right read-side fields.

Constructors

RpcTestResult({required String rpc, required String type, int? chainId, String? name, String? currencySymbol, Map<String, dynamic>? evmInfo, String? solanaVersion, String? solanaCluster, String? bitcoinChain, int? bitcoinBlocks})
const
RpcTestResult.fromJson(Map<String, dynamic> json)
factory

Properties

bitcoinBlocks int?
Current block height.
final
bitcoinChain String?
chain field from getblockchaininfo (e.g. main, test, regtest, signet — or fork-specific names).
final
chainId int?
EVM chain id (from net_version). Null for non-EVM probes.
final
currencySymbol String?
Native currency symbol (e.g. ETH).
final
evmInfo Map<String, dynamic>?
Raw ethereum-lists chains.json record, if matched.
final
hashCode int
The hash code for this object.
no setterinherited
isBitcoin bool
no setter
isEvm bool
no setter
isSolana bool
no setter
name String?
Human-readable chain name (e.g. Ethereum Mainnet) when the id is in the built-in registry.
final
rpc String
Echoed RPC URL that was tested.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solanaCluster String?
Named cluster resolved from getGenesisHash: mainnet-beta, devnet, testnet, or unknown.
final
solanaVersion String?
solana-core version string (from getVersion).
final
type String
Chain family the probe targeted: evm, solana, or bitcoin.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited