• Buy and Sell
      Easily buy and sell crypto with your SGD or USD
      Markets
      View the latest crypto prices, volume, and data
      Opportunities
      Discover hot and new crypto

        Trading instruments

      • Convert
        Quick conversion, zero trading fees, no slippage
      • Spot
        Buy and sell crypto with ease
      Institutional home
      The world’s most powerful suite of crypto trading solutions
      APIs
      Seamless and ultra-low latency API connectivity​
      Broker Program
      Access world-class market depth with high commissions
      Managed Trading Sub-accounts
      Manage sub-accounts, trade easily and safely with more profits
      Historical market data
      Candlesticks, aggregate trades, order book data and more
      Institutional Insights
      Our latest institutional trading research, news, and more
      Learn
      Products
      Security of fundsStatusProof of ReservesOKX ProtectWeb3
      Others
      Campaign centerMy rewardsOKX VenturesTrade on TradingViewListing application
    • Support centerMy ticketsConnect with OKX
    Buy and Sell
    Markets
    Opportunities
    • Convert
    • Spot
    Institutional home
    APIs
    Broker Program
    Managed Trading Sub-accounts
    Historical market data
    Institutional Insights
    Learn
    Products
    Security of fundsStatusProof of ReservesOKX ProtectWeb3
    Others
    Campaign centerMy rewardsOKX VenturesTrade on TradingViewListing application
    Support centerMy ticketsConnect with OKX
    Download OKX app
  • Oracle
  • Gas Back
  • Subgraph
  • GitHub
  • Developer docs
Quick start
Core concepts
Nodes
Building modules
API
SDK
Smart contract
  • EVM smart contract
    • Deployment
      • Deploy with remix
      • Deploy with truffle
    • Contract verification
      • Verify contract using truffle
      • Verify contract using hardhat
      • Verify proxy contract
    • KIP standard
      • KIP20
    • Contract development FAQs
      • FAQ
  • WASM smart contract
    • Getting started
      • Overview
      • Wasm smart contract
      • OKTC Wasm instruction manual
    • Developer guides
      • CLI
      • CosmWasmJS
      • ByteCraft
      • VSCode and Cosmy Wasmy
    • Best practices
      • VMBridge
      • Bytecraft and Sylvia
    • FAQs
      • Wasm contract upgrade
      • Permissions management for wasm smart contracts
      • Pin codes
      • Contract tutorial
    Developer services
    OKTC solutions
    Resources

    Contract tutorial#

    • CosmWasm book
    • Sylvia book
     Pin codes
    Get gas back on OKTC 
    ©2017 - 2025 OKX.COM
    Language
    English简体中文
    Local currency
    USD
    More about OKX
    About usCandidate Privacy NoticeCareersContact usTerms of servicePrivacy noticeDisclosuresWhistleblower noticeLaw enforcementOKX app
    Products
    Buy cryptoConvertTradeAll cryptocurrenciesLearn
    Services
    APIHistorical market dataCEX fee scheduleListing application
    Support
    Support centerChannel verificationAnnouncementsConnect with OKX
    Buy crypto
    Buy USDTBuy USDCBuy BitcoinBuy EthereumBuy ADABuy SolanaBuy LitecoinBuy XRP
    Crypto calculator
    BTC to USDETH to USDUSDT to USDSOL to USDXRP to USD
    Trade
    BTC USDCETH USDCBTC USDTETH USDTSOL USDTXRP USDTBitcoin priceEthereum priceSolana priceXRP priceBitcoin price predictionEthereum price predictionXRP price predictionHow to buy cryptoHow to buy BitcoinHow to buy EthereumHow to buy Solana
    Trade on the go with OKX
    Register
    Scan to download OKX app
    Scan to download OKX app
    Community