Giter VIP home page Giter VIP logo

Comments (10)

sneurlax avatar sneurlax commented on May 23, 2024 1

@serhack could you reopen this issue? I'm on it.

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024 1

I am opening a pull request now to add this functionality. Perhaps it was in a previous version of monero-wallet-rpc -- if you need it, it should become functional soon

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024

OK, I debugged this and solved it in #61. Thank you for your submission and I apologize for the issue! get_transfers works when feeding in an array of parameters, but when feeding in a single string as a parameter would use the nonexistent $input_type variable, whereas only $input_types exists.

Thank you, @Codivorous!

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024

PS, the docs do say the following:

   * Look up transfers
   *
   * @param  array   $input_types      Array of transfer type strings; possible values include 'all', in', 'out', 'pending', 'failed', and 'pool'  (optional)

Check the code if you have an issue, but this really should have worked with just a string as an input--I just fucked up that bit of code :) Thank you again and please let me know if you have any other issues

from monerophp.

Codivorous avatar Codivorous commented on May 23, 2024

Thanks for the quick work @sneurlax!

from monerophp.

Codivorous avatar Codivorous commented on May 23, 2024

Unfortunately, this did not fix the issue completely. While the function now doesn't crash, I still can't actually get it to work.

This is the wallet that I am serving. As you can see, it has plenty of transfers:
bilde

The RPC wallet is running, and (hopefully) working:
bilde

This is the entire code snippet I am trying to run:
bilde

And then I get this output:
bilde

Running it without any parameters doesn't do anything either:
bilde

Same output. I hope I provided enough information for you to understand my issue :p

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024

@Codivorous, could you try passing get_transfers(['in']) and/or get_transfers('in')? all isn't a thing (I am making it so now.)

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024

I can tell it's not a thing from on_get_transfers in https://github.com/monero-project/monero/blob/master/src/wallet/wallet_rpc_server.cpp ...

from monerophp.

Codivorous avatar Codivorous commented on May 23, 2024

It does indeed work when you specify "in" - so the issue here is that "all" doesn't exist, even though it's the default and is also specified in the documentation. Thank you for your help again @sneurlax!

from monerophp.

sneurlax avatar sneurlax commented on May 23, 2024

Merged, all should work now

from monerophp.

Related Issues (20)

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.