Skip to content

piction-protocol/piction-for-klaytn

Repository files navigation

Piction for Klaytn

This project is a prototype for testing Klaytn.

Requirement

Setting

truffle-hdwallet-provider-privkey uses wallet's private key to authenticate accounts in ethereum network. Register developer's wallet address and private key in .env.klaytn like this.

$ cp .env .env.klaytn

--- .env.klaytn ---
PRIVATE_KEY=<PRIVATE_KEY>

Install

$ npm install -g truffle
$ npm install // install node_modules in package.json

Compile

$ truffle compile

Deploy

  • Deploy
$ truffle migrate --network klaytn
  • Set Contract
$ node set_contract_script.js

Run dApp

$ npm run dev

License

This is available under the MIT license. See the LICENSE file for more info.