validateKineticSdkConfig function
Implementation
KineticSdkConfig validateKineticSdkConfig(KineticSdkConfig sdkConfig) {
if (!sdkConfig.endpoint.startsWith('http')) {
throw Exception('validateKineticSdkConfig: the endpoint should start with http or https.');
}
sdkConfig.commitment ??= Commitment.confirmed;
sdkConfig.endpoint = sdkConfig.endpoint.replaceAll(RegExp(r'\/$'), '');
return sdkConfig;
}