Questions tagged [json-rpc]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
182 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 ...
Luke Schoen's user avatar
  • 2,292
2 votes
0 answers
39 views

How can I use the --rpc-cors flag properly?

I m attempting to use the --rpc-cors flag to specify certain domains that are allowed to send requests to my chain (localhost - substrate-node-template). However, regardless of how I use this flag, I ...
rirotho's user avatar
  • 113
2 votes
0 answers
68 views

RPC apis & node entry-points

I am trying to identify all the possible entry points that an extrinsic can reach the node. From my understanding so far the following rpc endpoints are the only ones that can add transactions to the ...
thduke's user avatar
  • 21
1 vote
0 answers
37 views

Subscribe via json-rpc has no response

I don't get any response from json-rpc subscription. It seems I need a type paramater, but the provider.subscribe() method does not document the type parameter. (I checked the js, java and python code,...
DerekC's user avatar
  • 205
1 vote
0 answers
94 views

Metadata V12 / V14

We just migrated from substrate v3 to substrate v4, after that I expected to have metadata V14 when I'll call state_getMetadata rpc method. but I still get V12 metadata and I don't understand why. If ...
cibou's user avatar
  • 131
1 vote
0 answers
59 views

Get System info in custom RPC call

Hello I would like to be able to call fn system_name(&self) -> RpcResult<String> { Ok(self.info.impl_name.clone()) } inside a custom rpc call our custom rpc call is implemented like ...
cibou's user avatar
  • 131
0 votes
1 answer
50 views

upgrading substrate node from Polkadot 0.9.28 to 0.9.40

I have a substrate node of Polkadot 0.9.28. It is customised to enable contracts, and I have enabled the contract and runtime pallets. The tutorial I worked on is no more available in substrate docs. ...
Stanly Wilson's user avatar
0 votes
1 answer
113 views

Custom RPC sized array parameters

I have custom RPC, which looks like so #[rpc(client, server)] pub trait SomeRpcApi { #[method(name = "some_submitData")] async fn submit_data( &self, id: u64, ...
Ivan Temchenko's user avatar