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
0
votes
1 answer

JSONRPC sendtoaddress returning "result":null,"error", running cURL manually works

I am having trouble finding out why my script is returning "result":null,"error" rather than a successful transaction. This curl command works when run manually; curl --user username:password --data-binary '{"jsonrpc": "1.0", "id":"curltest",…
user1222302
  • 31
  • 2
  • 7
0
votes
0 answers

ionic 5 and Odoo connection got error on handling json response

I am trying to connect odoo and ionic 5 using api interface. Below is my Odoo controller: @http.route('/ionicon/authenpost',type="json",csrf=False,cors="*", auth="public",website=False, method=['POST']) def authenPost(self,…
Joozer
  • 25
  • 6
0
votes
1 answer

Handle multiple wallets with easybitcoin

I want to create a wallet for every user. With the easybitcoin rpc, I would like to call up the balance in php. Everything runs in the testnet. I found out that I have to adjust the initialization like: $bitcoin = new…
0
votes
1 answer

Is there a function for determining how many bytes are left to read on a unix domain socket?

The aim is interact with an OpenEthereum server using json-rpc. The problem is once connected, I need to react only when receving data as the aim is to subscribe to an event so I need the recv() function to be blocking. But in that case, if I ask to…
user2284570
  • 2,891
  • 3
  • 26
  • 74
0
votes
1 answer

jsonRPC model binding in .net core 3.1

I upgraded my project to .net core 3.1 and upgraded EdjCase.JsonRpc.Router to 4.1.0 I tried a request on postman, everytime request body is null, after upgrading. I added …
Recep Duman
  • 336
  • 4
  • 11
0
votes
1 answer

JSON-RPC vs JSON Patch

There are a lot of comparisons like "REST vs smth" (eg vs Kafka, vs JSON-RPC), but I also see many similarities between JSON-RPC and JSON Patch – both of them specify operation/method, values/parameters, and allow to perform batch requests. The only…
AivanF.
  • 1,134
  • 2
  • 23
  • 52
0
votes
2 answers

signrawtransactionwithwallet shows error Unable to sign input, invalid stack size (possibly missing key)

I'm trying to send trasaction in Bitcoin testnet. So I'm doing this: create arrays of inputs and outputs, then call createrawtransaction and get transaction hex. Then I call decoderawtransaction and see this: stdClass Object ( [txid] =>…
Alexey Kolchin
  • 105
  • 1
  • 1
  • 8
0
votes
1 answer

json rpc 2.0 in laravel api errors on add request

I add https://github.com/sajya/server for making json rpc over my laravel 8. I just follow the instructions provided here to test it https://sajya.github.io/docs/ All works for the basic example, But if I add params to the curl string an error is…
JahStation
  • 893
  • 3
  • 15
  • 35
0
votes
1 answer

Is it possible to receive rpc-websocket json request in angular from python?

My client is based on angular and electron, the server is written in python language. I am able to send json-rpc requests between python-python and angular-angular. I want to send a json object to client using json-rpc websocket from python to…
0
votes
0 answers

Unable to store Json RPC response in react native but able to console.log it

We have Json RPC response in {},{},{} We are unable to save the response as a variable but can see it via console.log() after doing Jsonrcp.parse(response) which we got from the below library We are using the JsonRPC-Lite library…
0
votes
1 answer

How do I distribute JSON-RPC requests to backends?

Good day to all! Try to decipher the question more extensively. JSON RPC requests come from users in the form: { "" json rpc ":" 2.0 ", "method": "abc.new", "id": 423, "params": { "card": { "pan": "9342309420", "expiry": "4234" } } } and depending…
Deleteman
  • 13
  • 2
0
votes
1 answer

Echo part of a JSON string in PHP from a variable or object that returns a prepended response

This is what I get when echo a variable called $SessionID: string(76) "{"jsonrpc":"2.0","id":1,"result":"a0440004cf00a89c25377c9cdsf357f50644eec46fd96"}" I wish to only echo the "result" part of this data, i.e,…
salmanxk
  • 315
  • 5
  • 19
0
votes
0 answers

Could not connect to digital ocean ip from json rpc

I am using this curl function to connect to my digitalocean ip from my website, but am getting "Error:Failed to connect to myip port 8332: Connection refused" This is the call function am using
0
votes
1 answer

How to use getblocktemplate method with Bitcoinlib Library

I am using bitcoinlib to communicate with bitcoin-qt This is the code i tried: Dim BitcoinService As Services.RpcServices.RpcService.IRpcService = New Services.Coins.Bitcoin.BitcoinService("http://localhost:8332", "Username", "Password", "wallet…
Hamita
  • 61
  • 7
0
votes
1 answer

Unable to post GETBLOCKHASH to Bitcoin Core via JSON-RPC

The following code works fine for the most part: public static string RequestServer(string methodName, List parameters) { // Use the values you specified in the bitcoin server command line string ServerIp = "http://localhost.:8332"; …
oshirowanen
  • 15,297
  • 82
  • 198
  • 350