Demo EVM Appchain
Introduction¶
Explore the functionalities of a fully Ethereum-compatible appchain deployed through Tanssi by interacting with the demo EVM appchain on Dancebox.
This quick reference page offers all the essentials you need to interact with this demo appchain.
Faucet for TestNet Tokens¶
You can access TANGO tokens, the native currency of the EVM demo appchain, at the faucet on the Tanssi dApp. You can receive up to 100 TANGO tokens every 12 hours.
To request tokens from the faucet, head to the Tanssi dApp and press Add to MetaMask.
Then, take the following steps:
- Press Request Tokens
- Select the account you'd like to receive TANGO tokens and press Next
- Press Connect
Note
TANGO tokens have no value. Please don't spam the faucet with unnecessary requests.
Your tokens will be disbursed shortly, and you can verify your TANGO token balance by looking up your address on the explorer.
Network Endpoints¶
The demo EVM appchain HTTPS and WSS endpoints are as follows:
https://fraa-dancebox-3001-rpc.a.dancebox.tanssi.network/
wss://fraa-dancebox-3001-rpc.a.dancebox.tanssi.network/
Block Explorers¶
For the demo EVM appchain, you can use any of the following explorers:
- Polkadot.js Apps (Substrate API)
- Blockscout (Ethereum API)
- Expedition (Ethereum API)
Chain ID¶
The demo EVM appchain has a chain ID of: 5678
, which is 0x162E
in hex.
Quick Start¶
You can interact with a Tanssi EVM appchain using standard Ethereum libraries, like Ethers.js, Web3.js, and Web3.py. To quickly get started, you'll need to create a provider connected to a Tanssi EVM appchain:
import { ethers } from "ethers";
const providerRPC = {
evmAppchain: {
name: 'dancebox-evm-appchain',
// Insert your RPC URL here
rpc: 'https://fraa-dancebox-3001-rpc.a.dancebox.tanssi.network',
chainId: 5678, // 0x162E in hex,
},
};
const provider = new ethers.JsonRpcProvider(
providerRPC.evmAppchain.rpc,
{
chainId: providerRPC.evmAppchain.chainId,
name: providerRPC.evmAppchain.name,
}
);
const Web3 = require('web3');
const web3 = new Web3(
'https://fraa-dancebox-3001-rpc.a.dancebox.tanssi.network'
);
from web3 import Web3
web3 = Web3(Web3.HTTPProvider('https://fraa-dancebox-3001-rpc.a.dancebox.tanssi.network'))
| Created: September 12, 2023