Git Product home page Git Product logo

steem-js's Introduction

GitHub license Steem.js channel on steemit.chat

Steem.js

Steem.js the JavaScript API for Steem blockchain

Documentation

Here is full documentation: https://github.com/steemit/steem-js/tree/master/doc

Browser

<script src="./steem.min.js"></script>
<script>
steem.api.getAccounts(['ned', 'dan'], function(err, response){
    console.log(err, response);
});
</script>

CDN

https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js

<script src="https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js"></script>

Webpack

Please have a look at the webpack usage example.

Server

Install

$ npm install steem --save

RPC Servers

https://api.steemit.com By Default

Examples

Broadcast Vote

var steem = require('steem');

var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
	console.log(err, result);
});

Get Accounts

steem.api.getAccounts(['ned', 'dan'], function(err, result) {
	console.log(err, result);
});

Get State

steem.api.getState('/trends/funny', function(err, result) {
	console.log(err, result);
});

Reputation Formatter

var reputation = steem.formatter.reputation(user.reputation);
console.log(reputation);

Steem Testnet

Steem-js requires some configuration to work on the public Steem testnet.

You need to set two Steem API options, address_prefix and chain_id.

steem.api.setOptions({
  address_prefix: 'TST',
  chain_id: '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',
  useTestNet: true,
});

The Chain ID could change. If it does, it may not be reflected here, but will be documented on any testnet launch announcements.

Contributions

Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.

Issues

When you find issues, please report them!

License

MIT

steem-js's People

Contributors

4leem avatar aaroncox avatar bnchdrff avatar bonustrack avatar bra1n avatar doctorlai avatar drov0 avatar ety001 avatar goldibex avatar gropox avatar inertia186 avatar jnordberg avatar jonathanporta avatar jredbeard avatar kaptainkrayola avatar motrebski avatar mvandeberg avatar netuoso avatar nil1511 avatar p0o avatar primerz avatar relativityboy avatar roadscape avatar sekhmet avatar sgerbino avatar skzap avatar sneak avatar stormrose avatar think-in-universe avatar yamadapc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

steem-js's Issues

Enable "broadcast"-type operations from a browser

Hi! I've been using the various broadcast operations (comment, vote, etc.) from Node.JS and they've worked perfectly.

I would, however, also like to use them from the browser. Is there any way in which to make that possible with Webpack or Browserify? It looks like you are using Browserify in your build but there is no sign of the broadcast-type transactions in the CDN javascript file.

I'm willing to help with this if someone could point me in the right starting direction. My name is mark.waser on steemit.chat.

Thanks!

Browser ONLY support for Broadcast votes?

So, your broadcast example is listed along with all the browser only requests which I have the requests working well in my javascript app. However, I can't use the broadcast command:

var steem = require('steem');

var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});

I just get the following error. Which looks like a timeout, but not really sure what might be the problem. Are these broadcasts able to run in the browser in JS directly with SteemJS or is it requiring server side with node.js or something? This isn't clear to me, since everything else is client side? Any help would be great.

Error: 10 assert_exception: Assert Exception
now < trx.expiration:
{"now":"2016-12-13T06:44:18","trx.exp":"2016-12-13T06:43:52"}
th_a database.cpp:3267 _apply_transaction

Thanks.

API call only returns 10 results

When calling the API via http only 10 post objects are returned. Sequential calls to the api via http also return the same results from the previous call

Uncaught Error: Cannot find module 'crypto'

Uncaught Error: Cannot find module 'crypto'
    at require (modules-runtime.js?hash=0969a31…:133)
    at meteorInstall.node_modules.steem.lib.auth.index.js (modules.js?hash=2f1f987…:6398)
    at fileEvaluate (modules-runtime.js?hash=0969a31…:207)
    at require (modules-runtime.js?hash=0969a31…:130)
    at meteorInstall.node_modules.steem.index.js (modules.js?hash=2f1f987…:5267)
    at fileEvaluate (modules-runtime.js?hash=0969a31…:207)
    at Module.require (modules-runtime.js?hash=0969a31…:130)
    at Module.Mp.import (modules.js?hash=2f1f987…:374)
    at meteorInstall.imports.api.steem.js (steem.js:1)
    at fileEvaluate (modules-runtime.js?hash=0969a31…:207)
    at Module.require (modules-runtime.js?hash=0969a31…:130)
    at Module.Mp.import (modules.js?hash=2f1f987…:374)
    at meteorInstall.imports.api.collections.userSettings.js (userSettings.js:1)
    at fileEvaluate (modules-runtime.js?hash=0969a31…:207)
    at Module.require (modules-runtime.js?hash=0969a31…:130)
    at Module.Mp.import (modules.js?hash=2f1f987…:374)

