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

CreateSend() private méthode

Statelessly creates a transaction that sends the given number of nanocoins to address. The change is sent to the first address in the wallet, so you must have added at least one key.
This method is stateless in the sense that calling it twice with the same inputs will result in two Transaction objects which are equal. The wallet is not updated to track its pending status or to mark the coins as spent until confirmSend is called on the result.
private CreateSend ( Address address, ulong nanocoins ) : Transaction
address Address
nanocoins ulong
Résultat Transaction
        internal Transaction CreateSend(Address address, ulong nanocoins)
        {
            lock (this)
            {
                // For now let's just pick the first key in our keychain. In future we might want to do something else to
                // give the user better privacy here, eg in incognito mode.
                Debug.Assert(Keychain.Count > 0, "Can't send value without an address to use for receiving change");
                var first = Keychain[0];
                return CreateSend(address, nanocoins, first.ToAddress(_params));
            }
        }

Same methods

Wallet::CreateSend ( Address address, ulong nanocoins, Address changeAddress ) : Transaction