-
Notifications
You must be signed in to change notification settings - Fork 4
Readme / Docs #31
Comments
Could you show me the JS code? The last block should return block info, such like:
To manage both Hot Wallet and Cold Wallet usage cases, the SDK separates sending token into small unit actions. How would you like to reduce usage code? I'm glad to hear a solution. |
This is just one example, I will create others in the next two weeks and we can figure out the best path: const vsys = require("@virtualeconomy/js-v-sdk"); Could become const vsys = require("@virtualeconomy/js-v-sdk"); ...or approximately that. The rest can be assumed as defaults. We can do similar stuff for registercontract, etc The goal is to make it more difficult for developers to make mistakes and to reduce the total lines of code needed to implement basic applications. |
Currently, the documentation is not very clear, we should reorganize the readme.md file.
Is there a difference between height and last block?
Both return
Height:
If these do not do exactly the same thing then we need to explain that. If these do exactly the same things, sometime later we should remove one or the other.
We should compare competing library's for usability. In general, we require users to write too much code in order to do relatively simple things like send our native token. We should try to reduce simple tasks to just one line of code wherever possible. The amount of boiler plate that is currently necessary for each simple function it's too high and will likely slow development, we can reduce this with some abstraction.
The text was updated successfully, but these errors were encountered: