Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 989 Bytes

ReadME.md

File metadata and controls

25 lines (20 loc) · 989 Bytes

CoinFlip dApp

Solidity Contracts and JS integration for a basic decentralized coinflip dApp.

Basic Outline

Utilizing web3js integration to handle wallet integration this dApp is built on the ropsten testnet for Ethereum. It uses an infura API to get a random number which is then used to create a heads or tails outcome on a bet.

Libraries Used

Web3.js
JavaScript
Bootstrap
Solidity

API Integration

Infura - RandomNumberGenerator API

Steps of Use

1. User enter amount of ETH they wish bet
2. User selects heads or tails which starts the bet finalization process
3. User must verify transaction through wallet which sends funds to Smart Contract
4. Wait - Smart Contract will send request randomness generator and will determine out from result received
5. An alert will flash on the screen and print in console alerting user to outcome
6. User has to pull winnings from website