You are viewing a single comment's thread from:RE: test from JSView the full contextcodewithcheese (54)in #test • 7 years ago connect? I was just look at the sc2 sdk today and noticed there is no post methods. Can you share code for that?
Yes sure here what I used for this little test using steem-js (https://github.com/steemit/steem-js/tree/master/doc#broadcast-api)
const result = await steem.broadcast.commentAsync(postingKey, '', '', username, permlink, title, body, JSON.stringify({tag:['test'], format: 'markdown'}));
or without the async / await
const result = steem.broadcast.comment(postingKey, '', '', username, permlink, title, body, JSON.stringify({tag:['test'], format: 'markdown'}), function(err, result){ // Do something });
Ah you were using steem-js. I was hoping it was steemconnect. Thanks though.
Btw, thats what the testnet is for! :)