Installing rouge.js

npm i web3 rouge.js                # using Npm
yarn add web3 rouge.js             # using Yarn

ES6 Importing

import Web3 from 'web3' // web3.js >= 1.0.0
import { RougeProtocol } from 'rouge.js'

const rouge = RougeProtocol(web3)

Creating & issuing a campaign

const campaignPromise = await{
  name: 'your campaign name',
  // How many voucher notes to issue
  issuance: 10,
  // when the campaign will expire (timestamp)
  expiration: (new Date().getTime() / 1000) + 3600 * 24 * 10

Distributing voucher notes

if (campaign.canDistribute) {
   // send one voucher to any Ethereum account

Redeeming voucher notes

const campaign =$(campaignAddress)


The Rouge protocol

is an open-source blockchain voucher and note protocol

built as a suite of smart contracts using a specific token — the Rouge token — on Ethereum compatible blockchains (tested on Ethereum and POA).

Rouge is for all types of usage of non-repudiable and unique usage digital vouchers (for example, e-tickets, e-coupons, cashback notes, etc).

Using the javascript rouge.js package you can easily add non-repudiable and unique usage digital vouchers in a web site or a nativescript mobile ÐApps without learning Solidity.

Join our official mailing-list