dclib

Eth lib

Usage no npm install needed!

<script type="module">
  import dclib from 'https://cdn.skypack.dev/dclib';
</script>

README

DCLib

DCLib is javascript library for integrate dao.casino blockchain protocol. Interact with bankroller, use Signidice random algorithm, and paymentchannels.

DCLib has two part:

  • browser/frontend library
  • bankroller side API

DCLIb methods available inside bankroller application.

IMPORTANT: now lib work only in ropsten test network.

Get startted

See short video 2

Download and install last BankRollerApp

See DApp example

Usage

Include JS in your DApp

<script src="https://platform.dao.casino/api/lib/v2/DC.js"></script>

or use npm

npm install --save dclib
import 'dclib' // or require('dclib')

console.log(DCLib.version)

Open it in browser and see console.

Docs

Tutorials

More about DApps

[RU] Minimal Game

[RU] Game with PayChannels

DCLib References