BitSharper.Wallet.SendCoins C# (CSharp) Méthode

SendCoins() public méthode

Sends coins to the given address, via the given Peer. Change is returned to the first key in the wallet.
If there was a problem broadcasting the transaction.
public SendCoins ( Peer peer, Address to, ulong nanocoins ) : Transaction
peer Peer The peer to send via.
to Address Which address to send coins to.
nanocoins ulong How many nanocoins to send. You can use Utils.ToNanoCoins() to calculate this.
Résultat Transaction
        public Transaction SendCoins(Peer peer, Address to, ulong nanocoins)
        {
            lock (this)
            {
                var tx = CreateSend(to, nanocoins);
                if (tx == null) // Not enough money! :-(
                    return null;
                peer.BroadcastTransaction(tx);
                ConfirmSend(tx);
                return tx;
            }
        }

Same methods

Wallet::SendCoins ( PeerGroup peerGroup, Address to, ulong nanocoins ) : Transaction