Skip to main content

Questions tagged [rpc]

Questions relating to custom RPC implementations or using existing RPCs to make calls to a Substrate node.

0 votes
2 answers
18 views

How to declare a RPC endpoint in the node config?

The public-addr option allows to declare the node p2p endpoint, allowing to use DNS for example, or different port than the listen port if using docker port mapping. --public-addr <PUBLIC_ADDR>.....
Hugo Trentesaux's user avatar
0 votes
1 answer
41 views

Force bonding withdrawal period to 0 days

I run a local testnode using chopsticks and I want to unbond funds right after I bond them. What configuration I could use in chopsticks or RPC call I could make to make sure I can withdraw my funds ...
lvndry's user avatar
  • 101
-1 votes
1 answer
33 views

What is the max value we can use for `--rpc-max-connections ` flag of substrate node template?

I am using substrate node template. We know it comes with many flag . I want to know specifics about --rpc-max-conections . We know that default is 100 but i want to know is there any maximum ...
Md. Raisul Islam Rony's user avatar
3 votes
1 answer
55 views

What's a convenient way to look up a `DispatchError` in RPC

A DispatchError will refer to a pallet and a member of the pallet's Error enum by index: DispatchError: {"module":{"index":123,"error":456}} How can I wrap these and ...
user5303's user avatar
1 vote
0 answers
16 views

Rpc call showing empty in evm integrated chain?

i have been working on polkadot layer 0 chain. i have integrated evm frontier on layer 0 chain and everything is working fine .when i try to call rpc (eth.getcode) it is showing empty . can some ...
Karanvir Singh's user avatar
0 votes
0 answers
34 views

Rpc methods not decorated

Goal I'm trying to decorate the rpc methods to be able to interact with api.tx. If anyone has faced this issue, what has helped you out? Issue I'm not able to access tx method inside of api, which I ...
Peter Kim's user avatar
0 votes
1 answer
35 views

Run Substrate-node-template with wss and secure rpc

I was running substrate node template with non secure ws connection . After integrating with pallet-evm,pallet-ethereum and other precompiles , I wanted to connect to metamask with secure rpc ...
Md Raisul Islam Rony's user avatar
1 vote
1 answer
40 views

How can I change --rpc-max-connections on already running substrate-based node?

I have already running substrate-based node and I started to get error: 429 Too many requests: Too many connections. This happens due to HTTP requests that my FE produces. After research I ...
Artem Levchuk's user avatar
0 votes
0 answers
47 views

Error querying evm rpc endpoint on a node run by Chopsticks

I'm trying to run a local node using Chopsticks and connect to it using Metamask, but when I make the request to the eth-rpc-adapter, it fails. Here are the steps I followed with the corresponding ...
magecnion's user avatar
  • 344
0 votes
0 answers
87 views

Connect a frontend application with a Substrate blockchain as a backend without using an RPC endpoint

I'd like to connect my frontend application (built on Rust) to be able to connect to my network without using any hardcoded endpoints to create a bottleneck for DDoS attacks. One possibility for this ...
Discardo's user avatar
  • 436
1 vote
2 answers
32 views

What are the RPC endpoints that is usually unique to Substrate vs the unique to Polkadot nodes?

I used typegen to generate types for Substrate, Kusama and Polkadot networks. And I got the exact same types for the rpc endpoints (rpc methods). Is this normal? Should not be there some unique ...
Muhammad Altabba's user avatar
1 vote
1 answer
96 views

How to connect to a ws port whe nthe node is in a docker container

I have a Substrate node that I build locally and also into a docker container in CI. When I use my local build or when I use docker run --network host, I can connect to the websocket endpoint on port ...
JoshOrndorff's user avatar
  • 1,201
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
0 answers
56 views

How are the node threads and tasks managed?

When we run a node, we start a bunch of tasks using task_manager.spawn_handle() or task_manager.spawn_essential_handle(). From my understanding, those spawn new Tokio tasks. If my computer has ...
Timothée Delabrouille's user avatar
0 votes
0 answers
13 views

Does Substrate support custom node specific environment vars or flags

I have a pallet that should have access to a secp256k1::Keypair for signing messages. And I want to be able to start the node with either the secret_key string or a path to a key-file. Then have the ...
ambiguous omen's user avatar

15 30 50 per page
1
2 3 4 5
10