EVM on Subtensor
Ethereum compatibility layer is now available on the subtensor. 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.
When this EVM feature is turned ON, it allows the subtensor blockchain to execute Ethereum-compatible smart contracts.
Note that all operations performed by the subtensor EVM feature are executed solely on the subtensor blockchain, not on the Ethereum blockchain.
This document explains in simple terms what this EVM on subtensor is and how it works. Head on over to the EVM Tutorials to start learning how to use this feature.
How an Ethereum smart contract works
On the Ethereum network, nodes such as full nodes, validator nodes and archive nodes run the Ethereum Virtual Environment (EVM) run-time environment. Smart contracts operate under this EVM. See the below high-level diagram.
To understand what it means to have a smart contract in Bittensor, it helps if we go over how one creates, deploys and interacts with a smart contract. The below overview is not meant to be comprehensive.