Skip to content

psilly-rabbit/CoinFlip-dApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Coinflip dApp for Ivan on Tech

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published