vivekmarakana / iota.lib.rb Goto Github PK
View Code? Open in Web Editor NEWRuby Library for IOTA with core and wrapper api implementation.
Home Page: https://ecosystem.iota.org/projects/iota-ruby-gem
License: MIT License
Ruby Library for IOTA with core and wrapper api implementation.
Home Page: https://ecosystem.iota.org/projects/iota-ruby-gem
License: MIT License
Hi!
I am having problems fetching transfers.
Running
account.getAccountDetails
I get ArgumentError (wrong number of arguments (given 6, expected 0))
Any idea on how to solve it?
Debugging the source code of the gem, I saw it could come from
curl.absorb(transactionTrits)
/iota-ruby-1.1.7/lib/iota/utils/utils.rb:78
Many thanks
Hi!
Firstly thank you so much for this library, it's so useful!
I am trying to use the library like this:
client = IOTA::Client.new(provider: 'https://pool.trytes.eu')
if client.api.getNodeInfo[0]
account = IOTA::Models::Account.new(client, iota_seed)
account.getAccountDetails
puts account.balance
else
return "IOTA Node not available"
end
but the balance returned is 0. Also account.transfers
returns an empty array.
While I am sure there is a positive balance (Trinity wallet shows a positive amount).
Am I doing something wrong?
How can I get all the transactions and the updated balance?
Many thanks!
Hey there!
This is a great gem. I am trying to use in this way:
account = IOTA::Models::Account.new(client, SEED)
account.getAccountDetails
puts account.addresses
puts account.balance
but it seems to load only the first generated address and a 0 balance (since there are no transactions with the first address).
Am I doing something wrong?
Thanks!
I tried also:
account.getAccountDetails(start: 0, end: 3)
but then I get the following error:
ArgumentError (wrong number of arguments (given 233084736, expected 0))
I am using gem 'iota-ruby', '~> 1.1.4'
I've spent most of the day getting version 1.0 of the IOTA Hornet server to run, and now discovered that there's a new API, so my client is no longer compatible (yay). We'll need to update this gem to support the new API.
Here's the release announcement:
https://blog.iota.org/the-new-chrysalis-network-is-live/
And here's the API docs, that's all the information I can find so far:
https://editor.swagger.io/?url=https://raw.githubusercontent.com/rufsam/protocol-rfcs/master/text/0026-rest-api/rest-api.yaml
iota.lib.rb/lib/iota/models/account.rb
Line 225 in 18a9f02
NameError: undefined local variable or method
thisBalance' for #IOTA::Models::Account:0x0000556f58c00c48`
iota.lib.rb/lib/iota/models/account.rb
Line 376 in a11f31a
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.