Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

How to send data from parachain to relaycahin

Hello everyone I am working on a project where I need to send some data or messages from my custom parachain to a custom relaychain, then I want to map with a particular account and store it on ...
manish singh's user avatar
0 votes
1 answer
19 views

Compilation Error with Substrate on Rust Nightly: #![feature] May Not Be Used on the Stable Release Channel

I'm working on a Substrate-based blockchain project and encountering a compilation error when trying to build my node runtime. The error indicates that nightly features are being used while the stable ...
Mr Coder's user avatar
  • 923
1 vote
0 answers
8 views

GOV1 referendum voting giving error on 0.1x voting balance

I was making a small service for calling the aye and nye and it is not working for 0.1x voting balance but working fine for every other option it is giving error propsExtrinsic.signAndSend is not a ...
Shubham Gupta's user avatar
1 vote
0 answers
16 views

Is it possible to sync up fast to the head of a substrate blockchain and then archive from that point on?

I'm dealing with a substrate based blockchain and I'd like to know if the current scenario is possible. For my specific use case, I need to sync up with the head of the blockchain as quickly as ...
Miguel Sama's user avatar
0 votes
0 answers
10 views

How to transfer assets from parachain to relay chain

As I'm new to substrate and polkadot I don't know how to transfer assets from parachain to relay chain using xcm can anyone please help me to do this.
Preethi M's user avatar
0 votes
1 answer
12 views

Resolving "Bootnode on a Different Chain" Error in Substrate Network Setup

I am in the process of setting up a Substrate-based blockchain network and encountered a challenging issue while trying to connect my node to a bootnode. The error I'm facing is as follows: Bootnode ...
Md. Nur E Azam's user avatar
0 votes
0 answers
30 views

Bittensor Subtensor Chain

Does anyone know how to run a public subtensor node and synchronize with Bittensor network on nakamoto instead of the current finney ? There are some nodes currently running on nakamoto chain. I am ...
kapitankot's user avatar
0 votes
1 answer
24 views

How to increment Uniques Pallet T::ItemId

I have following substrate pallet implementation to split an Item and create new Items #[pallet::call_index(26)] #[pallet::weight(T::WeightInfo::split())] pub fn split( ...
not 0x12's user avatar
  • 355
1 vote
1 answer
32 views

Conflicting `Encode` and `Decode` Trait Implementations for Type Aliases in a custom pallet

I'm working on a custom pallet related to the zero-knowledge proof system and I've run into an issue regarding the trait implementations. I have defined a fixed-size hash type H256 using a custom ...
Discardo's user avatar
  • 436
0 votes
1 answer
30 views

Substrate Offchain Worker - failed to fetch sample price

I am trying to use Substrate Offchain Worker. I implemented as mentioned here https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/examples/offchain-worker. I am using same sample ...
Boleng's user avatar
  • 475
0 votes
0 answers
8 views

unable to discover and connect the peer to the --chain contracts-rococo-local

I'm trying to have my node discover and connect to the blockchain terminal so that the peer count will update from 0 peers to 1 peers. However, I keep getting this message: 2024-03-15 18:38:36.394 ...
AndrewKim's user avatar
0 votes
0 answers
9 views

Not able to get randomness on unit test

I'm building a pallet that requires some randomness to simulate the act of tossing a coin. That's why I'm following the same implementation as provided on the Lottery pallet. Particularly, the ...
nhussein11's user avatar
1 vote
1 answer
38 views

Syncing with a chain that requires host functions deprecated by the Substrate

I'm working on upgrading a Substrate-based standalone chain that was launched several years ago. Recently, we made a transition from polkadot-v0.9.34 to polkadot-v0.9.35. After we did that, we are no ...
Yahor Tsaryk's user avatar
0 votes
0 answers
9 views

Connecting a libp2p node to the Substrate Parachain Network

Goal Add a libp2p node to the Substrate parachain network to have Idle 0 peers to 1 peer. Method I'm using mdns as the discovery mechanism. Libp2p Config: const options = { peerId: peerId, addresses:...
Peter Kim's user avatar
0 votes
1 answer
15 views

How to declare runtime api?

I have a runtime constant declared in a pallet like this: /// How much space there is on the network. #[pallet::constant] type TotalSpacePledged: Get<u128>; Source code ...
abhi3700's user avatar
  • 131
0 votes
1 answer
27 views

Connect a local node to the Rococo Parachain Network

Issue: Currently, I have a parachain and a relay chain running on Rococo testnet locally. I'm having trouble connecting my node to the parachain network (0 peers to 1 peer). Goal: I'm trying to ...
Peter Kim's user avatar
0 votes
0 answers
44 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
17 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
0 answers
24 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
9 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
28 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
127 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
26 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
  • 475
3 votes
0 answers
44 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
32 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
19 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
23 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
28 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
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(...
ZKT's user avatar
  • 113
0 votes
2 answers
57 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
40 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
45 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
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 ...
Discardo's user avatar
  • 436
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 ...
Kazunobu Ndong's user avatar
0 votes
0 answers
84 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
46 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
43 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
54 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
  • 668
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....
Ajit's user avatar
  • 827
1 vote
2 answers
28 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
0 votes
1 answer
148 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
  • 303
0 votes
0 answers
39 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
18 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
31 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
23 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
71 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