Sample cross-chain dapps & contracts using the Axelar protocol.
Sample cross-chain dapps & contracts using the Axelar protocol.
This repo provides the code for several example dApps in the Axelar Local Development Environment. Examples contain both JavaScript and Solidity smart contract code.
Note: Some example folders in this repo are not documented.
Install nodejs. Run node -v to check your installation.
Support Node.js version 16.x and 18.x
git clone https://github.com/axelarnetwork/axelar-examples.gitaxelar-examples and install dependencies:npm installnpm run buildYou can get started quickly with a random local key and .env file by running
npm run setupOr you can manually copy the example .env.example file and fill in your EVM private key. See the example Metamask Instructions for exporting your private keys.
cp .env.example .envThen update to your own private key.
npm run startLeave this node running on a separate terminal before deploying and testing the dApps.
This script will print your wallet balances for each chain.
npm run check-balance [local|testnet]If not specified, this will print balances of the wallet for testnet.
No open issues yet, or sync has not completed.