예제 #1
0
 /// <inheritdoc />
 public async Task <IsValidResponse> ValidateWalletPasswordAsync(NanoWallet wallet)
 {
     return(await PostActionAsync <IsValidResponse>(new
     {
         Action = ActionTypes.PasswordValid,
         Wallet = wallet.Wallet
     }));
 }
예제 #2
0
 /// <inheritdoc />
 public async Task <IsValidResponse> UnlockWalletAsync(NanoWallet wallet, string password)
 {
     return(await PostActionAsync <IsValidResponse>(new
     {
         Action = ActionTypes.PasswordEnter,
         Password = password,
         Wallet = wallet.Wallet
     }));
 }
예제 #3
0
 /// <inheritdoc />
 public async Task <NanoAccount> CreateAccountAsync(NanoWallet wallet, bool work = true)
 {
     return(await PostActionAsync <NanoAccount>(new
     {
         Action = ActionTypes.AccountCreate,
         Wallet = wallet.Wallet,
         Work = work
     }));
 }
예제 #4
0
 public async Task <BlockResponse> ReceiveAsync(NanoWallet wallet, NanoAccount nanoAccount, string block)
 {
     return(await PostActionAsync <BlockResponse>(new
     {
         Action = ActionTypes.Receive,
         Wallet = wallet.Wallet,
         Account = nanoAccount.Account,
         Block = block
     }));
 }
예제 #5
0
 /// <inheritdoc />
 public async Task <BlockResponse> SendAsync(NanoWallet wallet, NanoAccount sourceAddress, NanoAccount destinationAddress, NanoAmount amount)
 {
     return(await PostActionAsync <BlockResponse>(new
     {
         Action = ActionTypes.Send,
         Wallet = wallet.Wallet,
         Source = sourceAddress.Account,
         Destination = destinationAddress.Account,
         Amount = amount.Raw
     }));
 }