/// <inheritdoc /> public async Task <IsValidResponse> ValidateWalletPasswordAsync(NanoWallet wallet) { return(await PostActionAsync <IsValidResponse>(new { Action = ActionTypes.PasswordValid, Wallet = wallet.Wallet })); }
/// <inheritdoc /> public async Task <IsValidResponse> UnlockWalletAsync(NanoWallet wallet, string password) { return(await PostActionAsync <IsValidResponse>(new { Action = ActionTypes.PasswordEnter, Password = password, Wallet = wallet.Wallet })); }
/// <inheritdoc /> public async Task <NanoAccount> CreateAccountAsync(NanoWallet wallet, bool work = true) { return(await PostActionAsync <NanoAccount>(new { Action = ActionTypes.AccountCreate, Wallet = wallet.Wallet, Work = work })); }
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 })); }
/// <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 })); }