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

Creating FS wallets on solana using JSON RPC

I'm new to Solana and trying to create FS wallets using JSON RPC API. I read about solana CLI interface and can generate new FS wallets using solana-keygen new . But now I'm trying to do the same using JSON RPC. I've…
Saad Saadi
  • 1,031
  • 10
  • 26
0
votes
1 answer

Trying to access the end point of a json rpc service from a java spring API by using axios in react js

I'm actually trying to access the method at that endpoint but I keep getting the classic CORS error "Access to XMLHttpRequest at 'http://localhost:8080/rpc-measurements' from origin 'http://localhost:3000' has been blocked by CORS policy: Response…
The Virtuoso
  • 105
  • 1
  • 8
0
votes
1 answer

how to send and receive tokens via Solana JSONRPC

there's the following ETH JSONRPC implementation to transfer tokens, which can be utilised via curl in PHP and I would like to do EXACTLY the same but on the Solana Blockchain - which supports it's own JSONRPC implementation var whatever=…
0
votes
1 answer

Difference between JSON-RPC Endpoints of BSC, https://bsc-dataseed1.binance.org:443 vs https://data-seed-prebsc-1-s1.binance.org:8545/?

I was still doing well with JSON-RPC Endpoint (https://bsc-dataseed1.binance.org:443) from https://docs.binance.org/smart-chain/developer/rpc.html; normally it's only about 5X,XXX var web3 = new Web3('https://bsc-dataseed1.binance.org:443'); var…
Phong Thai
  • 95
  • 11
0
votes
1 answer

How can I connect to the JSON RPC API using Python (blockchain)

I need to interact with blockchain network by API (by Python)? but I have few problems with it. I have rpcuser, rpcpassword, ip, and port of rpc; api endpoint; and network such as wif_prefix_hex=, address_prefix_hex=, pay_to_script_prefix_hex= and…
0
votes
1 answer

Solana Determine Date and Time of Inflation Reward Distribution by Epoch

Is there any way to determine the exact date and time that corresponds to when inflation rewards were distributed for a given epoch? For example, the following: payload = { "jsonrpc": "2.0", "id": 1, "method": "getInflationReward", …
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
0
votes
2 answers

Problem getting the balance of Phantom wallet with json-rpc request using javascript async function?

I have a connection to the Phantom wallet. I'm expecting phantom_balance() to return a balance or data containing the balance. Do I have an error in the json-rpc formatting? I'm getting the following JsonRpcEngine failure on the catch(). Phantom -…
AIRAD LABS
  • 136
  • 1
  • 4
  • 13
0
votes
1 answer

Solana JSON RPC requests time out

I'm trying to query information from the Solana blockchain using the API examples in the documentation (https://docs.solana.com/developing/clients/jsonrpc-api). I'm using: curl https://api.mainnet-beta.solana.com:8899 -X POST -H "Content-Type:…
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
0
votes
1 answer

Handling dynamic JSON schema decoding

I have a Go HTTP client which sends/parses JSON-RPC requests. HTTP POST Request : [ {"id":"1", "method":"action1","params":[]}, {"id":"2", "method":"action2","params":[]}, ... {"id":"X", "method":"actionX","params":[]} ] HTTP response…
ipStack
  • 381
  • 1
  • 12
0
votes
1 answer

Is Json RPC called "JSON" RPC because it returns JSON?

Is JSON RPC called "JSON" RPC because it returns JSON? So today I have learnt that there several types of apis. Like REST apis, RPC apis, GraphQL apis and others. I am familiar with REST apis and I now trying to understand Json RPC? What does the…
YulePale
  • 6,688
  • 16
  • 46
  • 95
0
votes
2 answers

PHP Warning: Illegal string offset of jwt

I have the following response from jsonRPC endpoint: { "jsonrpc": "2.0", "result": { "jwt": "EXAMPLE" } } When I log $response->getRpcResult() I get { "jwt": "EXAMPLE" } When I try taking the value of jwt…
Melchia
  • 22,578
  • 22
  • 103
  • 117
0
votes
1 answer

jsonrpc eth_getBalance fails

I get an undefined error and the id is null when running the following code: Geth is running on port 3334 and is running on the rinkeby network. Any ideas why this is failing? the output of running this code is jsonrpc:2.0; id:null; error:[object…
Jeff
  • 137
  • 1
  • 6
0
votes
1 answer

Json RPC returns bad response if contains Cyrillic symbols

I send Json RPC request in simple HTTP Client in IntellijIdea POST http://localhost:8080/endpoint Content-Type: application/json { "jsonrpc": "2.0", "method": "getSomething", "id": 1, "params": { "param1": "1" } } It's valid request…
Dmitry
  • 1
  • 1
0
votes
1 answer

Unable to monkeypatch an rpc server class method

I need to monkeypatch a class method that is decorated with the @method annotation of the jsonrpcserver library. The class is implementing a rpc server that is started as an asyncio server and is launched using a pytest fixture like this #…
Antonio Santoro
  • 827
  • 1
  • 11
  • 29
0
votes
1 answer

Decode JSON RPC request to a contract

I am currently using some website to read some useful data. Using the browser's Inspect>Network I can see this data comes from JSON RPC requests to (https://bsc-dataseed1.defibit.io/) the public available BSC explorer API endpoint. This requests…
lobis
  • 145
  • 1
  • 10