Questions tagged [json-rpc]

JSON-RPC is a standard JSON data-format based (r)emote (p)rocedure (c)all protocol.

See http://json-rpc.org/ for specification and implementations for various languages.

JSON stands for JavaScript Object Notation. It is a text-based lightweight data-interchange format. See http://www.json.org/ for details.

RPC stands for remote procedure call, which is a family of protocols. See the Wikipedia article Remote procedure call for origins, current variations and applications.

673 questions
4
votes
1 answer

When running "hedera-json-rpc-relay", how to configure a connection to Hedera Testnet?

I'm following the instructions on hedera-json-rpc-relay: Specifically docs/configuration.md, attempting to run the RPC relay connecting to Hedera…
bguiz
  • 27,371
  • 47
  • 154
  • 243
4
votes
1 answer

How to set response status code in route with type json in odoo 14

I have created a route with type Json in odoo 14. @http.route('/test', auth='public', methods=['POST'], type="json", csrf=False) def recieve_data(self, **kw): headers = request.httprequest.headers args = request.httprequest.args …
Aemal Shirzai
  • 65
  • 1
  • 7
4
votes
1 answer

Trouble posting CREATERAWTRANSACTION to Bitcoin Core via JSON-RPC

I'm trying to post to a local bitcoin full node via json-rpc but I'm getting an error from the server. Following the documentation here: https://bitcoincore.org/en/doc/0.17.0/rpc/rawtransactions/createrawtransaction/ I can see the following example…
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
4
votes
2 answers

JSONRpc Client over websocket C#

I need a JSON-Rpc client to communicate over websocket to the server. In particular, I need to create an interface and use methods to send JSON requests to the server. Does someone know how to do that? I found the StreamJsonRpc library, but it…
Mattia
  • 133
  • 2
  • 8
4
votes
2 answers

When implementing a JSONRPC 2.0 server, is it required to support both named, and positional arguments?

According the spec here: http://groups.google.com/group/json-rpc/web/json-rpc-2-0 more specifically, this section: If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name…
user61000
  • 540
  • 5
  • 10
4
votes
2 answers

How to get data from a json-rpc webservice : iPad /iPhone / Objective C

I'am working on a iPad project and this project needs to talk to a json-rpc webservices. The webservices is based on Drupal with module : cck and views 1)I need to push a json object into the webservice 2)I need the callback data from the…
Bart Schoon
  • 299
  • 5
  • 11
4
votes
1 answer

Making a GET request of a JSON RPC API instead of a POST request

Is it possible to make a GET request to a JSON RPC API? I'm trying to do this using the random.org api (https://api.random.org/json-rpc/1/). It's functioning if I use a POST request but I need to make GET requests for all APIs that I'm using in the…
user3006927
  • 484
  • 4
  • 15
4
votes
2 answers

Events not reaching kurento java server

I'm new to Kurento media server, I am trying to send an event from kurento media server to the java application which I have. I have created an event using the following steps: edited the interface json file: "events": [{ "properties": [{ …
Sagar Pilkhwal
  • 3,998
  • 2
  • 25
  • 77
4
votes
1 answer

Simple JSON-RPC in C++ for embedded platforms?

The desired key-feature for me is the ability to register functions of objects to the JSON-RPC server task, which then calls the function, in case the respective JSON-RPC-call was received. How can this be done? I found…
DPF
  • 270
  • 1
  • 2
  • 12
4
votes
2 answers

golang http+jsonrpc access from web page

I've used Go's net/rpc and net/rpc/jsonrpc packages a bit to perform connections between Go processes, however I'm wondering if there is a way to connect to an HTTP JSONRPC server using only the server tooling from the standard library (not that I…
Brad Peabody
  • 10,917
  • 9
  • 44
  • 63
4
votes
1 answer

How to submit a JSONRPC request using JavaScript

I am working in a JSONRPC webservice and I am trying to send the request to the server end to get the response. Basically I am trying to send the following details in the request methodname//example 899 Language code Transaction code User…
zulu
  • 63
  • 1
  • 5
4
votes
3 answers

How to respond to HTTP OPTIONS request on a JSON-RPC server

My JSON-RPC client (browser using dojo JSON-RPC) makes a JSON-RPC request (dojo.callRemote) to my JSON-RPC server on myserver.com/12345 (Python 2.5, SimpleJSONRPCServer). The server then gets a HTTP request with header "OPTIONS / HTTP/1.1", which…
4
votes
1 answer

How to maximize bitcoind JSON-RPC performance?

Does anyone have suggestions for optimizing a script that reads the blockchain from JSON-RPC? Is it possible to use HTTP/1.1 keepalive to avoid re-stablishing a TCP connection for each query? Does the JSON-RPC service support concurrency? UPDATE I…
odigity
  • 7,568
  • 4
  • 37
  • 51
4
votes
1 answer

Reading multiple JSON objects on a JSON-RPC connection

I am making a streaming API which handles both RPC style calls as well as notifications from the server to the client (not the notifications in the JSON-RPC spec which are client to server). This last part unfortunately rules out JSON-RPC +…
jmc
  • 813
  • 10
  • 18
4
votes
1 answer

Understanding JSON-RPC in Perl

I am trying to understand the concept of JSON RPC and it's Perl implementation. Though I can fin d a lot of examples for Python/Java, I find surprisingly little or no examples for it in Perl. I am following this example but am not sure it is…
rahuL
  • 3,330
  • 11
  • 54
  • 79