KineticSdkInternal constructor

KineticSdkInternal(
  1. KineticSdkConfig sdkConfig
)

Implementation

KineticSdkInternal(this.sdkConfig) {
  // Create the API Configuration
  apiConfig = ApiClient(basePath: sdkConfig.endpoint);
  sdkConfig.headers?.forEach((key, value) => apiConfig.addDefaultHeader(key, value));

  // Configure the APIs
  accountApi = AccountApi(apiConfig);
  airdropApi = AirdropApi(apiConfig);
  appApi = AppApi(apiConfig);
  transactionApi = TransactionApi(apiConfig);
}