I want to send a TakeOrder, I use the function of your c# bot :
internal async Task<TransactionReceipt> TakeOrder(Order order, BigInteger amount)
{
var funvtionInput = new object[] {
order.TokenGet,
order.AmountGet.Value,
order.TokenGive,
order.AmountGive.Value,
order.Expires,
order.Nonce,
order.User,
order.V,
order.R.HexToByteArray(),
order.S.HexToByteArray(),
amount
};
var fnTrade = EtherDeltaContract.GetFunction("trade");
var data = fnTrade.GetData(funvtionInput);
var txCount = await Web3.Eth.Transactions.GetTransactionCount.SendRequestAsync(Config.User);
var encoded = Web3.OfflineTransactionSigner.SignTransaction(Config.PrivateKey, Config.AddressEtherDelta, amount,
txCount, Config.GasPrice, Config.GasLimit, data);
var txId = await Web3.Eth.Transactions.SendRawTransaction.SendRequestAsync(encoded.EnsureHexPrefix());
var receipt = await Web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(txId);
return receipt;
}
But I have the error : insufficient funds for gas * price + value.
I have funds at my wallet. I have enough funds deposited to smart contract.
I don't understand why I have these issue
Hi,
I want to send a TakeOrder, I use the function of your c# bot :
But I have the error : insufficient funds for gas * price + value. I have funds at my wallet. I have enough funds deposited to smart contract. I don't understand why I have these issue