Coin Flip is a game were the player tries to guess the outcome of a coin flip. It is one of the simplest contracts implementing random numbers.
- How to store and retrieve information in the NEAR network.
- How to integrate a smart contract in a web frontend.
- How to generate random numbers in a contract.
Clone this repository locally or open it in gitpod. Then follow these steps:
npm install
Deploy your contract in a sandbox and simulate interactions from users.
npm test
Build the contract and deploy it in a testnet account
npm run deploy
Start the web application to interact with your smart contract
npm start
- Learn more about the contract through its README.
- Check our documentation.