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
NetworkConfigThe 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
RequestClientThe 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
NetworkConfig
public readonly NetworkConfig NetworkConfig
Field Value
RequestClient
public readonly RequestClient RequestClient
Field Value
Methods
GetRequestUrl(ApiType)
public string GetRequestUrl(ApiType apiType)
Parameters
apiType
ApiType