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));
}
}