postWalletAccountsWithHttpInfo method
Opens a named wallet account for the caller's org.
Opens a named wallet account for the caller's org. An account is a GROUPING of wallets, not a key or a balance: wallets are created under one and can be listed by it. The org is stamped by the server from the validated principal, so a request can never open an account in another tenant.
Note: This method returns the HTTP Response.
Parameters:
- CreateAccountIn createAccountIn (required):
Implementation
Future<Response> postWalletAccountsWithHttpInfo(CreateAccountIn createAccountIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/wallet/accounts';
// ignore: prefer_final_locals
Object? postBody = createAccountIn;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}