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
name
stringThe name of the network.
nodeUrl
stringThe endpoint for the full node.
indexerUrl
stringThe endpoint for the indexer.
faucetUrl
stringThe endpoint for the faucet.
proverUrl
stringpepperUrl
stringchainId
intThe 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