Kaon
  • INTRODUCTION
    • What is Kaon?
    • Why Kaon?
    • Who Should Use Kaon?
    • Who Should Build On Kaon?
    • How Does it Work?
    • Terminology
  • QUICKSTART
    • Getting Started
    • 5-Minute Setup
    • Hello KAON!
  • CORE CONCEPTS
    • Fundamentals Overview
      • Unifying Bitcoin and Ethereum(EVM)
    • Cross-Chain Interactions
      • Bridge-less Token Transfers
      • Oracle-less Cross-chain Message
      • Cross-Chain Transaction Management
      • Gasless Operating Process
      • Bridge-less ERC cross-chain Transfers
    • BTC Transaction Lifecycle
      • BTC Locking and Mirroring
      • BTC Withdrawal
    • EVM Integrations
      • mirrorBTC and EVM Interactions
      • mirrorBTC Transfer To EVM Chain
      • Restore mirrorBTC From Wrap Process
      • Metamask and other Offchain EVM Wallets Support
    • Consensus Mechanisms
      • Kaon Chain Consensus (dPoS)
      • Cross-Chain BFT Consensus
      • Slashing Incidence Process
    • Key Innovations
  • NETWORK & TOOLS
    • Kaon Testnet
    • Kaon CLI
    • Network and Tools
  • GUIDES & TUTORIALS
    • Creating a Time-Locked Bitcoin Vault
Powered by GitBook
On this page
  1. CORE CONCEPTS
  2. EVM Integrations

Metamask and other Offchain EVM Wallets Support

PreviousRestore mirrorBTC From Wrap ProcessNextConsensus Mechanisms

Last updated 6 months ago

When a user sends a request from MetaMask or another EVM wallet, it undergoes a transformation process to ensure compatibility with the Kaon ecosystem:

  • Eth RPC Gate: Transforms EVM wallet requests into Bitcoin RPC 1.26 type requests and sends them to the Kaon Node. It may also compose additional information as needed. Also it provides transaction information in Ethereum format, ensuring compatibility and ease of use for MetaMask and other EVM wallets.

  • WebSockets Subscriptions: Provides WebSockets subscriptions for new events by wrapping ZMQ events from the Kaon node.

Support and Processing

  • Account Balance and Transaction Indexing: Each Kaon Masternode has the Account Balance Index and Transaction Index turned on to support balance requests and transaction composition based on RLP (Recursive Length Prefix) data.

  • RLP Processing Module: For RLP-type requests (sendrawtransaction calls such as sending money, deploying contracts, and executing contract methods), Kaon:

    1. Decodes the input.

    2. Validates the input and its parameters.

    3. Composes a UTXO transaction based on the input.

    4. Signs the transaction using Cascade Signature with the input RLP transaction as its basis.

  • Denomination Handling: Despite being a Bitcoin fork, Kaon supports a denomination with 18 zeros for the native token to align with EVM standards.

  • Complete EVM Integration: Kaon includes a complete EVM as part of its core.

  • Unified Gas Fees: Kaon composes gas fees and network bitcoin-type fees (based on priorities) to present a single gas fee to the user, making it hidden from the user.

  • Gas Price and Transaction Estimation: Methods for current gas price and gas transaction estimation work seamlessly to support EVM wallets.