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 Transfers

For how TxEVM fits next to TxCore, see the Overview. This page covers addresses, fees, and minimums. The Core → EVM action itself is documented under coreToEvmSend.

Linked assets

RoleAddress
System address0x20 followed by the Core asset index
ERC-20The asset's token contract on TxEVM, listed per asset

Example: USDC

Core nameUSDC
Core index1
Core / EVM decimals6 / 6 (scale factor 1)
System address0x2000000000000000000000000000000000000001
ERC-200x2100000000000000000000000000000000000001 (txUSDC)
Minimum transfer1 USDC (1_000_000 core wei)

Core → EVM

Use coreToEvmSend on POST /exchange. Debits your spot balance; the matching EVM credit lands when the open window seals. The recipient is always the sender.

Fees

Each credit is charged as a flat 200,000 gas at the current USDC gas price (see Gas for how the price is set). At the floor price that is 0.004 USDC.

Credits are limited to 10 per EVM block. When credits are queued, every full block of credits ahead multiplies the fee by 1 + 1/8, rounded up.

The fee is debited from spot USDC, falling back to perp USDC if spot is short. If the transferred asset is USDC itself, spot USDC must cover amount + fee.

You receive the full amount on the EVM; the fee is a separate USDC debit on Core.

Refusals

ConditionResult
Amount < per-asset minimumAction refused; nothing moves
Token not linked / EVM not activeAction refused
Insufficient USDC for the feeAction refused
EVM ERC-20 credit call fails at sealAmount stays on the Core system address; no EVM credit

EVM → Core

To move an asset back to Core, call transfer on its ERC-20 with the asset's system address as the recipient. For USDC, the system address is 0x2000000000000000000000000000000000000001.

  • No Core fee — you already paid EVM gas for the transfer tx.
  • Credited on Core spot in the sealing commit; spendable from the next Core commit.
  • Core credits the from address of the Transfer log, not the transaction signer. A contract that calls transferFrom(user, systemAddress, amount) credits the user.
  • The credited address must already have a Core account. Otherwise Core does not credit, and the amount stays on the system address.
  • Below the per-asset minimum (1 USDC for the example above): Core does not credit; the amount stays on the system address and is not retried.

Contract example

The contract below moves the caller's txUSDC to their Core spot balance. The caller first calls approve on txUSDC for this contract, then calls sendToCore.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
 
interface IERC20 {
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}
 
contract CoreDepositor {
    IERC20 constant TX_USDC = IERC20(0x2100000000000000000000000000000000000001);
    address constant USDC_SYSTEM_ADDRESS = 0x2000000000000000000000000000000000000001;
    uint256 constant MIN_TRANSFER = 1_000_000; // 1 USDC, 6 decimals
 
    function sendToCore(uint256 amount) external {
        require(amount >= MIN_TRANSFER, "below minimum transfer");
        require(TX_USDC.transferFrom(msg.sender, USDC_SYSTEM_ADDRESS, amount), "transfer failed");
    }
}

The Transfer log has from = msg.sender, so Core credits the caller's spot balance in the commit that seals the block. The minimum check matters: an amount below the minimum still leaves the caller's EVM balance but is never credited on Core.

Next

PageFor
coreToEvmSendAction shape, signing, Try it
OverviewAccess requirements, testnet parameters, roadmap
GasUSDC gas price and how EVM transactions are charged
JSON-RPCSending EVM transactions, testnet requirement
SigningEIP-712 domain and envelope
Try TestnetFaucet and account setup