Exemple #1
0
        /// <exception cref="ErrorResponseException"/>
        /// <exception cref="UnknownResponseException"/>
        public async Task <WalletModel> CreateWalletAsync()
        {
            var response = await _api.CreateWalletAsync();

            WalletResponse wallet = ConvertToOrHandleErrorResponse <WalletResponse>(response);

            return(new WalletModel(wallet.PublicAddress));
        }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object CreateWallet(this IBlockchainSignServiceAPI operations)
 {
     return(operations.CreateWalletAsync().GetAwaiter().GetResult());
 }