EVM
Ethereum Virtual Machine on ICE/SNOW Network
Users and Developers can write and deploy smart contracts using Solidity, use Metamask as their personal wallet, thanks to the EVM Support provided by Frontier. Frontier, developed by Parity Technologies, is an Ethereum compatible layer on Substrate, which enables the substrate-based chains like ICE/SNOW to run Ethereum smart contracts out of the box.
Using the web3.js library, you can create a local Web3 instance and set the provider to connect to Arctic (both HTTP and WS are supported):
const Web3 = require('web3'); // Load Web3 library
// Create local Web3 instance - set Arctic as provider
const web3 = new Web3("https://arctic-rpc.icenetwork.io:9933")
For the ethers.js library, define the provider by using
ethers.providers.StaticJsonRpcProvider(providerURL, {object})
and setting the provider URL to Arctic:const ethers = require('ethers');
const providerURL = "https://arctic-rpc.icenetwork.io:9933";
// Define Provider
const provider = new ethers.providers.StaticJsonRpcProvider(providerURL, {
chainId: 553,
name: 'arctic'
});
Any Ethereum wallet should be able to generate a valid address for Arctic Network (for example, MetaMask).
Last modified 9mo ago