But when I try to relay a transaction using ITX, it says insufficient funds, because the gas tank is still empty. What happened? Any tips on how to get that 1ETH credited to my gas tank?
I see that many other transaction are of type Absolute Top Up and Relative Top Up. Do I need to be using one of those methods instead? Are there any docs?
Thank for your reply, but I used the code in the examples to carry out the gas tank funding and then the gas tank says it has zero balance. In order words, the example code in the docs does not work. Are there any other docs or troubleshooting docs that could help me?
It always returns 0. But with your command line version, I get the right balance – thanks! And transactions appear to be going through now, which is great. I wonder if there is some delay between funding the gas tank and being able to send?
There is a bit of a delay sometimes, until seeing the gas tank balance, it shouldn’t be too high though. Btw in regards to that code snippet, it looks like the ethers send method acts weird, I’ve opened https://github.com/ethers-io/ethers.js/issues/2867
Thanks! Yes, transactions are being relayed and completed successfully, but somehow it never transfers anything – just 0 ether transactions. Any idea what might be wrong here?
const iface = new ethers.utils.Interface(["function transfer(address from, address to, uint256 amount)"]);
const data = iface.encodeFunctionData("transfer", [
process.env.FAUCET_ID,
'0xbA8E99e7e5C844f434086d70bdd2BBb9f43816a6',
ethers.utils.parseEther(".00003").toNumber()
]);
" ITX supports any type of transaction that doesn’t directly carry Ether (i.e. whose value field is set to 0 ). You can use it for deploying your own contracts or calling arbitrary contract methods, and you can also use it for enabling your users to interact with your Dapp, even if they don’t hold any Ether. However, you cannot use ITX to send Ether without the intermediation of a wallet contract."
Oh, that explains quite a bit. Do you happen to know of an example contract that I can deploy so that it would allow me to actually complete sending ethers via ITX?