Multichain
Search
K

Testnet (Quick Start Example)

Testnet Information

Quick Start

Please fork the above hardhat repo and follow the readme. This repo will do the following:
  1. 1.
    Acquire some test token A for bridging on chain A.
  2. 2.
    Bridge funds and swap to other tokens on chain B.
Commands:
  1. 2.
    yarn
  2. 3.
    Enter prvkey for your TESTNET account in env.example file and rename it to .env
  3. 4.
    Get some testnet matic at https://faucet.polygon.technology/
  4. 5.
    yarn hardhat run ./scripts/0swapMaticToA1token.js --network polygonmumbai
  5. 6.
    yarn hardhat run ./scripts/bridgefundsRouterV7.js --network polygonmumbai
Congrats, you've swapped assets cross-chain.