Questions tagged [json-rpc]

The tag has no usage guidance.

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

Intermitent errors with jsonrpsee: WS error: i/o error: Transport endpoint is not connected (os error 107); terminate connection 1056

We've been getting some intermitent websocket connection issues on our production polkadot UI node since the upgrade to jsonrpsee. We are running a single Polkadot 0.9.24 container image on our K8s ...
user avatar
  • 222
0 votes
1 answer
32 views

Is it possible to fetch balance and nonce without using Polkadot.js?

How does one fetch the balance and nonce for a given address without using the polkadot.js client? This is how you do it with the client but I can't seem to find the rpc methods or tutorials to do it ...
user avatar
0 votes
1 answer
24 views

Invalid params for rpc

I am writing runtime rpc with multiple parameters: #[rpc] pub trait ShivarthuApi<BlockHash> { #[rpc(name = "shivarthu_challengerevidence")] fn get_challengers_evidence( ...
user avatar
0 votes
1 answer
62 views

Read spec chain in a custom rpc method

I know that some RPC query exist to get informations like : system_properties system_chain system_chainType But I would like to have all of them in a same custom call. How I can access to those ...
user avatar
  • 51
4 votes
0 answers
49 views

How to use the default Substrate CLI rpc-cors values without using rpc-cors=all for a Collator node and connect from Polkadot.js Apps

I want to be able to connect a collator node using https://polkadot.js.org/apps that is based on the substrate-parachain-template using branch 'polkadot-v0.9.18' and is being run as a parachain in ...
user avatar
  • 1,260
4 votes
1 answer
50 views

How do I include a new rpc that uses a NetworkWorker in the node-template?

The node-template says its service.rs is a specialisation of that on the substrate master branch. Hence, it's sort of hard to relate the two. Nonetheless, I'd like to expose an RPC endpoint that's ...
user avatar
  • 423
5 votes
1 answer
94 views

Decode extrinsic on substrate side

hello is there a way to decode this kind of extrinsic on substrate side without polkadotJs : extrinsics: [0402000b935b2a697f01, ...
user avatar
  • 51
1 vote
1 answer
28 views

Can I make a frontier node only accept json-rpc read methods?

Is there a way to filter ethereum json-rpc methods to only allow read calls, not writing? ie, filter out sendTransaction, sendRawTransaction, create, etc
user avatar
  • 124
4 votes
2 answers
57 views

Can the metadata of Polkadot change?

As far as I know, the metadata of Polkadot is version 14. Assuming that the metadata version is not updated, Can the metadata of the recent block be different? ex) Block(#9135844)'s metadata != Block(#...
user avatar
  • 415
1 vote
1 answer
49 views

How to solve 'Invalid transaction version'?

use std::any::Any; use std::io; use subxt::*; use subxt::{ClientBuilder,DefaultConfig, DefaultExtra}; use subxt::codec::Decode; use crate::sp_runtime::OpaqueExtrinsic; use sp_runtime::{ generic::{ ...
user avatar
  • 415
3 votes
1 answer
83 views

What is the difference between Metadata and FRAME-Metadata?

What is the difference between Metadata and Metadata Type Definitions in Substrate? Also, when I do the state_getMetadata RPC call I get the metadata. It is rather long. Is there a way to cache this ...
user avatar
  • 415
5 votes
2 answers
169 views

How to decode extrinsic at json-RPC call's data(byte code)

I call json-RPC through the terminal and get the data as below. extrinsics is raw byte, but I'm using polkadot-js(SCALE codec?) to decode it. But I don't know which method to call. "block": ...
user avatar
  • 415