Version:

    "steem": "^0.4.8",

Related Issue:
#39

GOLOS

I trying to change parameter in library for contact it with Golos:
var A = { url: "127.0.0.1:8090", .....
But of course i have answer:
SyntaxError: Failed to construct 'WebSocket': The URL '127.0.0.1:8090' is invalid
How i can configure it for work with Golos blockchain?

Noob question

Is there any built-in function that return all the replies to a post or am I supposed to use the /getContentReplies() ?

Thank you for your time.

accountUpdate fails in compiled build.

In frontend it fails from dev.steemconnect.com but working fine from localhost. Mostly problem in webpack bundling or something.also promise warning does not occurs locally.

Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw Error: WebSocket is already in CLOSING or CLOSED state.

Escrow

Hello, Fabian and everybody! How about escrow in steemjs? Will?

SteemJS streamOperations is returning a error code 301 for the ws connection.

Expected behavior

steem.api.streamOperations(function (err, operations) { ...}
normally returns all streaming operations.

Actual behavior

It is currently returning the following error:
WebSocket connection to 'wss://steemit.com/wspa' failed: Error during WebSocket handshake: Unexpected response code: 301

How to reproduce

run the example Stream.html from the release, or any product using the same stream.api like (https://autosteem.learnthis.ca)

The error code occurs immediately. I've tried with the latest 0.4.7 in releases as well.

Create Posts

Is it possible to use this to create a blog post?

It seems like it's mainly just for logging in and reading data at this point - which is a great start.

Error: Cannot find module './lib/api'

W20170218-16:11:20.321(1)? (STDERR) Error: Cannot find module './lib/api'
W20170218-16:11:20.321(1)? (STDERR)     at Function.Module._resolveFilename (module.js:325:15)
W20170218-16:11:20.321(1)? (STDERR)     at Function.Module._load (module.js:276:25)
W20170218-16:11:20.321(1)? (STDERR)     at Module.require (module.js:353:17)
W20170218-16:11:20.321(1)? (STDERR)     at require (internal/module.js:12:17)
W20170218-16:11:20.321(1)? (STDERR)     at Object.<anonymous> (/home/user/GitHub/SteemSports/steemsports.com/node_modules/steem/index.js:2:8)
W20170218-16:11:20.322(1)? (STDERR)     at Module._compile (module.js:409:26)
W20170218-16:11:20.323(1)? (STDERR)     at Object.Module._extensions..js (module.js:416:10)
W20170218-16:11:20.323(1)? (STDERR)     at Module.load (module.js:343:32)
W20170218-16:11:20.323(1)? (STDERR)     at Function.Module._load (module.js:300:12)
W20170218-16:11:20.324(1)? (STDERR)     at Module.require (module.js:353:17)

Version:

    "steem": "github:adcpm/steem#dev",

I tried nuking node_modules and re-installing, but no help.

getFollowers bug

Setting startFollower does not appear to make a difference:

    steem.getFollowers('ned', 0, 'blog', 5, function(err, result) {
        console.log(result);
        // callback(result);
    });

Result:

[ { id: '8.0.63115',
    follower: 'aarnold',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.106374',
    follower: 'aaronkoenig',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.4991',
    follower: 'aaseb',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.70969',
    follower: 'aboundlessworld',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.3663',
    follower: 'acidsun',
    following: 'ned',
    what: [ 'blog' ] } ]

Incrementing startFollower by 5:

    steem.getFollowers('ned', 5, 'blog', 5, function(err, result) {
        console.log(result);
        // callback(result);
    });

Result:

[ { id: '8.0.63115',
    follower: 'aarnold',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.106374',
    follower: 'aaronkoenig',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.4991',
    follower: 'aaseb',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.70969',
    follower: 'aboundlessworld',
    following: 'ned',
    what: [ 'blog' ] },
  { id: '8.0.3663',
    follower: 'acidsun',
    following: 'ned',
    what: [ 'blog' ] } ]

Trying to use steem from browser

I am trying to use steem in a Meteor app.

I've installed steem via npm, here are my dependencies:

  "dependencies": {
    "babel-runtime": "^6.18.0",
    "bcrypt": "^0.8.7",
    "bufferutil": "^1.2.1",
    "crypto": "0.0.3",
    "crypto-browserify": "^3.11.0",
    "meteor-node-stubs": "^0.2.3",
    "steem": "^0.3.30",
    "utf-8-validate": "^1.2.1"
  }

However when I try to import steem, I get the following error:

import steem from 'steem';

Output:

If I try to import the script from CDN, it fails to sign things:
https://cdn.steemjs.com/lib/latest/steem.min.js

Code:

steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
    console.log(err, result);
});

Output:

Error: 3030008 tx_missing_posting_auth: missing required posting authority(…) undefined

Interestingly enough, this same code works fine when ran from node.js.

steem.api.getAccounts call failling

As of sometime on 16th Feb, calls to steem.api.getAccounts have been failing.

Expected behavior

steem.api.getAccounts responds with well formatted error if a problem, or usual successful response if everything working

Actual behavior

Crash when steem.api.getAccounts is called

Stacktrace

Here's an example log output

2017-02-17T13:45:53.260009+00:00 app[web.1]: events.js:160
2017-02-17T13:45:53.260013+00:00 app[web.1]:       throw er; // Unhandled 'error' event
2017-02-17T13:45:53.260014+00:00 app[web.1]:       ^
2017-02-17T13:45:53.260015+00:00 app[web.1]: 
2017-02-17T13:45:53.260015+00:00 app[web.1]: Error: unexpected server response (301)
2017-02-17T13:45:53.260016+00:00 app[web.1]:     at ClientRequest.response (/app/node_modules/ws/lib/WebSocket.js:719:15)
2017-02-17T13:45:53.260017+00:00 app[web.1]:     at ClientRequest.g (events.js:291:16)
2017-02-17T13:45:53.260018+00:00 app[web.1]:     at emitOne (events.js:96:13)
2017-02-17T13:45:53.260018+00:00 app[web.1]:     at ClientRequest.emit (events.js:188:7)
2017-02-17T13:45:53.260019+00:00 app[web.1]:     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21)
2017-02-17T13:45:53.260020+00:00 app[web.1]:     at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
2017-02-17T13:45:53.260021+00:00 app[web.1]:     at TLSSocket.socketOnData (_http_client.js:363:20)
2017-02-17T13:45:53.260022+00:00 app[web.1]:     at emitOne (events.js:96:13)
2017-02-17T13:45:53.260023+00:00 app[web.1]:     at TLSSocket.emit (events.js:188:7)
2017-02-17T13:45:53.260024+00:00 app[web.1]:     at TLSSocket.Readable.push (_stream_readable.js:134:10)
2017-02-17T13:45:53.260023+00:00 app[web.1]:     at readableAddChunk (_stream_readable.js:176:18)
2017-02-17T13:45:53.260025+00:00 app[web.1]:     at TLSWrap.onread (net.js:548:20)

