How to Use ITX on Ethereum & Polygon: A Step-by-Step Guide

Published on: 03.11.2021

UPDATE: ITX is now available on Polygon! It’s as easy as 1, 2, 3…

1. Enable Polygon in your account – this will be enabled for all projects. For more information click here

2. Do nothing for ITX! They have automatically enabled ITX for all of your projects. See below for more details of how to enable/disable

3. See below for how to use ITX and it really is as easy as that! The Gas Tank address (0x015C7C7A7D65bbdb117C573007219107BD7486f9) on Polygon is the same as all other networks and all other parts of the process are the same. All you need to do is enable both and hit the Polygon endpoints!

Pricing wise, they have priced it the same as Etherum Mainnet: gas used * 20 gwei

PLEASE NOTE: This is in Alpha mode and we look forward to hearing your feedback. Enjoy!

Infura Transactions (ITX) is the simplest way to send transactions on Ethereum and as of Nov. 1, the Polygon network. ITX handles all edge cases for transaction delivery and takes care of getting transactions mined while removing the need for developers to deal with the complexities around gas management and checking that your transaction is not dropped. It also allows end users of your dapp to send transactions without holding ETH.

If you wish to use the service to perform on-chain activities, such as allow users to transact with your dapp or deploy a new contract, you will send a signed relay request using a specific method, which instructs the ITX service to relay your request as a transaction on the Ethereum blockchain.

Currently in public beta, it is automatically enabled ITX within your projects. Should you wish to disable, please go to your project settings and disable using the toggle as pictured below:

If you wish to add the three methods for the ITX service to your API request method allow list, please go to your project security settings and add them there as pictured below.

Please note: if no methods are in this list, they are all allowed by default.

Please read the documentation for instructions on how to set up the ITX provider, create a signer account and check your ITX gas tank, and for copyable code snippets.

  1. On-chain deposit. Generate a private key and deposit some ETH with Infura’s on-chain deposit contract itx.eth (0x015C7C7A7D65bbdb117C573007219107BD7486f9). This action credits your ITX gas tank with the corresponding amount of ETH (after 10 block confirmations). Your ITX gas tank will be used to pay gas fees for the transaction to be mined. You will use your private key anytime you authorize spending from your ITX gas tank (i.e. when relaying a transaction).

Please refer to this resource for a link to a full script to make a deposit.

2. Send a relay request. You send a transaction relay request to your usual Infura endpoint using the relay_sendTransaction RPC call. ITX will first check if you have sufficient balance, then lock a portion of your funds and relay the transaction on your behalf to the Ethereum network.

3. Transaction mined and balance deducted. ITX will periodically increase the gas price and republish your transaction according to a predefined escalation schedule, in an attempt to minimize both confirmation time and final gas price paid. As soon as the transaction is mined and becomes part of the blockchain, the cost of the transaction which includes the network fee (gas price * gas used) + the ITX fee, will be subtracted from your gas tank balance. You can check your new balance using the relay_getBalance RPC call.

You have just sent a relay request via the ITX service. A full code sample is available in our demo repository.

For more information, please refer to the documentation which goes into more detail.
Please also visit the community where you can ask questions or report bugs. You can also use the support function to submit a ticket and receive an answer.

SOURCE: https://blog.infura.io/how-to-use-itx-step-by-step-guide/?utm_content=185789511&utm_medium=social&utm_source=twitter&hss_channel=tw-761372197298528256

Market Stats:
BTC Dominance: 59.59%(-0.13%/24h)
ETH Dominance: 12.45%(-0.26%/24h)
Defi Market Cap: $85.27B(-13.51%/24h)
Total Market Cap: $3029.85B(+3.57%/24h)
Total Trading Volume 24h: $196.06B(-13.72%/24h)
ETH Market Cap: $377.51B
Defi to ETH Ratio: 22.59%
Defi Dominance: 2.69%
Altcoin Market Cap: $1224.47B
Altcoin Volume 24h: $120.29B
Total Cryptocurrencies: 32221
Active Cryptocurrencies: 10060
Active Market Pairs: 89359
Active Exchanges: 760
Total Exchanges: 9578
BTC: 91265.55$(-0.17%/1H)
ETH: 3132.54$(0.6%/1H)
AVAX: 34.1$(1.8%/1H)
BNB: 623.29$(0.27%/1H)
MATIC: 0.38$(0.53%/1H)
FTM: 0.72$(1.72%/1H)
ADA: 0.75$(2.56%/1H)
DOT: 5.22$(0.98%/1H)
UNI: 8.81$(0.94%/1H)
CAKE: 1.86$(0.6%/1H)
SUSHI: 0.76$(0.79%/1H)
ONE: 0.01$(0.71%/1H)