Developer Documentation
  • What is CTEX?
  • Learn about CTEX Chain
    • Ctex Overview: vision, strategy and platform components
    • The Ctex Blockchain
      • Ctex Consensus Mechanism
      • Delegation and Staking with Validators
      • Ethereum (EVM) Compatibility and Smart Contracts
      • Boosting Ctex's Scalability
  • Empowering Global Payments with Ctex
  • Ctex Key Feature
  • Ctex Consensus
  • CTEX Clusters
    • CTEXChain Mainnet
    • CTEXChain Testnet
    • CLI Command
    • Ctex Faucet
    • Audit Report
  • Integrating with Metamask
    • Add Ctex Chain Network to Metamask
    • Config Custom Token
    • How to Reset Metamask Wallet
  • CTEX Exclusive Product
  • Ctex Coin
    • Technical
    • Utility
    • Distribution
  • Run Master Node
  • Developer Guide
    • Token Standard
      • CTEX-721 Token
      • CTEX-20 Token
  • APIs
    • accounts
    • blockNumber
    • call
    • chainId
    • estimateGas
    • gasPrice
    • getBalance
    • getBlockByHash
    • getBlockByNumber
    • getBlockTransactionCountByHash
    • getBlockTransactionCountByNumber
    • getCode
    • getLogs
    • getStorageAt
    • getTransactionByBlockHashAndIndex
    • getTransactionByBlockNumberAndIndex
    • getTransactionByHash
    • getTransactionCount
    • getTransactionReceipt
    • getUncleByBlockHashAndIndex
    • getUncleByBlockNumberAndIndex
    • getUncleCountByBlockHash
    • getUncleCountByBlockNumber
    • getWork
    • hashrate
    • mining
    • protocolVersion
    • sendRawTransaction
    • submitWork
    • syncing
    • net_listening
    • net_peerCount
    • net_version
    • web3_clientVersion
    • parity_nextNonce
    • Filter methods
    • newFilter
    • newBlockFilter
    • getFilterChanges
    • uninstallFilter
  • Depolying CTEX chain
    • Using Remix
    • Using Truffle
    • Using Hardhat
    • Using Replit
    • Using Alchemy
  • Whitepaper
  • Technical Paper
  • Yellow Paper
Powered by GitBook
On this page
  1. Learn about CTEX Chain
  2. The Ctex Blockchain

Ethereum (EVM) Compatibility and Smart Contracts

In addition to processing transactions, CTEX nodes also store and maintain the code and current state of smart contracts. Smart contracts, which are essentially persistent scripts, allow anyone to interact with them by sending transactions that invoke their functions. These contracts have their own accounts, capable of holding token balances and executing various operations.

Execution Environment: Virtual Machine

Smart contracts are executed within a specialized environment known as a 'virtual machine' (VM) on network nodes. The CTEX blockchain is currently designed to be highly compatible with Ethereum's virtual machine (EVM). This compatibility ensures that any smart contract or decentralized application (dApp) deployable on Ethereum or other EVM-compatible chains will also operate seamlessly on CTEX.

Interoperability and Compatibility

One notable advantage of CTEX's EVM compatibility is that it supports widely-used standards such as CTEX20 and CTEX721. This compatibility means that smart contracts adhering to these standards, along with any other EVM-compatible contracts, can be deployed on CTEX without requiring modifications to their code. This interoperability fosters a more inclusive and diverse ecosystem, enabling developers to leverage existing Ethereum-based applications and tools while benefiting from CTEX's enhanced features and capabilities.

PreviousDelegation and Staking with ValidatorsNextBoosting Ctex's Scalability

Last updated 1 year ago