示例#1
0
        async Task ExecuteBecomeCashPointCommand()
        {
            var location = await Geolocation.GetLastKnownLocationAsync();

            MyLat  = location.Latitude;
            MyLong = location.Longitude;

            BigInteger latitude  = Nethereum.Util.UnitConversion.Convert.ToWei(MyLat);
            BigInteger longitude = Nethereum.Util.UnitConversion.Convert.ToWei(MyLong);



            var result = await accountsManager.BecomeCashPointAsync(DefaultAccountAddress, CashPointName, latitude, longitude, Phone, Rate, 2);

            await navService.DisplayAlert("Send Result", $"tx:{result}", "ok", "cancel");
        }