Commit 361a172d authored by adcpm's avatar adcpm

Add comment operation example

parent 4cad2860
......@@ -8,16 +8,38 @@
<script src="../dist/steem.min.js"></script>
<script>
steem.broadcast.vote(
'5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg', // Posting WIF
'guest123', // Voter username
'firepower', // Author
'steemit-veni-vidi-vici-steemfest-2016-together-we-made-it-happen-thank-you-steemians', // Permlink
10000, // Weight (10000 = 100%)
function(err, result) {
console.log(err, result);
}
);
/** Configure your account */
var username = 'guest123';
var postingWif = '5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg';
/** Broadcast a vote */
steem.broadcast.vote(
postingWif,
username, // Voter
'firepower', // Author
'steemit-veni-vidi-vici-steemfest-2016-together-we-made-it-happen-thank-you-steemians', // Permlink
10000, // Weight (10000 = 100%)
function(err, result) {
console.log(err, result);
}
);
/** Broadcast a comment */
var permlink = new Date().toISOString().replace(/[^a-zA-Z0-9]+/g, '').toLowerCase();
steem.broadcast.comment(
postingWif,
'siol', // Parent Author
'test', // Parent Permlink
username, // Author
permlink, // Permlink
'', // Title
'This is a test!', // Body,
{ tags: ['test'], app: `steemjs/examples` }, // Json Metadata
function(err, result) {
console.log(err, result);
}
);
</script>
</body>
......
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