Skip to main content

Questions tagged [substrate-node-template]

Posts that reference the Substrate node template, a basic Substrate node typically used for getting started with Substrate.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 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
1 answer
28 views

Create Custom coin using pallet_balance of Substrate

So a Quick Question ? I am having trouble customizing the existing pallet_balance to create a new crypto coin in my own image .I am using Substrate-Node-Template.
Md. Raisul Islam Rony's user avatar
1 vote
1 answer
34 views

problem with pallets bounties & treasury

hello I am trying to add the bounties pallet to the substrate node-template. the version I am using is "release-polkadot-v1.7.0". I keep getting the following error: the traitframe\_support::...
Kazunobu Ndong's user avatar
0 votes
2 answers
69 views

Build error on substrate-node-template with missing target

I am getting this error: Rust WASM toolchain not installed, please install it! Further error information: ------------------------------------------------------------ Compiling wasm-test v1....
abhi3700's user avatar
  • 131
0 votes
1 answer
38 views

Automatic creation of a collection in the NFTs pallet

I have a custom pallet that uses the NFTs pallet for the creation of NFTs. This pallet should have its own designated collection. It will only mint there. Ideally I would like this collection to be ...
Arjan van Eersel's user avatar
1 vote
0 answers
31 views

Is it possible to run a node with only build file and boot node of the chain?

If i have build file(i.e target file) and boot node of the substrate chain. Can I join the network by running my validator node? Note: Our goal is to minimise the effort required for users who wish to ...
Deepak Chaudhary's user avatar
3 votes
1 answer
35 views

How to add 3 validators node from different networks?

I want to run our substrate chain with 3 validators, and these validators will run in 3 different network. I'm following this documentation: https://docs.substrate.io/tutorials/build-a-blockchain/add-...
Deepak Chaudhary's user avatar
1 vote
1 answer
90 views

How to feed private data(confidential information) in Substrate chain through oracle?

Is there any Oracle solution available to feed private data to Substrate chain? Feeding data to chain has already been answered here How can I build a price feed oracle for my Substrate chain?. And ...
Boleng's user avatar
  • 523
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
1 answer
92 views

Implementing pallet_contracts into node

I'm trying to implement pallet_contracts into my node, but that results in an error. I don't get why I'm getting this error and what I'm supposed to do with it. Checking pallet-contracts v4.0.0-...
Arjan van Eersel'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
0 answers
30 views

What is the best way to implement Token economics in Substrate based blockchain?

I want to implement Token economics in my Substrate based chain. Can someone please guide what is the best way to implement it? Which pallets should I use? Is there any example?
Boleng's user avatar
  • 523
1 vote
2 answers
79 views

How to add block author through InherentDataProvider in pow consensus?

I'm working on pow consensus chain and want to fetch block author in a pallet. I'm following Academy-PoW repo for adding block author through InherentDataProvider. But here default is passed in-place ...
Vitthal agarwal's user avatar
1 vote
1 answer
30 views

setup a constant inflation rate every era

trying to figure out a way to have a constant inflation rate for every era e.g to a 5% of total supply so any hint or clue how it goes with this configuration without setting min/max inflation into ...
Rehan's user avatar
  • 167
0 votes
1 answer
64 views

Thread 'tokio-runtime-worker' panicked at 'Integer overflow when casting to u64'

I am running substrate based solo chain using AURA and GRANDPA. I have upgraded the runtime to use polkadot v0.9.27 branch and it was working fine for some days. now suddenly my nodes are getting this ...
Faraz Ahmad's user avatar
2 votes
3 answers
110 views

Error Bad origin on custom XCM integration

