Git Product home page Git Product logo

Comments (7)

bonustrack avatar bonustrack commented on August 23, 2024 1

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.

bonustrack avatar bonustrack commented on August 23, 2024

Sure. You need to create a tx, sign it and boradcast it with broadcastTransaction method.

from steem-js.

DrmedWurst avatar DrmedWurst commented on August 23, 2024

Can you please provide an example?
it is not that obvious

from steem-js.

DrmedWurst avatar DrmedWurst commented on August 23, 2024

Thank you very much! I will try it ;-) Will there be also a REST API in future?

from steem-js.

bonustrack avatar bonustrack commented on August 23, 2024

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.

gaupoit avatar gaupoit commented on August 23, 2024

Thanks @bonustrack for nice tip.

from steem-js.

vuvuongvi avatar vuvuongvi commented on August 23, 2024

Thanks you @bonustrack so much,so helpful with me

from steem-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.