Skip to content

Code and wrapper to extract Ethereum blockchain functionalities without network/consensus, for building custom blockchain services.

License

Notifications You must be signed in to change notification settings

ava-labs/coreth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3cbbe60 · May 5, 2021
Apr 28, 2021
Apr 30, 2021
May 3, 2021
Apr 30, 2021
Apr 20, 2021
May 3, 2021
May 3, 2021
Apr 30, 2021
Apr 30, 2021
May 2, 2021
Apr 30, 2021
May 3, 2021
Apr 30, 2021
May 4, 2021
May 5, 2021
Apr 30, 2021
May 3, 2021
May 2, 2021
Mar 29, 2021
Nov 13, 2020
Dec 17, 2020
Feb 8, 2021
Mar 29, 2021
Apr 16, 2020
May 4, 2021
May 4, 2021
May 4, 2021
Sep 20, 2020
Sep 20, 2020

Repository files navigation

Coreth and the C-Chain

Avalanche is a network composed of multiple blockchains. Each blockchain is an instance of a Virtual Machine (VM), much like an object in an object-oriented language is an instance of a class. That is, the VM defines the behavior of the blockchain. Coreth (from core Ethereum) is the Virtual Machine (VM) that defines the Contract Chain (C-Chain). This chain implements the Ethereum Virtual Machine and supports Solidity smart contracts as well as most other Ethereum client functionality.

Building

The C-Chain runs in a separate process from the main AvalancheGo process and communicates with it over a local gRPC connection. AvalancheGo's build script downloads Coreth, compiles it, and places the binary into the avalanchego/build/plugins directory.

API

The C-Chain supports the following API namespaces:

  • eth
  • personal
  • txpool
  • debug

Only the eth namespace is enabled by default. To enable the other namespaces see the instructions for passing in the coreth-config parameter to AvalancheGo: https://docs.avax.network/build/references/command-line-interface#plugins. Full documentation for the C-Chain's API can be found here.

Compatibility

The C-Chain is compatible with almost all Ethereum tooling, including Remix, Metamask and Truffle.

About

Code and wrapper to extract Ethereum blockchain functionalities without network/consensus, for building custom blockchain services.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages