Modules

An in depth overview of the Core, DVM & EVM Modules

MetaChain is an innovative layer that combines the best aspects of Bitcoin and Ethereum. The Core Module provides a solid and secure foundation, the DVM Module expands the platform's capabilities to encompass a wide range of UTXO features, and the EVM Module introduces the flexibility and versatility of Ethereum’s smart contract platform.

Together, these three modules form a harmonious and powerful system, making MetaChain a compelling choice for developers and users alike in the decentralized finance space.

web3 applications, such as NFT marketplaces, require a robust and flexible backend to handle various types of transactions and smart contracts. MetaChain's architecture is designed to facilitate this need, offering multiple endpoints (ex: RPC, API, Ocean REST Server) for seamless interaction.

How web3 Apps Interact with MetaChain

RPC (Remote Procedure Call)

  • Role: RPC allows for direct interaction with the MetaChain network.

  • For Developers: If your NFT marketplace requires real-time data or needs to execute complex transactions, RPC provides a direct line to the blockchain.

  • web3 Applications: Use RPC for tasks like querying account balances, sending transactions, or interacting with smart contracts.

API (Application Programming Interface)

  • Role: The API serves as a bridge between your application and MetaChain, offering a set of predefined methods for interaction.

  • For Developers: APIs are crucial for fetching data that doesn't need to be real-time but is essential for the functioning of your app, like historical price data or transaction history.

  • web3 Applications: APIs can be used for batch requests, data analytics, and integrating MetaChain features into your frontend.

Ocean REST Server

  • Role: The Ocean REST Server acts as a relayer for HTTP calls, making it easier to interact with MetaChain.

  • For Developers: This is particularly useful if you're looking to make RESTful calls from your application to the blockchain.

  • web3 Applications: Utilize the Ocean REST Server for tasks like asset listing, order matching, or any other feature that requires HTTP calls.

Real-World Example: NFT Marketplace

Let's continue with the original example of an NFT marketplace that allows users to mint, buy, and sell NFTs. Here's how it could interact with MetaChain:

  1. Minting NFTs: When a user wants to mint an NFT, the marketplace could use RPC to directly interact with the smart contract responsible for NFT creation on MetaChain.

  2. Listing NFTs: The marketplace could use the API to fetch all the NFTs minted on MetaChain and display them in a user-friendly manner.

  3. Transaction Processing: When a user decides to buy an NFT, the transaction could be relayed via the Ocean REST Server, ensuring a smooth and secure transfer of assets.

  4. Real-time Updates: For features like live auctions, RPC can be used for real-time updates, ensuring that users get immediate notifications on bid changes.

MetaChain's diverse set of endpoints like RPC, API, and Ocean REST Server offer a comprehensive toolkit for developers building web3 applications. This makes MetaChain not just a blockchain layer but a complete ecosystem for decentralized applications.

MetaChains Operating Structure

Last updated