Code Monkey home page Code Monkey logo

iota.lib.rb's People

Stargazers

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

Watchers

 avatar  avatar  avatar

iota.lib.rb's Issues

ArgumentError (wrong number of arguments (given 6, expected 0))

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

Fetching balance 0

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!

Only 1 address downloaded and balance 0

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'

Add support for IOTA 1.5 API

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

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.