Skip to main content
SUBMIT A PRSUBMIT AN ISSUElast edit: Oct 17, 2024

EVM Tutorials

Ethereum compatibility layer is now available on Bittensor. Using this EVM feature you can:

  • Deploy and interact with any Ethereum smart contract, without any need to change it, on the subtensor blockchain.
  • Access all the standard Ethereum JSON-RPC methods from this EVM compatibility layer on Bittensor.
EVM smart contract executes on subtensor

The EVM feature allows the subtensor blockchain to execute Ethereum-compatible smart contracts. Note that all operations performed by this new subtensor EVM feature are executed solely on the subtensor blockchain, not on the Ethereum blockchain.

This section presents tutorials for you to learn how to use the EVM feature on the Bittensor blockchain.

1 TAO = 1e18 on subtensor EVM

While working with the subtensor EVM, 1 TAO should be written as 1 followed by 18 zeroes, i.e., 1e18. See this code example: https://github.com/opentensor/evm-bittensor/blob/main/examples/withdraw.js#L58.

EVM on Subtensor: Basics
A beginner-friendly introduction to EVM on Bittensor.
READ MORE
EVM Testnet with Metamask
Learn how to set up your Metamask wallet with EVM testnet.
READ MORE
EVM Localnet with Metamask
Set up your Metamask wallet for a localnet with EVM feature.
READ MORE
TAO transfer from Metamask to SS58
Learn how to transfer TAO from Metamask to SS58.
READ MORE
Transfer TAO between two H160 addresses
Learn how to transfer TAO between two Ethereum H160 addresses.
READ MORE
Configure Hardhat for subtensor EVM
Using Hardhat? Configure it to work with subtensor EVM.
READ MORE
Stake with a smart contract
Stake to a hotkey using precompiled smart contract.
READ MORE
Verify ed25519 with a precompile
Verify an ed25519 signature on subtensor EVM.
READ MORE