monicanagent/cypherpoker.js

Add web support for BCH

monicanagent opened this issue · 3 comments

Implement support for Bitcoin Cash in the web version of CypherPoker.JS

To accomplish this, updates will need to be made to the CP_Account API to generate raw transactions:

function sendBTCTx(txObject, network=null) {
/*
TODO: Future update example to build transaction from scratch:
var key = bitcoin.ECKey.fromWIF("L1Kzcyy88LyckShYdvoLFg1FYpB5ce1JmTYtieHrhkN65GhVoq73");
var tx = new bitcoin.TransactionBuilder();
tx.addInput("d18e7106e5492baf8f3929d2d573d27d89277f3825d3836aa86ea1d843b5158b", 1);
tx.addOutput("12idKQBikRgRuZEbtxXQ4WFYB7Wa3hZzhT", 149000);
tx.sign(0, key);
console.log(tx.build().toHex());
*/
var promise = new Promise(function(resolve, reject) {

...using one of the API services noted in issue #49.

Native handlers from issue #49 can now be extended to support remote APIs such as:

https://developer.bitcoin.com
https://rest.bitcoin.com
https://fountainhead.cash

Native handlers from issue #49 can now be extended to support remote APIs such as:

https://developer.bitcoin.com
https://rest.bitcoin.com
https://fountainhead.cash

Update completed in revision 199 (bbd75c3).