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
1 vote
1 answer
14 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.
Preethi M's user avatar
0 votes
0 answers
12 views

How can I ensure that the validator and nominator do not incur transaction fees?

I would like to prevent the fees mechanism within the chain from imposing any transaction fees on validators and nominations. Could someone kindly provide guidance on achieving this?
Arunjot Singh's user avatar
1 vote
0 answers
35 views

BestWay The Restart Substrate Node

After adding the validator node, it may encounter issues preventing it from creating blocks and initiating the next era in the blockchain. in this case,is there a way to restart the network? keep the ...
user4676's user avatar
0 votes
1 answer
20 views

how to resolve could not find `__private` in `frame_support?

I am following following tutorial to write collectibles pallet: https://docs.substrate.io/tutorials/collectibles-workshop/. My source code is available here: https://github.com/sayyedkamran/substrate-...
Syed Kamran's user avatar
0 votes
0 answers
24 views

Setting metadata of an item of the Nfts pallet in a custom pallet

I have a custom pallet that makes calls to the Nfts pallet to create collections and mint NFTs. The problem is that I can't find a way to set the metadata of a token. I do see something like ...
Arjan van Eersel's user avatar
1 vote
1 answer
10 views

Using CollectionSetting::DepositRequired in create_collection causes a WrongSetting error

I'm integrating my own pallet with Substrate's NFTs pallet. In my logic I try to create a collection with specific settings as follows: let nft_collection_id = <T as Config<I>>::Nfts::...
Arjan van Eersel's user avatar
0 votes
1 answer
21 views

How to Check if an Address is a Node in a Substrate Blockchain Network?

I'm working on a Substrate-based blockchain network. I need to verify if a user with a specific address (e.g., 5XDDFFDF...) has added a node to the network. Depending on the verification, I want to ...
Mr Coder's user avatar
  • 795
2 votes
0 answers
30 views

How can I use the --rpc-cors flag properly?

I m attempting to use the --rpc-cors flag to specify certain domains that are allowed to send requests to my chain (localhost - substrate-node-template). However, regardless of how I use this flag, I ...
rirotho's user avatar
  • 103
0 votes
0 answers
23 views

Rust Compile Error: Unresolved imports crate::pallet, crate::types::Types::Config

I am working on a Rust project where I have multiple modules. I'm facing an issue with unresolved imports when I try to compile my code. Here's the relevant code structure: types.rs pub mod Types { ...
Mr Coder's user avatar
  • 795
2 votes
1 answer
87 views

Is it permissible to retrieve the value of a private field within a struct from one pallet while working with another pallet?

I am developing a cross-chain NFT transfer pallet that involves transferring both item metadata and collection metadata. To accomplish this, I need to access the data field within the ItemMetadata ...
Ipsa Gupta's user avatar
0 votes
1 answer
25 views

An argument of type `ark_ec::short_weierstrass::Affine<BandersnatchConfig>` is missing

I wanna to build a parachain to run it localy . The rust version I am using is : rustc 1.72.0 (5680fa18f 2023-08-23) But when I run the command : cargo build --release it show me this error : ...
Mr Coder's user avatar
  • 795
0 votes
1 answer
68 views

I want to get ws rpc url with the docker image for our substrate node

I'm in the process of creating a Docker image for our Substrate-node, and I used that following method to accomplish it. # This is an example build stage for the node template. Here we create the ...
Alan Ma's user avatar
  • 47
0 votes
0 answers
23 views

Blocks have stopped finalizing

I have a substrate blockchain that was working fine for several months with 4 validator nodes. Then, it was down for 1 month, and when I restarted it, everything seemed to work fine, blocks being ...
Víctor Muñoz's user avatar
1 vote
0 answers
15 views

How to Securely Notify Users of New Messages in a Substrate-based Chat Application?

I'm developing a chat application using Substrate and facing a specific issue regarding user notifications. My application needs to notify users when they have a new message in a chat channel. ...
Mr Coder's user avatar
  • 795
-2 votes
1 answer
26 views

How to prefund treasury pallet?

I want to prefund treasury pallet in chain_spec GenesisConfig. Is this possible? Someone please give some advice. Github
Ganesh11's user avatar
  • 1,148
1 vote
0 answers
15 views

RelaychainwithChainbridge

We have tried to connect my relay chain with Chainbridge, but I got errors (SUB to ETH and ETH to SUB). I could not replace the existing relay chain with my relay chain. Please let me know the ...
support's user avatar
  • 135
1 vote
0 answers
23 views

Uncaught error. Something went wrong with the query and rendering of this component

I am getting this error while adding pallet_contracts in my chain. This is my github-code. Can you please describe me why I am getting this issue? Edit As @forgetso suggested in comment, I change ...
Ganesh11's user avatar
  • 1,148
1 vote
3 answers
27 views

Chainbridge-added in substrate-relaychain

I tried to add Chain bridge and example to our existing substrate relay-chain, but I got an error during this import (use sp_io::hashing::blake2_128;) Please let me know how to add this import . I ...
support's user avatar
  • 135
1 vote
1 answer
48 views

How to customize pallet_contracts?

We have our own chain where we've added pallet_contracts pallet for writing and deploying smart contract. We just want to give permission to upload smart contract for few users only. Someone please ...
Ganesh11's user avatar
  • 1,148
1 vote
1 answer
81 views

How to fix the problem to build docker image for the substrate-node-template

I try to build a docker image for the https://github.com/substrate-developer-hub/substrate-node-template. I used this file to do it. Dockerfile.dev. FROM paritytech/ci-linux:production as build ...
Alan Ma's user avatar
  • 47
0 votes
2 answers
30 views

How to run Containerfile inside node-template?

There is Containerfile inside substrate-node-template. What command should I use to run this file. Is the file is similar like DockerFile? I try to run using docker build -f Containerfile -t node-...
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
18 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-...
Preethi M's user avatar
0 votes
0 answers
32 views

Stable coin in substrate

How can a stablecoin be developed on a Substrate-based blockchain? I came across this question, which suggests following the implementation approach of Acala. However, are there alternative methods to ...
Ganesh11's user avatar
  • 1,148
1 vote
1 answer
9 views

zsh: no matches found: --pallet=*

Getting zsh: no matches found: --pallet=* while running substrate chain benchmarks. My command- ./target/production/node-template benchmark pallet --chain dev --execution=wasm --wasm-execution=...
Siddharth Teli's user avatar
0 votes
1 answer
17 views

error[E0277]: the trait bound `xcm::v3::SendError: PalletError` is not satisfied

I'm attempting to utilize the XCM error within the context of my pallet's error handling, but I'm facing this problem. The error which i'm using #[pallet::error] pub enum Error<T, I = ()> { ...
Arunjot Singh's user avatar
2 votes
2 answers
59 views

Why blocks are being created even when there are no active transactions?

In Substrate-based blockchains like substrate_node-template, blocks are being produced in a continuous manner, even during periods of inactivity when no active transactions are taking place. Ideally, ...
Amit Nadiger's user avatar
0 votes
0 answers
27 views

How to generate random number of a specific length in Substrate pallet

I want to generate random number of a specific length. I can't use insecure-randomness-collective-flip because it's not recommended for production. I also can't use rand package because it doesn't ...
Boleng's user avatar
  • 393
0 votes
1 answer
19 views

How to write Dockerfile to spin up substrate node template

How to write Dockerfile to spin up substrate node template, unit tests and/or integration tests, e2e tests, etc? Someone please suggest some resources.
Ganesh11's user avatar
  • 1,148
1 vote
2 answers
35 views

system.ExtrinsicFailed Token.NotExpendable

I'm working on a project that involves setting up a shared pot account. Anyone can fund this account, and the owner has the ability to withdraw money from it. However, I'm encountering an error: ...
Deepak Chaudhary's user avatar
1 vote
1 answer
28 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 ...
Branimir Malesevic's user avatar
0 votes
1 answer
64 views

How to install Substrate using Docker on an Apple M2 chip?

I am using a new Apple M2 laptop for Substrate development but I cannot install Substrate on it. If I follow the instructions at https://docs.substrate.io/install/macos/ it says I can install Rust and ...
Luke Schoen's user avatar
  • 2,262
0 votes
2 answers
40 views

<C as TrieCacheProvider<H>>::Cache<'_>` does not live long enough

