Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
96 views

Transaction execution error of EVM "EvmCoreErrorExitReason (OutOfFund)"

I have developed Substrate Network with EVM compatibility and POA consensus algorithm. It was working fine and transaction execution time was although alot but for now getting an error from EVM-core. ...
1 vote
1 answer
26 views

Unable to connect to bootnode

I have 1 live chain Context: Archive node serves as the bootnode Having some pre-defined validators connected to the bootnode (--bootnodes /ip4/13.215.176.156/tcp/30333/p2p/...
3 votes
1 answer
75 views

How to add custom account as initial authorities in chain_spec.rs file

I've successfully added custom accounts in the Sudo account and pre-funded accounts following this stack adding an account but I also wanted to set custom accounts as initial PoA authorities. Thank ...
2 votes
1 answer
96 views

How can I create OCW that won't activates every block, but will activates only when I call function that it represents?

I wanna create OCW that will send a http request to the API and get the response and use this response in runtime code to call extrinsic with this data. This OCW should triggers only when I want to ...
0 votes
0 answers
21 views

Can we automate extrinsic calls in Substrate chain?

Recently I tested agile core time feature on Rococo. The idea was to test Parathread producing block. We have to submit either placeOrderAllowDeath or placeOrderKeepAlive extrinsic from ...
1 vote
1 answer
37 views

I got this error while building a blockchain (building a local blockchain)

when i run node template without --ws external its producing blocks but when i run with --ws external its giving me error please help me fix this im new to substrate.
3 votes
0 answers
35 views

Explorer compatibility with blockchain node version v1.0.0

The issue I ran in is finding an explorer version, which is compatible with substrate version v1.0.0. I found that version of explorer below v0.133.1 (https://github.com/polkadot-js/apps/releases/tag/...
1 vote
0 answers
23 views

how to know about token implementation?

I have a questions about Tokens in polkadot ecosystem , If I am on parachain and this parachain A uses a token from another parachain B , if this token implements on_transfer hook does this hook will ...
1 vote
0 answers
45 views

What does this log message from a collator node mean?

What does this log message from a collator node mean? Is it bad, should it be fixed or ignored? Error: Service(Client(Backend("Invalid argument: Column families not opened: col12, col11, col10, ...
1 vote
1 answer
22 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 ...
0 votes
1 answer
20 views

does substrate chain use longest chain or ghost protocol for fork chioce rule?

i have been going through documentation of substrate . i came through the point of select chain method for forking concept and find out that their are two methods for chain selection Ghost and ...
1 vote
0 answers
16 views

"EVM front tier remote code execution vulnerability"

Anyone using the latest EVM frontTier Pallet their - seems to be a possibility for a remote attacker to exploit your nodes remotely and control the nodes and every other nodes within your system, that'...
0 votes
1 answer
42 views

Using Substrate Connect to Query custom chain pallets

We have been testing out the WS Provider in POlkadotJS and its working good with our custom pallets. However we just got substrate Connect working with our custom substrate based node. The assets ...
0 votes
0 answers
13 views

Testing pallet_democracy proposal enactment

I am testing a pallet using the democracy pallet, and I am struggling with the enactment step. First of all, the proposal is correctly enacted when using the pallet in polkadot.js: the problem occurs ...
3 votes
1 answer
43 views

How to add vector fields in the block header?

I want to add a vector fields in the block header of substrate chain. Is this possible? If yes, How can i do that? Do we have any reference code for it? Thanks in advance
1 vote
1 answer
39 views

How to create a nomination pool using CLI or API?

I want to create a nomination pool on a substrate based chain, I am using polkadot api, this is what I have managed to write till now const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api'...
0 votes
2 answers
55 views

Wrong Proposal Weight in collective pallet tests

I have a pallet using the propose extrinsic of the collective pallet. one of the parameter of this extrinsic is length_bound which I define as follows: let proposal_len:u32 = proposal.using_encoded(|p|...
0 votes
1 answer
23 views

Is there any oracle solutions available for substrate based relay chain?

We have a Substrate based relay chain where we need to fetch external data like important documents and specific data using off-chain workers right now. But these OCW doesn't work for reaching ...
0 votes
0 answers
15 views

Troubleshooting Sequential Unsigned Transaction Processing with 200 Validators

we're attempting to send unsigned transactions from an offchain worker using the validation code snippet provided: ValidTransaction::with_tag_prefix("thea") .and_provides(...
2 votes
0 answers
31 views

how can we add external links on the proposal?

I have created a custom chain using Substrate version 0.9.36, and I've been using the governance module. When adding a proposal, there's a default column for external links set to "none." I ...
1 vote
0 answers
24 views

Set Off-chain worker with AccountId20

The examples in substrate use the sr25519 AccountId and Multisignature for creating offchain workers with signed transactions. Is there a way to use AccountId20 and EthereumSignature for a node using ...
0 votes
1 answer
46 views

While authorizing specific nodes in building a blockchain i got the following error

I got this error while authorizing specific nodes in building a blockchain. It gives me error like this. error: failed to select a version for `bounded-collections`. ... required by package `sp-...
2 votes
1 answer
71 views

Substrate - Change logging library

Is there some way to change the logging library or at least the logging format? I need a way of having the logs output in JSON format. What I tried: Installed the tracing-subscriber pallet with json ...
1 vote
2 answers
27 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 ...
2 votes
0 answers
60 views

segmentation fault ERROR

I just started in learning substrate and I want to run the example. I take the tutorial on the site https://docs.substrate.io/install/macos/. I have already done all steps. I tried run test blockchain ...
3 votes
1 answer
76 views

RPC node is rebooting itself from time to time

Node is working correct but there is a moment that shows the following error messages and reboots: 2023-10-12 19:39:26 Accepting new connection 170/10000 2023-10-12 19:39:26 Accepting new connection ...
1 vote
0 answers
27 views

How to Fetch data at the time of block production?

Can I implement a pallet which holds the node information and at the block production time we can use this node information?
0 votes
1 answer
37 views

How to test parachain after slots acquired?

I have acquired parachain in rococo test chain with parachain 4,285. After that I try to start the collator node using following command as shown in Acquire a testnet slots tutorial, ./target/release/...
0 votes
0 answers
53 views

Fetch NodeMetrics from Telemetry shard

I want to fetch a couple of node metrics, like startup_time, bandwidth_upload, bandwidth_download, etc for all of the nodes in my network, for the purpose of sending them to another application though ...
0 votes
1 answer
33 views

Problem with `sc_consensus_grandpa::grandpa_peers_set_config' in service.rs

I cloned the substrate-node-template and upgraded the dependencies to: git = "https://github.com/paritytech/polkadot-sdk", branch = "master" for reference, the original branch was ...
1 vote
1 answer
69 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": "...
0 votes
0 answers
82 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 ...
0 votes
1 answer
42 views

error[E0576]: cannot find associated type `RuntimeCall` in trait `pallet_nfts::Config`?

"I'm developing a pallet called xnft for cross-chain NFT transfers. To achieve this, I have to utilize functions from the Frame NFT pallet and incorporate RuntimeCall in its configuration. ...
4 votes
1 answer
45 views

Facing difficulty in fetching data through lite_json

Api data { "student": [ { "listing": { "price": 54, }, }, ] } I’m using below code for fetching data till listing: let student = match val....
2 votes
2 answers
136 views

How to setup Substrate Private network to support more than 8 nodes

We are running a substrate private blockchain network. We are able to add a total of 8 nodes but are not able to increase more than that. For the 9th node: 9th node is not starting to sync after ...
0 votes
1 answer
106 views

which libp2p module do I use to broadcast data to peers in the network e.g blockchain? do I use mdns or kademlia for blockchain?

I am trying to understand lib2p2 Rust by looking at the rust libp2p examples in the rust libp2p github repo and substrate network module as well. My question is, If I am building a peer to peer ...
0 votes
0 answers
32 views

Cannot build my substrate node on nixos

my node builds perfectly fine on ubuntu, arch, and debian. On my nixos machine, I can build the node-template without any errors. I can also build the kitchensink node in polkadot-sdk. Buy for some ...
0 votes
0 answers
14 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": "...
4 votes
2 answers
59 views

Need to migrate u32 to Vec<T::AccountId>

I have one storagemap which stores u32 values, now I need to migrate this to Vec<T::AccountId> How to do this?
0 votes
1 answer
37 views

Subscribe to storage map Entries?

On our substrate node using a storage double map. We are trying to subscribe to an entries query. something like const unsub = await api.query.system.balances.entries(ADDR, (res) => { console....
0 votes
0 answers
20 views

WS transport error: i/o error: Broken pipe (os error 32); terminate connection

I am submitting an unsigned extrinsic using subxt crate in rust. I have a simple u64 number inside StorageValue called Nonce which keeps track of number of transactions submitted (needed for ...
0 votes
0 answers
22 views

"Troubleshooting Block Production Issue After Switching to ECDSA Signature Scheme in Substrate-based Blockchain"

I've transitioned the signature scheme to ECDSA on a Substrate-based chain, following Moonbeam's approach. However, it's worth noting that Moonbeam utilizes Aura for block production, whereas ...
5 votes
0 answers
128 views

Genesis Sync and History: Are Archive Nodes Indispensable?

I've been exploring the intricacies of node types in Polkadot and other Substrate-based networks and came across a scenario that has left me curious. I understand that full nodes and archive nodes ...
1 vote
1 answer
99 views

Parachain not including all transactions from tx pool into block

Context OriginTrail Parachain Mainnet is pushing significant amount of transactions (175k/day) - with tendency of growth Collators are filling blocks up at ~25% of block weight, with a large pending ...
1 vote
1 answer
42 views

Runtime api execute_block doesn't trigger

Currently, I am trying to test how frame-executive is working in this repo I add some logs in executive interface impl_runtime_apis! : https://github.com/paritytech/substrate/blob/master/bin/node/...
2 votes
1 answer
54 views

Simple Custom Pallet making XCM call

Are there any pallet examples for custom making XCM call. I know there is ping pallet provided by cumulus but I believe that is pretty old. Does ping pallet still works?
0 votes
1 answer
38 views

Limit and Offset for for storage entries and keys

Following the docs for polkadot js storage we are getting entries and keys from the chain. Is there a way to use limit and offset to implement paging. Any ideas?
0 votes
1 answer
114 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, ...
1 vote
0 answers
11 views

What happens to smart contracts when breaking changes are introduced to ink?

I've seen breaking changes mentioned in this issue for upgrading set_code_hash. This got me thinking, what happens to existing contracts when a breaking change to ink is introduced? For example, we're ...
1 vote
1 answer
62 views

while building an application logic (use macros in a custom pallet)

[][in build an application logic im facing this error im new to substrate please help me fix this.]