I am building custom XCM pallet. While executing specific call: The destination is of ParaId type. match send_xcm::<T::XcmSender>( (Parent, Junction::Parachain(destination.into()...
Dudo's user avatar
  • 21
0 votes
0 answers
21 views

is it necessary to download all the dependencies and the full target file to compile and build any contract?

due to I have limited internet in my country , I can not download the full building files after I wrote the contract and need to only see if there are any errors and need to run the tests . so if I ...
castle_chain's user avatar
2 votes
2 answers
84 views

How to find the block author in pow substrate chain?

How to find the block author in pow substrate chain?
Vitthal agarwal's user avatar
0 votes
1 answer
52 views

I have an error while compiling the substrate node

I got this error after trying to install the substrate-contract-node : 1) I download rustc rustc --version rustc 1.75.0 (82e1608df 2023-12-21) 2) I cloned the repo I followed the instruction to ...
castle_chain's user avatar
2 votes
1 answer
36 views

How to make a fn only callable by an offchain worker?

I don't think this is possible but is it? I have data that comes from an API that ultimately needs to be stored onchain which I don't want to risk having done through a Pays::No fn in case the call ...
bobby dy's user avatar
0 votes
1 answer
21 views

Do we need to regenerate subxt metadata after upgrading substrate node?

I have a Rust application, which is using Subxt library to connect with a running node and submitting the transaction. This application is running on 3 different instances. I need to perform a runtime ...
Boleng's user avatar
  • 523
2 votes
1 answer
36 views

storage function still erroring

Code: #![cfg_attr(not(feature = "std"), no_std)] #[frame_support::pallet] pub mod pallet { use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; use sp_std::...
bele luther's user avatar
1 vote
1 answer
28 views

Keep on getting same error after cargo checking the code

Code: #![cfg_attr(not(feature = "std"), no_std)] #[frame_support::pallet] pub mod pallet { use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; use sp_std::...
bele luther's user avatar
2 votes
0 answers
84 views

How should I add offchain worker(OCW) in frontier when using AccountId20?

In order to add an offchain worker with using AccountId20 as the runtime account type I did following things. add associated type type AuthorityId: AppCrypto<Self::Public, Self::Signature>; in ...
xiao liang's user avatar
3 votes
1 answer
77 views

Subsrate Node Build error: cannot find macro `thread_local` in this scope

Whole error: error: cannot find macro `thread_local` in this scope --> /home/hardeep/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/externalities/src/scope_limited.rs:22:1 ...
Gurtej Singh's user avatar
1 vote
1 answer
53 views

How are valid transactions distributed to block authoring nodes?

I am new to Substrate and currently reading through all the great documentation that is available. I understand the concept of block authoring and finalization, but the following is a bit unclear to ...
Sebastian Dine's user avatar
1 vote
1 answer
25 views

Is it possible to define a storage inside the pallet without config trait?

Actually I want to define a storage without config trait but if I'm doing this then I'm getting lot of error. Is it possible? /// Author of current block. #[pallet::storage] pub type Author<...
Deepak Chaudhary's user avatar
1 vote
2 answers
68 views

Issues with Adding `subxt` Dependency to `node-template-runtime` in Substrate Project

I'm developing a project based on the substrate-node-template and encountered an issue when adding a subxt dependency. When I add subxt = { version = "0.29", default-features = false } to ...
Staish's user avatar
  • 11
0 votes
1 answer
76 views

Up-to-date substrate template

Since code was migrated to polkadot-sdk monorepo, what is the recommended way to obtain up-to-date parachain or standalone substrate template? I am interested in something that is migrated to v1.5.0 ...
Klapeyron's user avatar
  • 136
1 vote
1 answer
52 views

Ensuring Priority for Key Transactions in a Substrate Chain

I'm currently working on a substrate chain and have implemented a pallet where off-chain workers submit price data of other chains. My requirement is for these prices to be updated by the workers ...
Matthew M's user avatar
0 votes
1 answer
13 views

Batch insert into StorageMap without iterations

Is there a way to do batch inset operation into a StorageMap without iteration or using a Vec[] type or best workarounds. and if its not whats the reason for not supporting this? For example there's a ...
Rehan's user avatar
  • 167
0 votes
0 answers
24 views

When i built my custom pallet i got this error

#! [cfg_attr(not(feature = "std"), no_std)] // Re-export pallet items so that they can be accessed from the crate namespace. pub use pallet::*; #[frame_support::pallet] pub mod pallet { use ...
Preethi M's user avatar
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
47 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
1 vote
1 answer
42 views

Modifying / extending existing substrate pallet without cloning full source

I would like to modify the substrate transaction-payment pallet's CurrencyAdapter without cloning the entire crate into the local pallets. What's the best practice to provide another implementation ...
Rehan's user avatar
  • 167
1 vote
1 answer
48 views

Setting collection metadata

I'm trying to set metadata for a collection of the NFTS pallet. I'm doing this from a custom pallet. To structure the metadata I'm using this guide: https://wiki.polkadot.network/docs/learn-nft-...
Arjan van Eersel's user avatar
3 votes
0 answers
41 views

How to assign some number to the miners in POW substrate chain?

I'm working with POW substrate chain and I want to assign some number to the miners according to the work they have done earlier. Is it possible? If yes can we fetch those numbers during the block ...
Deepak Chaudhary's user avatar
2 votes
0 answers
22 views

How to calculate the node work?

I'm working on POW substrate chain, I need to calculate the workdone by each node[how much a node contribute to the chain]. Is there any way to calculate this?
Deepak Chaudhary's user avatar
1 vote
1 answer
45 views

How to capture a tranfer event in oninitialize hook? [closed]

I have a custom pallet and i need to caputre and store all the transfer performed by root origin account. How can i implement it? An idea i thought was capture the transfer event on oninitalize hook ...
sachin murali's user avatar
1 vote
3 answers
64 views

Call without gas fees

In a custom pallet I wrote an entry point that's supposed to be called by root. The purpose of the function is to create a collection with specific metadata at the NFTs pallet. I am using dummy data ...
Arjan van Eersel's user avatar
1 vote
3 answers
96 views

Testing NFT metadata

I'm writing a custom pallet that interacts with the NFTs pallet. In particular my custom pallet mints an NFT with metadata. Here is how the token is minted and metadata is set in the custom pallet: T::...
Arjan van Eersel's user avatar
1 vote
0 answers
34 views

How to create web socket server through off chain worker?

I need to establish a web socket connection through off chain worker. I asked here How to establish web socket connection in offchain_worker but didn't get any response. Is there any way/example to ...
Boleng's user avatar
  • 523
0 votes
1 answer
150 views

Failed to load source for dependency `frame-benchmarking`

I'm trying to upgrade a repo based on the Node template at Developer Hub. This template hasn't been updated and dependencies refer to the archived SDKs instead of polkadot-sdk. I tried to change that ...
Arjan van Eersel's user avatar
3 votes
1 answer
82 views

How to use FixedU128?

I'm fetching floating value in offchain worker though lite-json. Json data: { "price": 0.5 } Here is the implementation to fetch the price: let price_str = match obj.clone() { ...
Deepak Chaudhary's user avatar
1 vote
1 answer
155 views

How to establish web socket connection in offchain_worker

Is there any way/example to establish web socket connection through off chain worker? There are many Rust examples but I can't use standard library. Can someone please help me?
Boleng's user avatar
  • 523
4 votes
1 answer
130 views

Facing issue in adding offchain worker

I'm using pow substrate chain. I'm running 3 validators by using these commands: For bob ./target/release/node-template \ --base-path /tmp/bob \ --chain local \ --bob \ --port 30335 \ --rpc-port 9944 \...
Deepak Chaudhary's user avatar
1 vote
1 answer
48 views

Build a test node without exposing Alice account

I need to build and run a substrate node in a such way that polkadot.js.org/apps will not display Alice, Bob etc at accounts page. I tried to remove all mentioning of Alice, Bob etc. from the rust ...
Denis Reshetov's user avatar
1 vote
1 answer
67 views

What is the use case for inherent transactions?

Just for curiosity! In what conditions we can use Inherent transactions? Thanks
Deepak Chaudhary's user avatar
0 votes
0 answers
25 views

node-template compilation failed on: sc-network-bitswap v0.10.0-dev [duplicate]

I am following guide at https://docs.substrate.io/quick-start/start-a-node/ git clone https://github.com/substrate-developer-hub/substrate-node-template cd substrate-node-template git switch -c my-...
jangorecki's user avatar

1
2
3 4 5
13