Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

TxEVM Overview

TxEVM adds Cancun smart contracts to TxFlow. It runs on the same L1 as TxCore, the order books, margin, and risk engine, so contracts can hold Core assets and read Core prices without a second chain or an external oracle.

wallets · Foundry · dapps · indexersPOST /exchangesigned Core actions/evmEthereum JSON-RPCTxFlow L1 · one Tx-BFT consensus · one commit pathTxCoreorder books · marginoracles · spot accountsTxEVMCancun contractslinked assets as ERC-20stransfersCoreRead · pricesCoreWriter · soonCore commits · in each: Core txs first, then EVM txsEVM block N · sealed, finalEVM block N+15 Core commits = 1 EVM block, about every 0.25 s
TxCore and TxEVM share one consensus and one commit path. Linked assets transfer both ways, contracts read Core prices through CoreRead, and CoreWriter (coming soon) will let contracts act on Core. Every five Core commits seal one EVM block.
  • One chain, two environments. TxCore and TxEVM are ordered by the same Tx-BFT consensus in one commit path; there is no separate EVM sequencer. TxEVM follows Cancun without blobs, so Ethereum tooling works over JSON-RPC.
  • Blocks. Five Core commits form one EVM block, about every 0.25 s. Within each commit, Core transactions run before EVM transactions. A sealed block is final.
  • Transfers. Each linked Core spot asset is an ERC-20 on TxEVM. It is the same asset on both ledgers, not a wrapped claim. See Transfers.
  • CoreRead. Contracts read mark price, oracle price, and best bid/ask from the Core commit they execute in. See CoreRead.
  • CoreWriter (coming soon). Contracts will submit Core actions such as placing and canceling orders. Until then, Core orders go through the Exchange API.

Access requirements

To send transactions on testnet, an address needs:

  1. At least $100 in total equity on TxFlow mainnet at the same address (perps, spot, vault, and outcome accounts combined), or a whitelisted address. Every eth_sendRawTransaction is checked; read methods are open to everyone. See Deposits & Withdrawals to fund a mainnet account, or reach out in our Discord to request whitelisting.
  2. Spot USDC on TxCore testnet to pay gas. The testnet faucet credits the perp account; move USDC to spot with tokenSend (perp → spot).
  3. A TxCore account at the receiving address to move assets from TxEVM back to TxCore. Transfers to an address without one are not credited.

Testnet at a glance

Chain ID25110
RPChttps://testnet-api.txflow-testnet.xyz/evm (HTTP), wss://testnet-api.txflow-testnet.xyz/evm (WebSocket)
Explorerscanner.txflow-testnet.xyz
EVM versionCancun, without blobs
Block timeAbout 0.25 s. A sealed block is final; there are no reorgs.
GasPaid in USDC from TxCore spot. About 0.002 USDC per 100,000 gas at the floor price. Transactions must have value = 0. See Gas.
Gas limit per transaction10,000,000
USDC on TxEVMtxUSDC, 0x2100000000000000000000000000000000000001, 6 decimals
USDC system address0x2000000000000000000000000000000000000001
TxCore → TxEVMcoreToEvmSend from spot. Fee 0.004 USDC at the floor price; minimum 1 USDC.
TxEVM → TxCoreERC-20 transfer to the system address. No Core fee; minimum 1 USDC.
CoreReadMark price, oracle price, best bid/ask, and Core block number, for live perps. See CoreRead.

Get started

  1. Use an address with at least $100 in total equity on TxFlow mainnet, or request whitelisting in our Discord. A newly generated key does not meet the requirement on its own.
  2. Claim testnet USDC from the faucet (Try Testnet) and move it to spot with tokenSend.
  3. Add the network to your wallet or tool with chain ID 25110 and the RPC URL above.
  4. Deploy and call contracts as on any EVM chain; see the Foundry example in JSON-RPC. To hold txUSDC on TxEVM, transfer it with coreToEvmSend.

Roadmap

TxEVM launches on testnet first, then on mainnet. Until the platform token launches (TGE), gas is paid in USDC; after TGE it is paid in the platform token.

StageGasWhat changes
TestnetUSDC, from TxCore spotDeploy contracts, move USDC both ways, read Core prices with CoreRead. Sending transactions requires at least $100 in total equity on TxFlow mainnet or a whitelisted address.
Mainnet, before TGEUSDC, from TxCore spotThe same features on mainnet.
After TGEPlatform token, standard EIP-1559The platform token becomes the native balance and moves between TxCore and TxEVM. Transactions may carry value. Core → EVM transfer fees stay in USDC.

The switch to the platform token happens at an EVM block boundary as part of a TxCore upgrade, announced in advance. See Switching from USDC to Native.

CoreWriter is coming soon; its stage will be announced when it is ready.

Next

PageFor
TransfersMoving assets between TxCore and TxEVM
GasHow transactions are charged, before and after TGE
JSON-RPCSending transactions, supported methods, errors
CoreReadReading Core prices from contracts
ContractsDeployed testnet addresses, including Uniswap v4
Exchange APISigned Core actions, including coreToEvmSend