Skip to main content

Questions tagged [json-rpc]

The tag has no usage guidance.

2 votes
2 answers
51 views

Light Client (Smoldot) Connecting But Unable To Send Transactions

Implementing smoldot (substrate-connect) on a fork of the polkadot-JS. Connecting to a light node boot node works most of the time, but is intermittent. When we are able to connect via light client, ...
KathrynColleen's user avatar
0 votes
0 answers
18 views

I'm trying to connect my node to the parachain that im logging in with on my express backend

My goal is to be able to see the discover, incoming connection, and accepting connection in the parachain network, which I'm guessing should update the Idle 0 Peers to 1 Peer. I'm still currently ...
AndrewKim's user avatar
0 votes
0 answers
22 views

is the endpoint TransactionPaymentApi_query_info usable on current Westend testnet?

I was trying to query payment_queryInfo on current Westend testnet, and the following payload used to works at spec 9430. { "jsonrpc": "2.0", "method": "...
johnhckuo's user avatar
  • 123
1 vote
1 answer
81 views

payment_queryInfo returning Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed

I was trying to query payment_queryInfo on current Westend testnet, and the following payload used to works at spec 9430. { "jsonrpc": "2.0", "method": "...
johnhckuo's user avatar
  • 123
0 votes
1 answer
50 views

RPC author_extrinsicUpdate, missing TxIndex

Currently not sure if I missed something here, but I'm expecting TxIndex in the inblock and finalized updates of the extrinsic, but it seems to be missing. { "jsonrpc": "2.0"" ...
Cedric Decoster's user avatar
2 votes
0 answers
57 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
0 votes
1 answer
41 views

AssetConversionApi (asset_conversion_pallet) - How to encode function input parameters in price and reserves RPC calls?

I'm trying to use asset_conversion pallet to call quote prices, and get reserved rpc endpoints (defined here) In pallets official docs there is small section about calling that endpoint, but it doesn'...
Kaliman's user avatar
2 votes
1 answer
51 views

Calling external RPC method from OCW

I want to call an external RPC method from the offchain_worker. I checked multiple jsonrpc clients but none of them were no_std compatible. I want to know if there are any clients out there which can ...
StackedQ's user avatar
  • 131
0 votes
1 answer
67 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
3 votes
2 answers
247 views

polkadot js RPC can't get u128

i have an rpc call that returns an array of structs with multiple fields, one of which is balance of an asset for a user, balance type is u128. when the number is large i get this error createType(...
cocokick's user avatar
  • 165
2 votes
1 answer
224 views

How to call chain_getBlock with jsonrpsee?

I'm trying to call my node's chain_getBlock RPC method. I expect to provide a block hash, and get back a complete block. For starters, I've confirmed that the call I plan to make works as expected ...
JoshOrndorff's user avatar
  • 1,201
3 votes
1 answer
32 views

Why the two ways to get blockhash is not same?

why the two ways to get blockhash is not same ?
Rose's user avatar
  • 305
0 votes
1 answer
40 views

Retriving the transaction details of a mapping

I have a mapping with 0 to 10. I have values stored in this mapping. If I want to get the information stored on map<5> it gives me the details. Is it possible to get the transaction id and block ...
Stanly Wilson's user avatar
0 votes
2 answers
129 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
2 votes
0 answers
96 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

15 30 50 per page