Commit 1883be1b authored by Fabien's avatar Fabien Committed by GitHub

Merge pull request #207 from steemit/multisig-example

Multisig example
parents 664a2541 c447ed5c
......@@ -844,6 +844,23 @@ steem.broadcast.cancelTransferFromSavings(wif, from, requestId, function(err, re
});
```
### Multisig
You can use multisignature to broadcast an operation.
```
steem.broadcast.send({
extensions: [],
operations: [
['vote', {
voter: 'guest123',
author: 'fabien',
permlink: 'test',
weight: 1000
}]
]}, [privPostingWif1, privPostingWif2], (err, result) => {
console.log(err, result);
});
```
# Auth
### Verify
......
const steem = require('../lib');
const privWif1 = '5K2LA2ucS8b1GuFvVgZK6itKNE6fFMbDMX4GDtNHiczJESLGRd8';
const privWif2 = '5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg';
steem.broadcast.send({
extensions: [],
operations: [
['vote', {
voter: 'sisilafamille',
author: 'siol',
permlink: 'test',
weight: 1000
}]
]}, [privWif1, privWif2], (err, result) => {
console.log(err, result);
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment