A repo to help better understand Celo's transaction structure and tools for submitting transactions.
- familiar with Javascript and basic web development
- have installed
yarn
- Run
yarn install
at the root of the project. - Run
node createAccount.js
. This will print the details of a new Celo account to the console. Copy the private key of the new account into the variablePRIVATE_KEY
inside.env
. - Fund the account on the Alfajores testnet with the public address: https://celo.org/developers/faucet
- Create a Figment Data Hub account (Optional) here and get your API key and add it to
FIGMENT_API_KEY
en.env
. This will allow you to connect to Celo networks. - See through
lesson.js
, following the provided details and removing the comments from the function call to execute the associated code.
- Browser Celo wallet
cd
inside the directorywebpage
.- Run
yarn install
to install the dependencies. The simple web page uses broswerify to package contractkit into a browser-usable javascript file. It also uses watchify to watchindex.js
andindex.html
and check for changes, and it will automatically re-compile everything for you when a change is detected. - Run
yarn dev
to start lite server and watchify to serve the page in localhost:3000