Created
January 31, 2018 01:27
-
-
Save maxidev/9152d4444908a354dfb9c4dc05f2fa21 to your computer and use it in GitHub Desktop.
Escrow type contract creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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