Skip to main content

Questions tagged [substrate-node]

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Cryptographic requirements for random numbers on substrate chain

As far as I know, one of the possibilities to generate random numbers within a substrate chain is by using the pallet_insecure_randomness_collective_flip. However, the documentation explicitly states ...
nhussein11's user avatar
0 votes
0 answers
18 views

Not able to add any crates in substrate-node-template

I am working on substrate.where I want to use some of create like pinata_sdk,Openssl etc but I am not able to import or add in cargo.tmol file where I add I get this error: ` --- stderr Compiling sp-...
manish singh's user avatar
0 votes
2 answers
45 views

Is there a standalone node-template that points to the polkadot-sdk repo?

Are there are node templates that one can use readily without tinkering with the versions and tags? Something that works out of the box? And it should point to the polkadot-sdk repo and not the ...
Marlo's user avatar
  • 111
0 votes
0 answers
10 views

Kitties Practice Application

I keep on getting the error when I run my substrate node: 'failed to run custom build command for librocksdb-sys v6.20.3
bele luther's user avatar
1 vote
0 answers
29 views

Facing problem in fetching all Preimages using rpc

At certain time, it shows this error.
Shiv Kumar ATR646's user avatar
2 votes
1 answer
160 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 ...
Artem Levchuk's user avatar
0 votes
0 answers
27 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 ...
Boleng's user avatar
  • 557
3 votes
0 answers
49 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/...
Raid Ateir's user avatar
1 vote
0 answers
26 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 ...
castle_chain'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
1 vote
0 answers
21 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'...
simon 's user avatar
  • 11
0 votes
1 answer
24 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 ...
Karanvir Singh's user avatar
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 ...
Kazunobu Ndong's user avatar
0 votes
1 answer
31 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 ...
Certusdevelopment's user avatar
0 votes
0 answers
17 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(...
ZKT's user avatar
  • 113
0 votes
2 answers
61 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|...
Kazunobu Ndong's user avatar
2 votes
0 answers
34 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 ...
Gagandeep Dogra ATR594's user avatar
1 vote
1 answer
49 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 ...
Discardo's user avatar
  • 436
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?
Deepak Chaudhary's user avatar
3 votes
1 answer
48 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
Deepak Chaudhary's user avatar
0 votes
0 answers
54 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 ...
Discardo's user avatar
  • 436
0 votes
1 answer
34 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 ...
Kazunobu Ndong's user avatar
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
1 answer
51 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'...
Aditya Verma's user avatar
0 votes
1 answer
45 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. ...
Ipsa Gupta's user avatar
1 vote
1 answer
76 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/...
CocDap's user avatar
  • 718
4 votes
1 answer
46 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....
Ajit's user avatar
  • 827
1 vote
2 answers
34 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
2 votes
1 answer
185 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 ...
Neo's user avatar
  • 323
0 votes
0 answers
57 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 ...
Sachin's user avatar
  • 61
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
0 votes
0 answers
57 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 ...
akhil nichenametla's user avatar
0 votes
0 answers
24 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 ...
Ipsa Gupta's user avatar
1 vote
1 answer
85 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
5 votes
0 answers
149 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 ...
ALeSD's user avatar
  • 499
0 votes
1 answer
49 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?
donkeydonkey's user avatar
1 vote
0 answers
13 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 ...
goastler's user avatar
  • 579
1 vote
0 answers
58 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
0 votes
0 answers
39 views

Implementing FullDeps in Substrate rpc.rs using channels instead of Arcs

This is a standard implementation of FullDeps in the rpc.rs: // Full client dependencies. pub struct FullDeps<C, P, SC, B> { /// The client instance to use. pub client: Arc<C>, ...
Discardo's user avatar
  • 436
1 vote
1 answer
108 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 ...
NZT's user avatar
  • 43
2 votes
1 answer
34 views

How come SignedExtra satisfies SignedExtension trait bound in substrate runtime?

In substrate runtime, https://github.com/paritytech/polkadot-sdk/blob/f60318f68687e601c47de5ad5ca88e2c3f8139a7/substrate/bin/node/runtime/src/lib.rs#L2106C10-L2106C21 pub type SignedExtra = ( // ...
akhil nichenametla's user avatar
1 vote
1 answer
83 views

Contribute a pallet I've written to Polkadot Relay Chain

is there a submission procedure for contributing a pallet I've written to Polkadot, for the relay chain? I would appreciate any help with this.
Emmanuel Ngubo's user avatar
2 votes
0 answers
71 views

Finalized block got stuck

StaFi chain has been running stably for a long time using version v2.0.0 of substrate, and the current version is v0.6.2. But the finalized block suddenly got stuck. Can check details here: https://...
Tore's user avatar
  • 21
2 votes
2 answers
48 views

How to imagine a real Substrate app?

How to imagine a real Substrate application? I am trying to make an application, where you can trade your own product. You can advertise product, buy, list, see your earlier purchases, etc... If I ...
Vamosz's user avatar
  • 55
1 vote
1 answer
39 views

Custom RPC Error on sp_api::decl_runtime_apis!

We are adding a custom rpc and following along with https://github.com/AlexD10S/susbtrate-node-template/blob/rpc-custom-methods/pallets/template/rpc/runtime-api/src/lib.rs and https://github.com/...
donkeydonkey's user avatar
5 votes
0 answers
61 views

Is there any good way to keep an intermediate state for an operation between several transactions/blocks in a BABE/GRANDPA-based chain?

I know that the best practices suggest designing transactions (pallet calls) in a way that executes the operation atomically and doesn't keep any intermediate states. This guarantees, that in case a ...
Yahor Tsaryk's user avatar
1 vote
0 answers
28 views

how to solve mismatched type error in substrate?

I have been integrating paritytech frontier(0.9.43) version with the substrate 0.9.43 version . while integrating when i added frontier changes in rpc.rs and service.rs file i am facing this error. ...
Karanvir Singh's user avatar
0 votes
0 answers
13 views

How to get Typegen to use the Custom RPC Runtime

We have implemented custom template pallet rpc methods and they are visible when doing a call to the node on rpc.methods we get template_sum5 template_sumAndStore however typegen is not adding them......
donkeydonkey's user avatar
1 vote
1 answer
64 views

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

[][in build an application logic im facing this error im new to substrate please help me fix this.]
Preethi M's user avatar