Class NetworkConfig
- Namespace
- Aptos
- Assembly
- Aptos.dll
The network configuration for an AptosConfig for all endpoints used by the AptosClient.
public class NetworkConfig
- Inheritance
-
NetworkConfig
- Inherited Members
Constructors
NetworkConfig(string, string, string, string?, string?, string?, int)
The network configuration for an AptosConfig for all endpoints used by the AptosClient.
public NetworkConfig(string name, string nodeUrl, string indexerUrl, string? faucetUrl = null, string? proverUrl = null, string? pepperUrl = null, int chainId = -1)
Parameters
namestringThe name of the network.
nodeUrlstringThe endpoint for the full node.
indexerUrlstringThe endpoint for the indexer.
faucetUrlstringThe endpoint for the faucet.
proverUrlstringpepperUrlstringchainIdintThe chain ID for the network. If -1, the chain ID is automatically retrieved from the full node.
Fields
ChainId
public readonly int ChainId
Field Value
FaucetUrl
public readonly string? FaucetUrl
Field Value
IndexerUrl
public readonly string IndexerUrl
Field Value
Name
public readonly string Name
Field Value
NodeUrl
public readonly string NodeUrl
Field Value
PepperUrl
public readonly string? PepperUrl
Field Value
ProverUrl
public readonly string? ProverUrl