Questions tagged [json-rpc]

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

Filter by
Sorted by
Tagged with
-1 votes
1 answer
28 views

I get this error with betfair API : "{'code': -32602, 'message': 'DSC-0018'}" using Python

I tried this code, which is taken from the Betfair site, but it doesn't work with listMarketCatalogue, while for example with listEventTypes it works: endpoint = "https://api.betfair.com/exchange/...
mario's user avatar
  • 31
0 votes
0 answers
26 views

GCP Blockchain Node Engine API Quota Issue

I have deployed an ETH Full node using GCP's Blockchain Node Engine. Having an issue with the APIs to access the JSON-RPC endpoint. So in the limits and quotas page they have mentioned two kinds of ...
Yasir Azeem's user avatar
0 votes
0 answers
9 views

JSON RPC request to OpenEMS Edge returns 503 code

I'm trying to send a JSON RPC request to an OpenEMS Edge instance from a python script, but am getting a 503 error in response. I know the Edge instance is fine because a JSONRPC request from Postman ...
Dipti Sengupta's user avatar
1 vote
1 answer
98 views

JSON-RPC v2 API. HTTP Layer. What are the appropriate HTTP Layer status codes for API responses?

I've been working on a Deno script that implements a JSON-RPC v2 API using Deno.serve(), which has been recently stabilized. While I've set up the basic CRUD operations and error handling, I'm not ...
suchislife's user avatar
  • 4,356
2 votes
0 answers
27 views

golang use json-rpc call sometime got unexpected EOF

