numtel / node-nano-node Goto Github PK
View Code? Open in Web Editor NEWNano currency (Formerly raiblocks) partial node for node.js
License: MIT License
Nano currency (Formerly raiblocks) partial node for node.js
License: MIT License
Hi there. First off, thank you for publishing this library. It has been very helpful.
Maybe you can help me with this... I'm getting slightly different block values when calling fetchAccount()
when compared to the standard RPC account_history
command. See below:
Result for a block from standard RPC account_history
:
{
"type": "state",
"representative": "xrb_3dmtrrws3pocycmbqwawk6xs7446qxa36fcncush4s1pejk16ksbmakis78m",
"link": "D13B986A0CF2BC94D5CA0082481E183DA46FE4563062CF3343EBDF6868081198",
"balance": "3262708019134564853214085120",
"previous": "27062303E310F7541E89CB3CF5E6436ADFEFF80F70C5A7E31FF9DDB2BD9F0415",
"subtype": "receive",
"account": "xrb_1setuaf6nzm7mfd5x1enuc8wx9hap6jhxqraz3an339ugq6f64f1u4rnzgod",
"amount": "326270801913400000000000000",
"hash": "5838BD8360C0FDEE00F7CF309277F2A1B63344178F8BEB3529ED996C35001C54",
"work": "0000000005a1fa29",
"signature": "185B9B69CAD6E005063E7A676111EC30EB1E5EB7697BFE7515DCA2BA575838EFF29F7E4BA1F56C1BB8F0A421035F44918728236654AEC5812EEDFB330417D20C"
}
Result from the same block using fetchAccount()
:
{ type: 'state',
account: 'ed506ad4a0bf811e69ddb1f2fe5dc28abc0d4d9817ec246fd9915aa7e933c7b3',
previous: '27062303e310f7541e89cb3cf5e6436adfeff80f70c5a7e31ff9ddb2bd9f0415',
representative: 'ae7ac63990daaaf2a69bf11c913b928844bf5012355456f2f164166464024b29',
balance: '3262708019134565000000000000',
link: 'd13b986a0cf2bc94d5ca0082481e183da46fe4563062cf3343ebdf6868081198',
hash: 'f2bf3d8e6f571d0fa1b95c62fa2dfb391c725a49b22774532b5aae241f4bc683',
signature: '185b9b69cad6e005063e7a676111ec30eb1e5eb7697bfe7515dca2ba575838eff29f7e4ba1f56c1bb8f0a421035f44918728236654aec5812eedfb330417d20c',
work: '0000000005a1fa29' }
As you can see the work, signature, link, previous values are the same; but the hash values are different? Do you have any clue as to why this would be? Is there some kind of encoding happening?
Thanks in advance
Right now if you receive a publish, there is no way to validate the signature.
Great project,
However, I'm bit confused on how to detect the amount transferred when "send" block detected?
It contains previous balance of the account but not the actual amount being sent.
Maybe I'm missing out something..
Thanks
Hi, is this library still working as intended? I have tried getting the state block example to work but no blocks are being logged to console. Maybe a change in the node software has caused something not to work as before? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.