MegaYours Docs
  • 🚀MegaYours
    • Extending your on chain data
  • 💾Megadata
    • Solana Integration
  • 🌎Yours Protocol
    • 🤔Getting Started
      • Setting up Your Project
      • Creating Your First Module
      • Creating & Minting Tokens
      • Composable Tokens
      • Making Your Tokens Interoperable
    • 💱Tokens
      • Types
      • Functions
      • Unique Identifier
    • 🧩Modules
      • 🔌Attaching Modules
      • 🌈Relationships
      • 🎭ERC1155
      • 📚Declaration
      • 👾External
    • 📄Metadata
    • 🔗Interoperability
    • 🔄Migration from Originals
      • FT3
      • Interfaces
      • Prototype
  • 👾Import Existing Tokens from any Chain
    • 🛰️Gamma Chain
  • 🔗Links
    • Github: Yours Protocol
Powered by GitBook
On this page

Was this helpful?

  1. Import Existing Tokens from any Chain

Gamma Chain

Register Contracts

Contracts can be added into the Gamma Chain by paying a fee in the Gamma Chain. By doing so, any dapps within the same cluster will be able to receive events regarding that NFT contract.

chr tx \
    --api-url <node_url> \
    --blockchain-rid <brid> \
    --ft-auth
    tokens.register_contract \
    <chain> \
    <contract> \
    <project_name> \
    <collection_name> \
    <block_height> \
    <type>

The transaction above registers a new token in the Gamma Chain with the arguments:

  1. chain: which blockchain the contract is on, available options are:

    1. ethereum

    2. polygon

    3. amoy

  2. contract: the address of the contract

  3. project_name: the name of the project, e.g. My Neighbor Alice

  4. collection_name: the name of the collection, e.g. ELLE Mot's d'Amore

  5. block_height: the block height the event was created

  6. type: the type of the contract, available options are:

    1. erc721

PreviousImport Existing Tokens from any ChainNextLinks

Last updated 6 months ago

Was this helpful?

👾
🛰️