Table of Contents

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 string

The name of the network.

nodeUrl string

The endpoint for the full node.

indexerUrl string

The endpoint for the indexer.

faucetUrl string

The endpoint for the faucet.

proverUrl string
pepperUrl string
chainId int

The 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

int

FaucetUrl

public readonly string? FaucetUrl

Field Value

string

IndexerUrl

public readonly string IndexerUrl

Field Value

string

Name

public readonly string Name

Field Value

string

NodeUrl

public readonly string NodeUrl

Field Value

string

PepperUrl

public readonly string? PepperUrl

Field Value

string

ProverUrl

public readonly string? ProverUrl

Field Value

string