How to reproduce

It seems to reproduce no matter what account, I have several people reporting this error to me. I presume there is a fundamental problem, probably not with your library but access to the blockchain? The HTTP code is 301, i.e. Moved Permanently, seems to suggest this.

It might also fail for other calls.

Version of library used was 0.4.2, but the issue remains after upgrade to 0.4.7

Also note that Steemit.com was updated very recently, it's not a dependency but the timing is interesting: https://steemit.com/tag/@ausbitbank/release-notes-for-steemit-version-0-1-170216

steem.broadcast.vote does not call callback function

var steem = require('steem');

var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
    console.log(err, result);
});

I think this is wrong because the file lib/broadcast/operations.json shows no wif parameter.

{
    "roles": [
      "posting"
    ],
    "operation": "vote",
    "params": [
      "voter",
      "author",
      "permlink",
      "weight"
    ]
  },

Do we require a login operation before vote can be used? If so, why did you remove the WIF? That is more useful.

Login Function Not Working?

When I use the steem.login function, no matter what account name or password I use it always returns "True". I was assuming this was an actual login function to log in to the steem account?

steem.broadcast.transfer is broken

Calling
steem.broadcast.transfer(wif, source, to, amount, memo, function(err, result) { console.log(err, result); if(err){ deferred.reject(err); }else{ deferred.resolve(result); } });

produces no errors, the only thing in the console is...
null undefined

So no output at all and the blockchain is showing no activity at all.
I've verified that all parameters are correct and I'm using my active key in Wif format for this.
This is done in the browser with the latest build of <script src="lib/steem/dist/steem.min.js"></script>

Actionscript compile fail

When using npm install steem, it's impossible to compile for mobile usage.

:processF0DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processF0DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\steve\AppData\Local\Android\android-sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

Most likely a dependency or path issue

GetFollowing documentation

steem.getFollowing(follower, startFollowing, followType, limit, function(err, result) {
    console.log(err, result);
});

Any chance you can post an example for the parameters in this function?

  • follower 'billbutler'
  • startFollowing ?
  • followType ?

TypeErrors with latest version - Transaction problems

I'm using SteemJS for autosteem and I started getting the following errors with the library recently. I've checked this with version 0.3.30, 0.4.1 and 0.4.3, they all produce the same error and never used to (at least several weeks ago?). I can reproduce it with just the example steem.html provided as well.
3 out of 4 times, if I run the steem.html, I get the following errors over and over in console:

Uncaught TypeError: Cannot read property 'transactions' of null at api.js:317 at o (bluebird.js:5236) at o.n [as _fulfillmentHandler0] (bluebird.js:2695) at o._settlePromise (bluebird.js:3296) at o._settlePromise0 (bluebird.js:3344) at o._settlePromises (bluebird.js:3423) at bluebird.js:175 (anonymous) @ api.js:317 o @ bluebird.js:5236 n @ bluebird.js:2695 o._settlePromise @ bluebird.js:3296 o._settlePromise0 @ bluebird.js:3344 o._settlePromises @ bluebird.js:3423 (anonymous) @ bluebird.js:175

If I do nothing, just refresh the browser a bunch of times, eventually 1/4 maybe it will start properly and the broadcast stream will start showing up in the the html. I rely on this for my autostreem product and so its currently breaking that product online. Has something changed I'm missing or need to update to resolve this? Any help would be appreciated, thanks!

Login returns true

Hey, looks like I guessed @ned's password :)

steem.login('ned', '****************', function(err, result) {
    console.log(err, result);
});

Returns true! Woohoo!

firefox date deserialization problem

With Chrome all works fine, but in Firefox i have error when i broadcast a comment:

Error: 3030000 tx_missing_posting_auth: missing required posting authority
Missing Posting Authority sci
{"id":"sci","posting":{"weight_threshold":1,"account_auths":[["streemian",1]],"key_auths":[["STM8MfcHZyYioPBsmoYp8AZf4mbwZdsarunFRvuWUySqb3nwPeRwb",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM82cz4GKWWiEoikHfehMJ9PapecmoUsf4bE7NDoZD47PTBqSTK4",1]]},"owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM67rQk47AyFkSzw61CMdpKJEtFwwJr3QyFUpt9Wb54J9LDEyeea",1]]}}
th_a transaction.cpp:129 verify_authority

{"ops":[["comment",{"parent_author":"","parent_permlink":"test","author":"sci","permlink":"test-article-number-y","title":"test article (number y)","body":"tsst","json_metadata":"{"tags":["test","news","technologies"],"model":"news","app":"mapala","}"}]],"sigs":["STM7pQESd1aqnYbf9DFmZFScNpSudZn4PzCYgJ3udYos239913WYT"]}
th_a transaction.cpp:172 verify_authority

And key is always different. I had a same trouble with GolosJs, while im not install correct Chain-Id. Firstly, i think this is my local problem, but with SteemJs and transaction to Steem network - i have same answer in FireFox..

I use it PHP Yii2 application, just include steem.min.js and command:

            steem.broadcast.comment(wif.plaintext, 
            trx['parentAuthor'], 
            trx['parentPermlink'], 
            trx['author'], 
            trx['permlink'], 
            trx['title'], 
            trx['body'], 
            trx['metadata'], 
            function(err, result) {
                console.log(err, result);
 
                if (err == null){
                    setTimeout(redirect, 6000);
                } else alert(err);
        });

Simple, and work with Chrome.. But why firefox does not work?

SyntaxError: Unexpected token ) when doing require('steem')

I've installed steem package using the following command
npm install steem --save

now when I do

var steem = require('steem');

I get the following error:
node_modules/steemauth/lib/steemit/types.js:457 return this.validate(((() => { ^ SyntaxError: Unexpected token ) at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (node_modules/steemauth/lib/steemit/operations.js:1:75) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10)

Account Update not working

AccountUpdate is not working on master.
check here: https://dev.steemconnect.com/profile

"Error: transaction.operations = accountUpdate,[object Object]	 cause: Illegal value:undefined (not an integer) 
 stack: TypeError: Illegal value: undefined (not an integer)
    at i.a.writeVarint32 (https://dev.steemconnect.com/js/app.min.js:65:17946)
    at Object.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:113:26194)
    at Object.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:113:20805)
    at e.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:10259)
    at e.toByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:11937)
    at e.toBuffer (https://dev.steemconnect.com/js/app.min.js:73:12030)
    at Object.p.signTransaction (https://dev.steemconnect.com/js/app.min.js:114:972)
    at https://dev.steemconnect.com/js/app.min.js:113:2736
    at i (https://dev.steemconnect.com/js/app.min.js:59:8507)
    at i._settlePromiseFromHandler (https://dev.steemconnect.com/js/app.min.js:58:13798)
    at i._settlePromise (https://dev.steemconnect.com/js/app.min.js:58:14601)
    at i._settlePromise0 (https://dev.steemconnect.com/js/app.min.js:58:15302)
    at i._settlePromises (https://dev.steemconnect.com/js/app.min.js:58:16632)
    at i._fulfill (https://dev.steemconnect.com/js/app.min.js:58:15673)
    at i._resolveCallback (https://dev.steemconnect.com/js/app.min.js:58:12545)
    at i._settlePromiseFromHandler (https://dev.steemconnect.com/js/app.min.js:58:13953) 
    at i.a.writeVarint32 (https://dev.steemconnect.com/js/app.min.js:65:17946)
    at Object.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:113:26194)
    at Object.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:113:20805)
    at e.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:10259)
    at e.toByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:11937)
    at e.toBuffer (https://dev.steemconnect.com/js/app.min.js:73:12030)
    at Object.p.signTransaction (https://dev.steemconnect.com/js/app.min.js:114:972)
    at https://dev.steemconnect.com/js/app.min.js:113:2736
    at a._throw (https://dev.steemconnect.com/js/app.min.js:73:12537)
    at e.appendByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:10374)
    at e.toByteBuffer (https://dev.steemconnect.com/js/app.min.js:73:11937)
    at e.toBuffer (https://dev.steemconnect.com/js/app.min.js:73:12030)
    at Object.p.signTransaction (https://dev.steemconnect.com/js/app.min.js:114:972)
    at https://dev.steemconnect.com/js/app.min.js:113:2736
From previous event:
    at Object.w.send (https://dev.steemconnect.com/js/app.min.js:113:2607)
    at Object.w.(anonymous function) [as accountUpdateWith] (https://dev.steemconnect.com/js/app.min.js:113:3638)
    at Object.w.(anonymous function) [as accountUpdate] (https://dev.steemconnect.com/js/app.min.js:113:4097)
    at https://dev.steemconnect.com/js/app.min.js:16:28633
    at https://dev.steemconnect.com/js/app.min.js:16:28595
    at https://dev.steemconnect.com/js/app.min.js:112:29801
    at Object.accountUpdate (https://dev.steemconnect.com/js/app.min.js:112:30562)
    at t.n.updateProfile (https://dev.steemconnect.com/js/app.min.js:75:11115)
    at Object.onEnter (https://dev.steemconnect.com/js/app.min.js:75:11718)
    at r.onEnter (https://dev.steemconnect.com/js/app.min.js:32:21371)
    at Object.r (https://dev.steemconnect.com/js/app.min.js:18:27726)
    at a (https://dev.steemconnect.com/js/app.min.js:18:23809)
    at Object.s [as executeDispatchesInOrder] (https://dev.steemconnect.com/js/app.min.js:18:24024)
    at h (https://dev.steemconnect.com/js/app.min.js:17:3925)
    at v (https://dev.steemconnect.com/js/app.min.js:17:4051)
    at Array.forEach (native)
    at n (https://dev.steemconnect.com/js/app.min.js:72:20296)
    at Object.processEventQueue (https://dev.steemconnect.com/js/app.min.js:17:5129)
    at r (https://dev.steemconnect.com/js/app.min.js:110:21998)" 

steem.auth.verify does not appear to be working

<script src="https://cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script type="text/javascript">
    console.log(steem.auth.verify("barbara2", "my_super_secret_password", ["posting"]))
</script>

This will always return 'false', despite username/password being correct.

Post views missing from post information

Nice template, great idea, I might use it ;)

Expected behavior

Post data should contain a field with the number of views a post has had. This information should be available as it is presented on Steemit.com beside an eye symbol.

Actual behavior

No view field is available (or it is hidden / obfuscated as or within another field).

How to reproduce

Read any posts any way, e.g. steem.api.getDiscussionsByCreated( ... )

Thanks guys :D

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.