I found the exact same first issue here and I checked I don't have any duplicate dependencies. I also try cargo clean & cargo update command, nothing changes. ganesholi@Ganeshs-MacBook-Air ...
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
28 views

error[E0583]: file not found for module sys

error[E0583]: file not found for module sys cargo 1.73.0-nightly (7e9de3f4e 2023-08-13) rustc 1.73.0-nightly (180dffb 2023-08-14)
Zhengjing Mao's user avatar
1 vote
1 answer
21 views

Substrate node template build errors and rustup version

Once in a while, doing a rustup update will break the substrate node template, the challenge then becomes to identify the rustup release compatible with the latest node-template and downgrade. is this ...
Kazunobu Ndong's user avatar
2 votes
2 answers
40 views

Incompatibility between subxt_signer and subxt

https://github.com/paritytech/subxt/blob/master/subxt/examples/tx_basic.rs I want to call a function in my substrate pallet. I am using the substrate-node-template subxt subxt_signer use subxt::{...
MF H's user avatar
  • 51
2 votes
1 answer
24 views

Rococo Slot Request problem on adding file

When requesting Rococo slots here, there are two options: Upload your Genesis Head (genesis state) - Do not submit a compressed file. Upload your Validation Code (genesis runtime Wasm) - Do not ...
Ganesh11's user avatar
  • 1,148
