Skip to content

Instantly share code, notes, and snippets.

@alwaysAn0n
Created April 5, 2019 20:51
Show Gist options
  • Save alwaysAn0n/359bc26becf895422ea7341654933d7d to your computer and use it in GitHub Desktop.
Save alwaysAn0n/359bc26becf895422ea7341654933d7d to your computer and use it in GitHub Desktop.
Testing cashshufflejs-web
const ShuffleClient = require('../cashshufflejs-web');
const repl = require('repl');
const shuffleIt = repl.start('cashshuffle > ');
shuffleIt.context.client = new ShuffleClient({
coins: [{
cashAddress: 'bitcoincash:qr7u5383gw5ckyls29mlpralgj23w4pgvc7rp7kphs',
privateKey: 'L4QLJkku7 ... fG1LGaXWaA',
txid: '544c6ea203b16ccad7aa61ab89fd7f9c5927a73046df78b67f0f0c7e78d39afd',
vout: 1,
amountSatoshis: 666000
}],
serverUri: 'ws://localhost:1338',
protocolVersion: 300,
serverStatsUri: 'http://localhost:8080/stats',
maxShuffleRounds: 1
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment