Comments (2)
Agreed that it would be convenient to have but unfortunately due to the way streams are designed in node.js the data
event has only one argument. We could emit {block: .., id: 123}
but that would be an API breaking change.
However you can get the block number from the block_id
property. Like so:
const blockNum = Number.parseInt(block.block_id.slice(0, 8), 16)
from dsteem.
Wow that's a great tip, i will definitely use that one. Thank you!
from dsteem.
Related Issues (20)
- runing problem HOT 3
- error
- Demo is not working. Demo should not be using websockets. HOT 3
- Best way to load post comments HOT 1
- Please create api for get_account_votes
- getOperationsStream() does not stream on mode: BlockchainMode.Latest
- Support for different asset symbols (private blockchains)
- Steem API changes HOT 1
- Change Date.now() to props.time
- client.broadcast.comment does not return a status HOT 3
- [Question] how do you encrypt a transfer memo?
- error node_modules/dsteem/lib/steem/serializer.d.ts(43,43): Error TS2304: Cannot find name 'ByteBuffer'.node_modules/dsteem/lib/steem/serializer.d.ts(43,43): Error TS2304: Cannot find name 'ByteBuffer'.
- One problem on build dsteem
- update_account missing permission parameter HOT 1
- So this project no longer maintained? HOT 1
- Maintainers wanted HOT 5
- Can't use get_reblogged_by
- ReferenceError: regeneratorRuntime is not defined
- Error occuredTypeError: Network request failed
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 dsteem.