Exemplo n.º 1
0
        public InProgress <bool> CreateBoolProgressFromTx(string txhash)
        {
            BaseFluent fl = new BaseFluent(this);

            fl.TxHash = txhash;
            return(new InProgress <bool>(new WaitForHash(fl)));
        }
Exemplo n.º 2
0
        public async Task <InProgress <bool> > SendAmountAsync(string recipientPublicKey, BigInteger amount, string payload = "", CancellationToken token = default(CancellationToken))
        {
            if (payload == null)
            {
                payload = "";
            }
            ValidatePrivateKey();
            BaseFluent c = new BaseFluent(this);

            Nonce++;
            await c.SignAndSendAsync(Client.CreateSpendTransaction(KeyPair.PublicKey, recipientPublicKey, amount, payload, Ttl, Nonce), token).ConfigureAwait(false);

            return(new InProgress <bool>(new WaitForHash(c)));
        }