Class ThirdwebClient
- Namespace
- Thirdweb
- Assembly
- Thirdweb.dll
Represents a client for interacting with the Thirdweb API.
public class ThirdwebClient
- Inheritance
-
ThirdwebClient
- Inherited Members
Properties
Api
Low-level interaction with https://api.thirdweb.com Used in some places to enhance the core SDK functionality, or even extend it
public ThirdwebApiClient Api { get; }
Property Value
ClientId
Gets the client ID.
public string ClientId { get; }
Property Value
HttpClient
Gets the HTTP client used by the Thirdweb client.
public IThirdwebHttpClient HttpClient { get; }
Property Value
Methods
Create(string, string, string, TimeoutOptions, IThirdwebHttpClient, string, string, string, string, Dictionary<BigInteger, string>)
Creates a new instance of ThirdwebClient.
public static ThirdwebClient Create(string clientId = null, string secretKey = null, string bundleId = null, TimeoutOptions fetchTimeoutOptions = null, IThirdwebHttpClient httpClient = null, string sdkName = null, string sdkOs = null, string sdkPlatform = null, string sdkVersion = null, Dictionary<BigInteger, string> rpcOverrides = null)
Parameters
clientIdstringThe client ID (optional).
secretKeystringThe secret key (optional).
bundleIdstringThe bundle ID (optional).
fetchTimeoutOptionsTimeoutOptionsThe fetch timeout options (optional).
httpClientIThirdwebHttpClientThe HTTP client (optional).
sdkNamestringThe SDK name (optional).
sdkOsstringThe SDK OS (optional).
sdkPlatformstringThe SDK platform (optional).
sdkVersionstringThe SDK version (optional).
rpcOverridesDictionary<BigInteger, string>Mapping of chain id to your custom rpc for that chain id (optional, defaults to thirdweb RPC).
Returns
- ThirdwebClient
A new instance of ThirdwebClient.