I have a client, will sent request to haproxy,two bankend.sometimes, the client got unexpected EOF error,but check log did not see any other error. i have no idea . this is client code func (this *...
Daunmingze's user avatar
0 votes
1 answer
57 views

Console.Error.WriteLineAsync() vs Console.WriteLine, what is the difference. Why does the later throw exception?

I am trying to understand StreamJsonRpc and running an example from here. I have created a tone down example here. It contains server and client and communicates via StreamJsonRpc. In the server, when ...
VivekDev's user avatar
  • 21.3k
0 votes
1 answer
23 views

Merged mining pool compatible with RSK

I have installed ckpool compatible with RSK. But there is issue in connection with rsk node. This error is caused "Failed to get result in json response to mnr_getwork". I have inatalled BTC ...
Cergei's user avatar
  • 11
0 votes
0 answers
21 views

JSON-RPC libraries for java

I am looking for a json-rpc client library for java that will help with interprocess communication. I found json-rpc4j. Are there any other libraries that you can suggest? The josn-rpc 4j is not quite ...
Maliha Hossain's user avatar
2 votes
2 answers
86 views

Golang jsonrpc2 server where is it listending?

I want to create a simple LSP server in golang, and so far this is the code I wrote: package main import ( "context" "fmt" "os" "sync" &...
Matteo Possamai's user avatar
1 vote
1 answer
65 views

The aria2.addTorrent method in aria2c's RPC interface ignores "dir" option

I am using aria2c as a daemon (the RPC interface) on a server, and when I use aria2.addTorrent method to add a torrent + a specific directory where the files have to be downloaded, aria2c downloads ...
カルロサグ's user avatar
0 votes
2 answers
33 views

How to resolve "error of type null" on easybitcoin line 187

I have set-up bitcoin core on my windows and I have bitcoin-qt running. I am also using easybitcoin.php library to run rpc commands but when i try to run json rpc commands I dont get the results I ...
WamuiT's user avatar
  • 1
4 votes
1 answer
112 views

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 Testnet: HEDERA_NETWORK=TESTNET OPERATOR_ID_MAIN=0.0....
bguiz's user avatar
  • 27.4k
1 vote
1 answer
118 views

How do I configure "hedera-local-node" to to connect to hedera testnet?

I'm trying to run a Hedera local node locally, and I'm following the docker set up instructions followed by these instructions to set up a localhost network, but then hoping to change the connection ...
bguiz's user avatar
  • 27.4k
0 votes
0 answers
41 views

How to get "Request ID" for hedera transactions that are not errors?

When sending transactions using ethers.js to the Hedera testnet, and one errors, I can catch it like so: } catch (error) { if (error instanceof Error) console.log(error.message); ...
bguiz's user avatar
  • 27.4k
1 vote
0 answers
103 views

json-rpc golang server curl: (52) Empty reply from server

Can anyone suggest what I'm doing wrong? I have a JSON-RPC server. If I run it using 'go run ...', everything works fine and the cURL requests go through. But when I run it using docker-compose, I get ...
Rustam Khusainov's user avatar
0 votes
2 answers
547 views

Hello, i am getting this error when trying to deploy a contract on the zksync testnet

i am getting this error when trying to deploy an NFT to the zksync testnet. The full example can be found heretext. the following error comes up when i have enough funds in the wallet whose pvt key i ...
SpectralMedia's user avatar
1 vote
1 answer
218 views

How to get the account balance on the sepolia network using Metamask SDK in Unity?

I have installed the metamask SDK for Unity and I am playing around with the MetaMask Main scene. I tried to add a button to get the wallet balance: public async void AskBalance() { ...
downstroy's user avatar
  • 960
2 votes
1 answer
52 views

TypeError: 'solders.rpc.responses.GetAccountInfoResp' object is not subscriptable (Solana program)

This is the code I am getting TypeError: 'solders.rpc.responses.GetAccountInfoResp' object is not subscriptable (Solana program). I have tried this but it is not working. import struct from pprint ...
Juan Hoyos's user avatar
1 vote
0 answers
93 views

Simulating a double spend transaction on Monero (Creating an intentionally invalid tx)

I want to create an end-to-end test in order to validate that an application doesn't let you spend before an incoming transaction confirms. I'm trying to broadcast an invalid tx to the Monero network ...
Alice's user avatar
  • 422
2 votes
2 answers
279 views

Is there an analog of swagger ui for OpenRPC?

Is there a tool that can visualise OpenRPC json documents to HTML, like swagger ui for OpenAPI json or yaml documents?
nik0x1's user avatar
  • 162
1 vote
1 answer
74 views

How to parse JSON-RPC table with different type

I want get informations in JSON-RPC file with this structure : { "id": "foo1", "error": null, "result": [ { "key": [ ...
ipStack's user avatar
  • 365
0 votes
0 answers
136 views

TrustWallet doesn't show confirmation popup after few minutes of closing app "Flutter"

I am using walletconnect_dart package to connect with metamask/trustwallet and send transaction for metamask it's working but for TrustWallet when user close app and come back after few minutes ...
Amjad Khan's user avatar
0 votes
0 answers
132 views

JSONRPC Player.GetItem returns empty details

I start a video with JSON-RPC call: {"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": {"file&...
Szabó Győző's user avatar
0 votes
0 answers
87 views

Why does this javascript code not redirect the user after the metamask transaction?

I want to make a javascript code that does a metamask transaction and redirects the user to another page after the transation is completed. How easy this may sound, I can not figure it out. My current ...
BlockB's user avatar
  • 1
0 votes
1 answer
80 views

scala-json-rpc: value pretty is not a member of io.circe.Printer

i recently updated huge project from Scala 2.12 to 2.13 and switched form using https://github.com/shogowada/scala-json-rpc to: https://github.com/nawforce/scala-json-rpc And few methods - ...
Ni3dzwi3dz's user avatar
0 votes
0 answers
22 views

What is the correct approach for load testing evm?

I am trying to create a load testing script for a simple evm with jsonrpc. I have a different type of methods in my mind. First one is that i will send lets say 1000 requests(write transactions) to ...
T.I's user avatar
  • 53
1 vote
0 answers
309 views

Decode Result From JSON-RPC eth_call to a Smart Contract

I would like to know if web3py or another package has a function to decode the result you get when you send a call to a smart contract. Something similar to decode_function_input or abi....
testtesteur's user avatar
0 votes
1 answer
507 views

Application fails on run in a new release of SpringBoot 3.0.0

I'm using jsonrpc4j library to handle my jsonrpc api. After migrating to new release of SpringBoot 3.0.0 it builds, but fails on run with an error of RemoteExporter: ERROR 22396 --- [ main] ...
r2r's user avatar
  • 13
1 vote
0 answers
269 views

What is the most elegant way in Golang to create JSON-RPC struct with params

I'm creating a Golang app to communicate with proprietary third-party JSON-RPC API that is sensitive to the order of elements. Request should be sent using POST over HTTPS. Here is a request sample: { ...
ivan-capk-me's user avatar
0 votes
0 answers
67 views

What's the best way to send requests to a rust-analyzer instance programmatically?

I am working on a proc macro, and would like to be able to write some tests to ensure it's playing nice with rust-analyzer (e.g. correct localized diagnostics). Ideally, my testing suite would look ...
sak's user avatar
  • 2,662
1 vote
1 answer
123 views

Why sends of "large" array/slice using net/rpc/jsonrpc codec over unix socket connection hang?

I'm trying to send an array of data as an rpc reply using golang's built-in net/rpc server and client and the net/rpc/jsonrpc codec. But I'm running into some trouble. The data I'm sending is around ...
qciccoretti's user avatar
0 votes
1 answer
135 views

How to use Ethereum RPC API to swap tokens?

I am trying to code a client for swapping tokens through BSC chain (I really don't want to use web3 libraries) using Ethereum API. So learned some stuff from Ethereum RPC API documentation, but i can'...
your name here's user avatar
1 vote
0 answers
249 views

vscode-jsonrpc example

I'm trying to use vscode-jsonrpc to communicate between a VSCode extension and a Json-RPC server running in a child process. The minimal code I have so far: import * as rpc from 'vscode-jsonrpc/node'; ...
nhuber's user avatar
  • 13
-1 votes
1 answer
362 views

How to properly calculate eth fees?

I'm trying to sign and broadcast ETH transaction, but it seems like I'm struggling to calculate the correct fee. Here's sample data I use to sign a transaction: maxPriorityFeePerGas: 0x1 maxFeePerGas: ...
Reviving3945's user avatar
1 vote
0 answers
109 views

StreamMessageReader is not a constructor in Electron + Monaco app

I'm trying to build an application using Electron with Monaco editor. I used monaco language client to integrate the editor with clangd. But somehow it didn't work... After manually connecting to the ...
Sam Zhang's user avatar
  • 320
1 vote
0 answers
185 views

JSON-RPC service post request with response with Angular

I have a probleme. I will call JSON-RPC request. My Http post request on service.ts service.ts @Injectable({ providedIn: 'root' }) export class Service { public ...
Din14's user avatar
  • 41
2 votes
1 answer
343 views

Golang Example of jsonrpc over WebSocket?

Does anyone have a working example they can share of both client and server for a golang jsonrpc (1 or 2 is fine) + websocket implementation? The docs seem a little thin in this area. I managed to ...
John Brodie's user avatar
1 vote
0 answers
395 views

How to call JSONRPC to Odoo API getting data from multiple models in a single request?

I am calling JSONRPC from an application using this code: const res = await axios.post(server + '/jsonrpc', { "jsonrpc": "2.0", "method": "call", &...
holydragon's user avatar
  • 6,248
0 votes
0 answers
658 views

HH110: Invalid JSON-RPC response received: {"jsonrpc":"2.0","id":14} (While using matic testnet with Alchemy API)

I'm running an Alchemy node (Matic Mumbai Testnet), having already set up Hardhat in VScode with the required dependencies. However, I get this error when I try to deploy to the testnet. Here is the ...
Uchechukwu Ottah's user avatar
-1 votes
1 answer
386 views

Go Ethereum, txpool Namespace, empty responses

I have access to a Geth node running with the following options: geth \ --http \ --http.addr 0.0.0.0 \ --http.port 8545 \ --http.api eth,net,web3,txpool \ --http.corsdomain '*' The node has ...
Edouard Barthélémy's user avatar
1 vote
0 answers
72 views

Is there a way to cancel or override a jsonrpc call?

I'm using Polkadot.js in my project, and I have a function where user click to filter assets by categories. The issue is if the user click very fast, two rpc calls will be dispatched, instead of the ...
cfx_p's user avatar
  • 26
1 vote
1 answer
163 views

Connecting a golang code with browser based vanilla JS

I am trying to connect a golang code with browser based vanilla JS in the browser using json-rpc yet I keep getting TypeError: Failed to fetch Here is the code The server in go package main import ( ...
vanessa boehr's user avatar
1 vote
0 answers
254 views

JSON-RPC with Golang. Electrumx error: Invalid scripthash

Tell me please where is my mistake i try get balance use this method https://electrumx.readthedocs.io/en/latest/protocol-methods.html?highlight=balance#blockchain-scripthash-get-balance i get ...
Timofey Belanenko's user avatar
0 votes
1 answer
96 views

Go json-rpc returns empty respond [duplicate]

I'm writing a client-server interaction using json-rpc protocol, via Go standard library. Server side works fine, but i can't get correct respond, i get empty respond. Respond type is public. Server ...
DedAzaMarks's user avatar
-1 votes
1 answer
591 views

How to use JSON-RPC POST request?

I never used JSON-RPC before and a client of mine gave me some API credentials to fetch the info to post on the website. So, I never heard about JSON_RPC before and the only thing I have is this: curl ...
ffas's user avatar
  • 69
0 votes
1 answer
214 views

How to correctly pass return of one method to another in JSON-RPC in one request?

I'm making typical JSON-RPC API (based on json-rpc Python library) for the serverless E-Commerce site. I want to register users when they are ordering something. And I'd like to do this in one request ...
Vladislav's user avatar
  • 142
0 votes
1 answer
698 views

Migrate WebClient JSON-RPC calls to HttpClient in C#

I would like to accomplish the same thing as this using HttpClient in .Net 6 using (var webClient = new WebClient()) { // Required to prevent HTTP 401: Unauthorized messages webClient.Credentials =...
bobandweave's user avatar
2 votes
1 answer
758 views

RPC call with Metamask

I want to create an RPC call (study purpose) from my app using metamask. My method on my contract is: function sayHelloMyName(string memory _name) external pure returns (string memory) { ...
foo_bar's user avatar
  • 99
2 votes
1 answer
544 views

Making curl requests to ganache server hosted locally

I'm trying to figure out how to make requests to a local ganache server. This is my first time using Ganache so forgive me if this should be obvious. My end goal is to have a dedicated server hosting ...
mdkazierad's user avatar
-1 votes
1 answer
340 views

Approach to Migrate from twisted to fastapi Framework [closed]

I had a requirement of migrating twisted to FastApi. The old code was completely written in Python 2.7 and used JsonPrc along with twisted client. Like - [https://stackoverflow.com/a/4738563][1] Even ...
max's user avatar
  • 7

1
2 3 4 5
14