Multichain
  • Getting Started
    • Introduction
      • Supported Chains
      • Supported Tokens
    • How it works
      • Cross-Chain Bridge
      • Cross-Chain Router
    • Governance Token
      • VeMulti
      • How to Convert ANY to MULTI
    • Security
      • Security model
      • Bug bounty (Immunefi)
      • Bug bounty (alternative)
    • How to Use
      • Fees
    • Road Map
    • FAQ
    • Careers
      • Front-end developer
      • Back-end developer
      • Test Engineer
      • Test Development Engineer
      • Security Engineer (Code Auditing)
      • Blockchain Development Engineer
      • Senior Content Editor
      • Event Manager
  • Listing and Integration
    • Token Listing
      • ERC20 Cross-chain Options
      • Difference between V2&V3
    • Chain Integration
      • EVM Networks Integration
      • Non-EVM Networks Integration
    • FAQ
  • Developer Guide
    • How to Integrate Front-end Router
    • Bridge API (Token list/Tx Status)
    • Scan API (Tx Status/Account History)
    • Token Router Testnet
    • anyCall V7
      • How to integrate anyCall V7?
      • API/Explorer
      • Quickstart (Cross-chain text example)
      • Estimate Fee/Pay Fees on destination chain
    • anyCall V6
      • How to integrate anyCall V6?
      • anyFallback
      • anyCall V6 Testnet Environments
      • Fees Paid on Source Chain
      • Context (Verify msg.sender)
    • $USDC CCTP X anyCall
      • Contract Addresses and example
    • anyCall NFT Bridge
    • Permissionless Token bridging
    • How to develop under Anyswap ERC20 standards
    • Bridge funds and anyCall (Router V7)
      • Mainnet
      • Testnet (Quick Start Example)
    • How to Integrate Front-end Bridges
Powered by GitBook
On this page
  • Testnet Information
  • Quick Start
  1. Developer Guide
  2. Bridge funds and anyCall (Router V7)

Testnet (Quick Start Example)

PreviousMainnetNextHow to Integrate Front-end Bridges

Last updated 2 years ago

Testnet Information

Polygon Mumbai
BNB Testnet
Source Code

MultichainV7Router

AnycallExecutor

Exec Contract (Sushiswap Anycall Proxy Demo)

Bridge Token A

Bridge Token B

Quick Start

Please fork the above hardhat repo and follow the readme. This repo will do the following:

  1. Acquire some test token A for bridging on chain A.

  2. Bridge funds and swap to other tokens on chain B.

Commands:

  1. yarn

  2. Enter prvkey for your TESTNET account in env.example file and rename it to .env

  3. yarn hardhat run ./scripts/0swapMaticToA1token.js --network polygonmumbai

  4. yarn hardhat run ./scripts/bridgefundsRouterV7.js --network polygonmumbai

Congrats, you've swapped assets cross-chain.

Git clone

Get some testnet matic at

https://github.com/bscethbot/BridgeFundsAndAnyCallExample.git
https://faucet.polygon.technology/
0x8E680018D67C57889083c23786C225F730C54Fb5
0xaB9c7c8326B7e90339c23766EDAdF36C17c83ba2
Github
0x6afCFF9189e8ed3fCc1CFfa184FEB1276f6A82A5
0xfae90CB0B6707d69eCEAcec1F7dcFA294766E58E
Github
0xcaf870dad882b00f4b20d714bbf7fceada5e4195
0x9af276A66946d1B3B09760892AA08c9618381464
Github
0x8CD309e14575203535EF120b5b0Ab4DDeD0C2073
0x78F4CC9627739b5be8e12984D015756cef94b74B
0xfd01A9409862fA090B1833868e72cE52112E2861
0xc31970D88543FE0cDCfD3572047A5db5B9929C73
LogoGitHub - bscethbot/BridgeFundsAndAnyCallExampleGitHub