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
0 answers

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 session is still connected but it doesn't show…
0
votes
0 answers

JSONRPC Player.GetItem returns empty details

I start a video with JSON-RPC call: {"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": {"file": "c:\\MyCodes\\samples\\sample-6s.mp4" }}, "id": 1 } Video is started. To get the video's details I use…
0
votes
0 answers

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 code lets the user complete the transaction, but…
BlockB
  • 1
0
votes
1 answer

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 - jsonRPCServer.{bindApi, receive} and jsonRPCClient.createAPI…
Ni3dzwi3dz
  • 177
  • 8
0
votes
0 answers

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 the server and wait for the responses and calculate…
T.I
  • 53
  • 5
0
votes
1 answer

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] o.s.boot.SpringApplication :…
r2r
  • 13
  • 5
0
votes
0 answers

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 something like this: Start rust-analyzer pointed…
sak
  • 2,612
  • 24
  • 55
0
votes
1 answer

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't really understand what are the steps for…
0
votes
0 answers

How to use getSpaceGroups json-rpc api?

I want to get all the space groups assigned to a space. I was using the Atlassian REST API Browser and found the API " json-rpc/confluenceservice-v1/getSpaceGroups" to fetch the groups of a space. I tried using this API to fetch the space groups but…
DareToDead
  • 57
  • 6
0
votes
0 answers

convert json RPC request to byte array

I am new to json RPC and Ethereum. I am trying to query 2 JSON RPC methods eth_sendTransaction method { "jsonrpc":"2.0", "method":"eth_sendTransaction", "params":[ { "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", …
akram
  • 157
  • 1
  • 15
0
votes
0 answers

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 error I get: HardhatError: HH110: Invalid…
0
votes
1 answer

Go json-rpc returns empty respond

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 side func (h *Handler) AddUser(request…
0
votes
1 answer

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 (because I'm using service like AWS…
Vladislav
  • 142
  • 1
  • 8
0
votes
1 answer

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 = new NetworkCredential(username, password); //…
0
votes
1 answer

jodd.json.jsonException while parsing a map Liferay post api

I'm trying to expose a post api with this signature, i need to get a map with String key and String value, same for the return: public Map retrieveBulkState2(Map idsAndMails) throws PortalException{ I'm trying to call…
Vavaste
  • 139
  • 1
  • 5