Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

1. Create a new Witnet-enabled project

!!! note "" This article is part of the beginner tutorial on creating a totally decentralized Bitcoin price feed on Ethereum with Solidity and Witnet.

Using the Witnet Truffle Box

If you are creating a new project from scratch, the quickest way to get things working is using Truffle to download a Witnet-enabled project template:

=== "GNU/Linux, Mac OS or Linux Subsystem for Windows" console mkdir bitcoin-price-feed cd bitcoin-price-feed truffle unbox witnet/truffle-box

You can keep reading this page to learn more about the Truffle box boilerplate, but if you are feeling impatient you can jump straight to defining data sources.

Project folder structure

After unboxing you should find yourself in a project that has been populated with the following directory structure:

├── contracts       // Where your Solidity contracts will be
│   └── requests    // Where Witnet requests end up after compilation
├── migrations      // Deployment scripts
├── requests        // Witnet request source code (.js files)
└── test            // Scripts for testing your contracts

Next step: adding data sources

You are now ready to move forward into defining the data sources to be used.

!!! question "Remember: You are not alone!" Join the Witnet Community Discord or Telegram. Members of the Witnet community will be happy to answer your questions and assist you through this tutorial.