CreateWalletAsync() public méthode

public CreateWalletAsync ( global request, Grpc.Core.CallOptions options ) : AsyncUnaryCall
request global
options Grpc.Core.CallOptions
Résultat AsyncUnaryCall
Exemple #1
0
 public async Task CreateWallet(string pubPassphrase, string privPassphrase, byte[] seed)
 {
     var client = new WalletLoaderService.WalletLoaderServiceClient(_channel);
     var request = new CreateWalletRequest
     {
         PublicPassphrase = ByteString.CopyFromUtf8(pubPassphrase),
         PrivatePassphrase = ByteString.CopyFromUtf8(privPassphrase),
         Seed = ByteString.CopyFrom(seed),
     };
     await client.CreateWalletAsync(request, cancellationToken: _tokenSource.Token);
 }