2 votes
1 answer
21 views

What is the difference between port vs rpc-port?

While starting node, what is the difference between --port and --rpc-port?
Ganesh11's user avatar
  • 1,148
0 votes
2 answers
65 views

unexpected argument '--ws-port' found

I am preparing local relay chain from this tutorial. Configure polkadot and added raw-local-chainspec.json file but while running first validator, it gives this error. ganesholi@Ganeshs-MacBook-Air ...
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
56 views

Can't configure the test network settings

I am trying to Configure the test network settings. I am following this tutorial. This is my config.toml file [relaychain] default_command = "./binaries/polkadot/polkadot" default_args = [&...
Ganesh11's user avatar
  • 1,148
2 votes
1 answer
30 views

Configure test network file

I am trying Simulate Parachain tutorial, in configure the test network settings, there is step to create a configuration file config.toml. Can we create that file in any directory or should we need to ...
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
15 views

No block are producing in substrate parachain template

I am using substrate parachain template. I run node using ./target/release/parachain-template-node --dev command. No block are producing. Should I need to add pallet-grandpa as well?
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
13 views

how to query in the substrate node?

I want to get collection data using collectionId 1 the collection was created on the on the node already with the id 1. How can I do this is substrate? Any CLI tools?
Ganesh11's user avatar
  • 1,148
2 votes
1 answer
56 views

Steps to connect chain to rococo test

I have chain built using substrate-node-template. Now what are the steps to connect my chain to Rococo test network?
Ganesh11's user avatar
  • 1,148
2 votes
0 answers
16 views

Uncaught error substrate-node-template pallet-contract

I am trying to use latest substrate node template. I have added pallet-contract. The code compile but when accessing contracts from polkadotjs Developer menu, I got this issue. Uncaught error. ...
Ganesh11's user avatar
  • 1,148
1 vote
2 answers
93 views

Not able to upload contract in substrate node template

I have added pallet-contract in our chain. Build contract works fine and run chain in dev mode also works fine. But when I try to deploy contract it doesn't work and doesn't throw any error. Can ...
Ganesh11's user avatar
  • 1,148
0 votes
1 answer
26 views

Where can I find the js code of polkadot pallet?

As we can see in polkadotjs, when we add pallet then we can see interaction interface as shown in image below. But how this code is generated? Where can I find the code?
Ganesh11's user avatar
  • 1,148
1 vote
0 answers
37 views

How to make substrate-node-template accessible via wss connection?

I just ran substrate-node-template on dedicated server and connected with substrate-frontend-template. Everything works fine with http(ws), but when I try to connect via https(wss) it's not working(?) ...
Марина Онищенко's user avatar
2 votes
0 answers
32 views

Someone suggest me some resources of NFT Pallet frontend react implementation?

I am using nft-pallet for nft creation. I have implemented in substrate node. Now I wan't to write my own code not polkadotjs to create with nft using nft pallet using react frontend. Someone please ...
Ganesh11's user avatar
  • 1,148
1 vote
1 answer
42 views

I got this error while building a blockchain

Encountered the following error while simulating a network when running the command: ./target/release/node-template purge-chain --base-path /tmp/alice --chain local I got error indicating /tmp/...
Preethi M's user avatar
1 vote
2 answers
41 views

How to add funds to Treasury?

Someone please point me how to add funds in Treasury?
Ganesh11's user avatar
  • 1,148

1
2 3 4 5
10