SmartContracts

  1. Home
  2. Docs
  3. SmartContracts
  4. Truffle
  5. Chainlink Truffle Box

Chainlink Truffle Box

Chainlink Truffle Box

Installation

Package installation should have occurred for you during the Truffle Box setup. However, if you add dependencies, you’ll need to add them to the project by running:

npm install
Or
yarn install

Test
npm test

Deploy
If needed, edit the truffle-config.js config file to set the desired network to a different port. It assumes any network is running the RPC port on 8545.

npm run migrate:dev

For deploying to live networks, Truffle will use truffle-hdwallet-provider for your mnemonic and an RPC URL. Set your environment variables $RPC_URL and $MNEMONIC before running:

npm run migrate:live

You can also run:

truffle migrate –network live –reset
If you want to use truffle commands.

Was this article helpful to you? Yes No

How can we help?