Skip to content

Instantly share code, notes, and snippets.

@maxidev
Created January 31, 2018 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxidev/9152d4444908a354dfb9c4dc05f2fa21 to your computer and use it in GitHub Desktop.
Save maxidev/9152d4444908a354dfb9c4dc05f2fa21 to your computer and use it in GitHub Desktop.
Escrow type contract creation
//Require Bitsign's library
const bitsignjs = require('bitsignjs');
//Instantiate the library with your access token
let api = bitsignjs.init('d2..83');
api.contracts.deploy({
password: '<your_password>',
type: 'Escrow',
"args": {
"_buyer": "<buyer_address>",
"_seller": "<seller_address>",
"_endTime": 314159 //block unix time
},
}).then(data => console.log(data));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment