counterparty-promise

    1.3.3 • Public • Published

    node-counterparty-promise

    Summary

    Add Promise support to counterparty package. (Almost all same as to bitcoin-promise package. It is backward compatible with the original package. If no callback function is passed in to a command a Promise is returned

    Installation

    npm install counterparty-promise
    

    Example

    var counterparty = require( 'counterparty-promise' ) ;
    
    var client = new counterparty.Client({
      host: 'localhost',
      port: 4000,
      user: 'rpc',
      pass: 'password',
      timeout: 30000
    });
    
    // get running information
    client.getRunningInfo()
      .then( function(result){
        console.log( result );
      }) 
      .catch( function(err){
        console.log( err ) ;
      }) ;
    

    Install

    npm i counterparty-promise

    DownloadsWeekly Downloads

    4

    Version

    1.3.3

    License

    Unlicense

    Last publish

    Collaborators

    • cryptcoin-junkey