Table of Contents

Class AptosConfig

Namespace
Aptos
Assembly
Aptos.dll

Instantiate a new instance of the AptosConfig class. This class is used to configure the AptosClient, its dependencies, and endpoints. See the Networks class for a predefined list of networks.

public class AptosConfig
Inheritance
AptosConfig
Inherited Members

Constructors

AptosConfig(NetworkConfig?, Dictionary<string, string>?, RequestClient?)

Instantiate a new instance of the AptosConfig class. This class is used to configure the AptosClient, its dependencies, and endpoints. See the Networks class for a predefined list of networks.

public AptosConfig(NetworkConfig? networkConfig = null, Dictionary<string, string>? headers = null, RequestClient? requestClient = null)

Parameters

networkConfig NetworkConfig

The endpoints and chain ID for the network. If none are provided, Devnet is used.

headers Dictionary<string, string>

Default headers to be added to all requests.

requestClient RequestClient

The request client used to make HTTP requests. If none is provided, a default client is used.

Fields

Headers

public readonly Dictionary<string, string> Headers

Field Value

Dictionary<string, string>

NetworkConfig

public readonly NetworkConfig NetworkConfig

Field Value

NetworkConfig

RequestClient

public readonly RequestClient RequestClient

Field Value

RequestClient

Methods

GetRequestUrl(ApiType)

public string GetRequestUrl(ApiType apiType)

Parameters

apiType ApiType

Returns

string