Skip to content

MetaCoin Box

This is an example of a completed coin-like contract built using Truffle. Note that this is not ERC-20 compatible, so it is not expected to interact with other coin/token contracts.

Requirements

The MetaCoin box has the following requirements:

Helpful, but optional:

Setup

Installation

$ truffle unbox metacoin

Deployment

To deploy locally, start a local instance of ganache by running ganache Then, simply call truffle migrate

Testing

This box has examples for testing your smart contracts in both Javascript and Solidity.

To run the tests locally, call truffle test

Support

Need help? Get in touch with the Truffle community by posting on Github Discussions!