Comments (7)
You can use now the method steem.broadcast.comment() to post an article or comment. Here is an example:
var steem = require('steem');
var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.comment(wif, '', 'steemjs', username, 'this-is-a-test', 'Test Title', 'Hello World!', {tags: ['steemjs', 'steem']}, function(err, result) {
console.log(err, result);
});
from steem-js.
Sure. You need to create a tx, sign it and boradcast it with broadcastTransaction method.
from steem-js.
Can you please provide an example?
it is not that obvious
from steem-js.
Thank you very much! I will try it ;-) Will there be also a REST API in future?
from steem-js.
No sorry no Rest API in the future. The Rest API is in the present ;) here : https://api.steemjs.com/getAccounts?names[]=fabien
It's working like the package. This API not include the broadcast methods. I'm now developing Steem Connect it will handle the broadcast.
from steem-js.
Thanks @bonustrack for nice tip.
from steem-js.
Thanks you @bonustrack so much,so helpful with me
from steem-js.
Related Issues (20)
- bip39 compatibility
- steem-js cannot be imported into typescript project but can with js project... HOT 1
- SMT HF support
- Update tests to use a testing authority
- Angular 8.2.13 Build : An unhandled exception occurred: Unexpected token: punc ()) HOT 1
- Add smt_setup_ico_tier_operation to steem-js
- Are the docs out of date? HOT 4
- [HF 23] transfer_to_vesting and other ops serialization
- get address from privateKey HOT 4
- claim_account and create_claimed_account need a dedicated API
- Get Version of the Libary used
- transfer STEEM failed by steem-js HOT 1
- Error to fetch content HOT 1
- steem.broadcast.transfer private message not working HOT 3
- When call steem.api.getDynamicGlobalProperties() HOT 2
- why does a vital part always need to be missing from the docs...
- Proper Documentation HOT 1
- Update webpack.config.js for webpack versions > 5.0.0
- Update Webpack Example to Webpack Version greater than 5.x.x
- ERROR: Permission to steemit/steem-js.git denied HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steem-js.