You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2021. It is now read-only.
* Generates a new address and associate private/public keys.
195
-
* @param {Object} data Optional JSON data, which could be used for generating multisig addresses, for exampl.JSON data, which could be used for generating multisig addresses, for example.
195
+
* @param {Object} data Optional JSON data, which could be used for generating multisig addresses, for exampl.JSON data, which could be used for generating multisig addresses, for example.
196
+
* @param {Array[Strings]} data.pubKeys Optional pubKeys for multi sig address
197
+
* @param {String} data.script_type Optional script type for multi sig address
196
198
* @callback cb
197
199
* @memberof Blockcy
198
200
* @method genAddr
199
201
*/
200
-
Blockcy.prototype.genAddr=function(data,cb){
202
+
Blockcy.prototype.genAddr=function(data,cb){//TODO Allow function signature genAddr(cb) as well
201
203
this._post('/addrs',{},data,function(error,body){
202
204
cb(error,body);
203
205
});
@@ -212,7 +214,7 @@ Blockcy.prototype.genAddr = function (data, cb) {
212
214
* @memberof Blockcy
213
215
* @method faucet
214
216
*/
215
-
Blockcy.prototype.faucet=function(addr,value,cb){
217
+
Blockcy.prototype.faucet=function(addr,value,cb){//TODO set default value if value is undefined/null. Maybe allow faucet(addr, cb).
@@ -451,7 +458,7 @@ Blockcy.prototype.getUnTXs = function (cb) {
451
458
* <b>New Transaction</b>
452
459
* Creates a new transaction skeleton, which returns the transaction along with data that needs to be signed. You can see more information on how this process works here: <a href="http://dev.blockcypher.com/?javascript#creating-transactions">http://dev.blockcypher.com/?javascript#creating-transactions</a>
453
460
* @callback cb
454
-
* @param {Object} tx Transaction base you're using to build a TX.
461
+
* @param {Object} tx Transaction base you're using to build a TX. https://www.blockcypher.com/dev/bitcoin/#tx
455
462
* @memberof Blockcy
456
463
* @method newTX
457
464
*/
@@ -465,7 +472,7 @@ Blockcy.prototype.newTX = function (tx, cb) {
465
472
* <b>Send Transaction</b>
466
473
* Sends a signed transaction skeleton, which returns the completed transaction. You can read more information on how this process works here: <a href="http://dev.blockcypher.com/?javascript#creating-transactions">http://dev.blockcypher.com/?javascript#creating-transactions</a>
467
474
* @callback cb
468
-
* @param {Object} txskel Signed transaction skeleton you're sending.
475
+
* @param {Object} txskel Signed transaction skeleton you're sending. https://www.blockcypher.com/dev/bitcoin/#txskeleton
469
476
* @memberof Blockcy
470
477
* @method sendTX
471
478
*/
@@ -548,7 +555,9 @@ Blockcy.prototype.getTXConf = function (hash, cb) {
548
555
/**
549
556
* <b>Create Payment Forward</b>
550
557
* Creates a new payment forward.
551
-
* @param {Object} data JSON Data used to create payment forward.
558
+
* @param {Object} data JSON Data used to create payment forward.
0 commit comments