TxEVM Gas
TxEVM meters execution in gas like any EVM chain. What differs is how gas is paid. Today the fee is charged in USDC on your TxCore spot balance. After the platform token launches, TxEVM switches to standard EIP-1559 fees paid from the native balance.
Two gas modes
| USDC mode (current) | Native mode (coming soon) | |
|---|---|---|
| Fee paid in | USDC, debited from TxCore spot | Native token, from the EVM balance |
| Block base fee | Always 0 | EIP-1559, with a floor |
| Fee bid in the transaction | Accepted but ignored | Standard EIP-1559 bid |
Transaction value | Must be 0 | Allowed |
| Price query | txflow_usdcGasPrice | eth_gasPrice |
The mode is a network-wide setting. It changes only at an EVM block boundary, so every transaction in one block uses the same mode.
USDC mode
Sending a transaction
Sign an ordinary EIP-1559 (or legacy) transaction. Two rules apply:
valuemust be0. The native balance has no value yet and cannot be moved. A transaction with non-zerovalueis refused withvalue … is not allowed.- The fee fields do not matter.
maxFeePerGas,maxPriorityFeePerGas, andgasPriceare accepted at any value and never charged. Wallet defaults work as-is.
The signer pays. Its TxCore spot account must hold enough available USDC to cover the transaction's gasLimit at the current price; otherwise the transaction is refused with insufficient USDC for gas. Perp balances are not used.
How the fee is computed
fee (USDC wei) = ceil(gas_used × USDC_gas_price / 1_000_000)USDC_gas_priceis in USDC wei (6 decimals) per million gas. The floor is20_000, which is 0.02 USDC per million gas.- Admission checks the balance against
gasLimit. The charge uses the actualgas_used, so an overestimatedgasLimitcosts nothing extra. - The fee is debited from TxCore spot when the block seals. The receipt's standard
effectiveGasPriceis0, so wallets show a zero fee. The amount actually charged is in the receipt's extra fieldusdcGasFee, in USDC wei.
Example at the floor price: a transaction that uses 100,000 gas costs ceil(100_000 × 20_000 / 1_000_000) = 2,000 USDC wei = 0.002 USDC.
How the price moves
The USDC gas price follows the EIP-1559 rule against each EVM block's gas target (half the block gas limit), with a gentler step than Ethereum: at most 0.25% per block. It rises when blocks run above target and falls back toward the floor when they run below.
RPC methods
| Method | USDC mode returns |
|---|---|
txflow_usdcGasPrice | Current USDC gas price, in USDC wei per million gas |
eth_gasPrice | 0 |
eth_maxPriorityFeePerGas | 0 |
eth_feeHistory | Base fee 0 for every block |
eth_estimateGas | Gas units, as on any EVM chain |
eth_getTransactionReceipt | effectiveGasPrice 0, plus usdcGasFee with the USDC charged |
To quote a fee before sending: eth_estimateGas × txflow_usdcGasPrice / 1,000,000, rounded up.
Notes for contract developers
block.basefeeandtx.gaspriceread0in USDC mode. Do not use them for pricing, refunds, or anti-spam logic.msg.valueis always0, sopayablefunctions cannot receive native value yet.- Do not hard-code a zero gas price in scripts or relayers. It stops working when Native mode starts.
Native mode
In Native mode the platform token becomes TxEVM's native balance. Fees follow standard EIP-1559, paid from the signer's EVM balance, and eth_gasPrice returns a real price. Transactions may carry value. The token moves between TxCore and TxEVM the same way other linked assets do (see Transfers).
Switching from USDC to Native
The switch is part of a network upgrade on TxCore. No action on TxEVM triggers it, and the activation height will be announced in advance.
- The open block finishes in USDC mode. The switch never happens mid-block. Transactions in the block that is open at the upgrade are charged in USDC.
- The next block opens in Native mode. When it opens, the platform token's full supply is placed on its system address on TxEVM. From then on, the token can move between TxCore and TxEVM as the native balance.
- Every later transaction pays in the native token. Its
maxFeePerGasmust be at least the block's base fee, and the signer's EVM balance must covergasLimit × maxFeePerGas + value. USDC is no longer charged for EVM transactions.
What changes for you after the switch:
| Before | After | |
|---|---|---|
| Paying for a transaction | Spot USDC on TxCore | Native balance on TxEVM. Move the platform token to TxEVM first with coreToEvmSend. |
| A transaction signed with a zero fee bid | Accepted | Refused with max fee per gas … is below the next block base fee |
eth_gasPrice, effectiveGasPrice | 0 | Real values |
usdcGasFee in receipts | Present | Absent |
| Core → EVM credit fee | USDC on TxCore | Unchanged: still USDC on TxCore |
To be ready for the switch, take fee bids from eth_gasPrice / eth_feeHistory rather than hard-coding them, and do not assume value is always 0.
Next
| Page | For |
|---|---|
| Overview | Access requirements, testnet parameters, roadmap |
| Transfers | Moving USDC between TxCore spot and TxEVM |
| JSON-RPC | Sending transactions and the RPC methods above |
| Try Testnet | Faucet and account setup |