Technical Docs
Dao Docs
  • ✨Concepts
    • What is Connext?
    • How It Works
      • Architecture
      • Transaction Lifecycle
    • Background
      • What is a Bridge?
      • Modular Bridges
      • Message Verification
    • Use Cases
    • FAQ
  • 🤝Developers
    • Introduction
    • Quickstart
    • Guides
      • Frontend
      • SDK
      • Estimating Fees
      • Tracking xCalls
      • Authentication
      • Handling Failed xCalls
      • Nested xCalls
    • Reference
      • SDK
        • SdkShared
        • SdkBase
        • SdkPool
        • SdkRouter
        • SdkUtils
        • Types
      • Contracts
        • Calls
        • Routers
        • Stableswap
      • Subgraphs
        • Entities
        • Sample Queries
        • Subgraph Resources
      • Integration
        • Adapters
        • Receivers
    • Examples
      • Simple Bridge
      • Authenticated Greeter
      • Ping Pong
  • 📦Usecases
    • xERC20
      • Setup Overview
      • Detailed Setup Guide
      • Connext and xERC20s
    • Chain Abstraction
      • Chain Abstraction Guide
    • xGovernance
  • 📜Resources
    • Subgraphs
    • Deployments
  • 🖥️Routers
    • Basics
    • Spinning Up
    • Guides
      • Community Guides
      • Providing Liquidity
      • Managing Your Router
      • Security
    • Reference
      • Configuration
Powered by GitBook
On this page
  • Where can I find the the supported chains, assets, domainIDs, and Connext contracts?
  • What are token "flavors"?
  • How do I find the canonical details of a token?
  • What if I just want to test the destination-side target function?
  • Do I need to do anything with the AMB contracts?
Edit on GitHub
  1. Concepts

FAQ

PreviousUse CasesNextIntroduction

Last updated 1 year ago

Where can I find the the supported chains, assets, domainIDs, and Connext contracts?

An updated list can be found in Deployments.

What are token "flavors"?

How do I find the canonical details of a token?

Example:

  • The token of interest is TestERC20 (0x7ea6eA49B0b0Ae9c5db7907d139D9Cd3439862a1) on Goerli. We want to figure out its canonical domainId and tokenId.

  • Find the Connext contract address on Goerli from here, click its link to open up the Diamond Inspector on Louper.

  • Find the TokenFacet and click the "Read" button.

  • Select the getTokenId method and input the TestERC20 address to obtain its canonical details.

  • Alternatively, you can call getTokenId using a tool like Foundry's cast to read from the contract.

    cast call --chain goerli 0x99A784d082476E551E5fc918ce3d849f2b8e89B6 "getTokenId(address)(uint32,bytes32)" "0x7ea6eA49B0b0Ae9c5db7907d139D9Cd3439862a1" --rpc-url <goerli_rpc_url>

    Returns:

    1735353714 # the canonical domainId is Goerli
    0x0000000000000000000000007ea6ea49b0b0ae9c5db7907d139d9cd3439862a1 # the canonical bytes32 tokenId

What if I just want to test the destination-side target function?

If there’s no token transfer involved then just set transactingAssetId: address(0) and amount: 0.

Do I need to do anything with the AMB contracts?

No, you do not need to deploy or even interact with AMB contracts directly.

The canonical domainId and tokenId of a token can be found by calling the function of TokenRegistry.

✨
getTokenId