These are chat archives for Nethereum/Nethereum

13th
Apr 2018
Juan Blanco
@juanfranblanco
Apr 13 2018 08:22
@Pzixel thanks can you add an issue
@ShahbazyanKhoren can you provide an example
Psilon
@Pzixel
Apr 13 2018 09:03
@juanfranblanco Nethereum/Nethereum#315
Juan Blanco
@juanfranblanco
Apr 13 2018 09:22
nice thanks
good start
Psilon
@Pzixel
Apr 13 2018 09:32
You're welcome
TarrahArshad
@TarrahArshad
Apr 13 2018 12:45
@juanfranblanco i have this error when i try send transaction token
"replacement transaction underpriced"
TarrahArshad
@TarrahArshad
Apr 13 2018 18:45

@juanfranblanco when i add gasprice and gas for transfer token i get problem tx never found on blockchain and transfer result give us tx but transfer token is fail.
// get estimate

            var gas = await transferHandler.EstimateGasAsync(transactionMessage, txtTokenAddress.Text);

            transactionMessage.Gas = gas;
            transactionMessage.GasPrice = (BigInteger)gasprice ;

and my contractmessage is

     [Function("transfer", "bool")]
    public class TransferFunction : ContractMessage
    {
        [Parameter("address", "_to", 1)]
        public string To { get; set; }

        [Parameter("uint256", "_value", 2)]
        public BigInteger TokenAmount { get; set; }


    }

i have 5k wallet for transfer tokens with low gas ex: 1-4 but , time is not important important is low gas.

this is my loop for transfer

    private async void button2_ClickAsync(object sender, EventArgs e)
    {
        try
        {
            decimal amount = Convert.ToDecimal(txtAmount.Text);

            foreach (var item in wallets)
            {
               // var th = new Thread();
                var res = await Task.Run(async () => Transfer(txtPrivateKey.Text, txtWalletAddress.Text, item.PublicAddress, amount, 0));

                if (res.Result != null)
                {
                    lblLog.Text += $" transfer {res.Result.Success} for {item.PublicAddress} amount {amount} tx {res.Result.Json} \n ";
                }

            }
        }catch(Exception ex)
        {
            lblLog.Text += $" error  {ex.Message}  \n ";
        }

    }
CryptoAlphaOne
@CryptoAlphaOne
Apr 13 2018 20:46
@TarrahArshad In the example that follows (https://nethereum.readthedocs.io/en/latest/Nethereum.Workbooks/docs/nethereum-hdwallet-infura-transfer/), how should I proceed to establish the GAS price