Coder Social home page Coder Social logo

Comments (3)

theoreticalbts avatar theoreticalbts commented on July 24, 2024

I apologize for the lack of documentation. By stepping through the code, the correct curl syntax seems to be

curl -v --data '{"jsonrpc": "2.0", "method": "call", "params": [0, "info", []], "id": 1}' http://localhost:8091/rpc

The first argument is an API identifier, the second is a method name on that API, and the third is the arguments to the API. The API identifier is determined by register_api() call order on the connection object. We are planning to have several different API's, some of which will require authentication to access.

This results in calling the correct method, which you can verify by setting a breakpoint in info() method in wallet.cpp. However it hangs on the get_global_properties() call for some reason. I'll continue the investigation, this ticket should remain open until we have curl access working and documented.

from graphene.

theoreticalbts avatar theoreticalbts commented on July 24, 2024

@bytemaster wrote the API code, knows why remote_db is hanging, and has partially figured out a solution. Assigning this ticket to him.

Talking directly to the witness node is working. I'll write up some examples and add them to the docs in a bit.

from graphene.

theoreticalbts avatar theoreticalbts commented on July 24, 2024

Fixed by adding dedicated HTTP server with --rpc-http-endpoint option.

from graphene.

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.