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.

142 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
2 answers
189 views

How to implement `into_rpc` method in jsonrpsee's rpc macro

I'm trying to add custom RPC to Substrate node template. As explained in the jsonrpsee's proc_macro doc here, I define BalancesApi trait where #[rpc(server)] attribute added, and implement ...
Shunsuke's user avatar
  • 432
5 votes
0 answers
121 views

Query node information from PeerId only

How do I get Listen addresses of a node (and possibly other info like agent, protocols etc..) given that I only have node's PeerId? Is there any existing solutions available for this? Simple enter ...
Matt Duncan's user avatar
4 votes
1 answer
24 views

error[E0282]: type annotations needed --> /libp2p-noise-0.32.0/src/protocol/x25519.rs:221:45

While running this project https://github.com/jimmychu0807/substrate-offchain-worker-demo I'm geting this error: error[E0282]: type annotations needed --> /libp2p-noise-0.32.0/src/protocol/x25519....
S Miss's user avatar
  • 41
4 votes
1 answer
59 views

Error- Connecting Parachain to Relay Chain: Unsupported or Invalid BabeApi Version

I have already run a relay chain on two ports, but when I try to connect my parachain to the relay chain, I encounter the following error. I have attached a screenshot of the error to this message. I ...
support's user avatar
  • 135
4 votes
1 answer
46 views

Why doesn't getMetadata show my callable methods as extrinsics in Substrate-node-template

When running Substrate-node-template - basically the Kitties - and with a callable eg create_kitty() as a dispatchableResult in the call pallet, what I assume to be an extrinsic in the metadata, this ...
kim mcclymont's user avatar
4 votes
2 answers
43 views

Modifying substrate-node-template for voting system use case

As a major project for my college, we are trying to modify the substrate node template for the voting system use case. Can anyone guide us on what would be the most important modules, palettes, and ...
Akansha Banerjee's user avatar
4 votes
0 answers
316 views

Substrate , private network : Error while dialing /dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F

when i study 05-private-network https://github.com/substrate-developer-hub/substrate-docs/blob/main/v3/tutorials/05-private-network/index.mdx success : node01 ./target/release/node-template \ --...
565.ee's user avatar
  • 53
4 votes
0 answers
119 views

How to modify and implement transaction fees?

So now that I can already capture the transaction_fees+tip and into the Author of the block. I want to modify my transaction_fees so that I can charge for example 0.4% of whatever being transferred. ...
hgminerva's user avatar
  • 467
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
3 votes
1 answer
93 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
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
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
3 votes
1 answer
79 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 ...
Max's user avatar
  • 31
3 votes
0 answers
37 views

the function or associated item `offchain_worker` exists for struct

i wanna add a new pallet in substrate runtime.rs this is the contract of the file : #![cfg_attr(not(feature = "std"), no_std)] /// Edit this file to define custom logic or remove it if it ...
Mr Coder's user avatar
  • 923
3 votes
2 answers
50 views

Substate node not compiling on Archlinux

Recently anytime i try to run substrate-node i get this error message, all attempts to update packages hasn't been helpful Error: Service(Client(VersionInvalid("cannot deserialize module: ...
Abimbola Adebayo's user avatar
3 votes
0 answers
37 views

How to compare current date with a stored date in a Substrate blockchain module?

I'm working with a Substrate blockchain and have a structure with a field named end_date. I'd like to check if the current date is greater than end_date within a Substrate runtime module, but I'm ...
Mr Coder's user avatar
  • 923
3 votes
2 answers
97 views

Enable to build substrate node template on M2

The following error msg is given out error: failed to run custom build command for `tikv-jemalloc-sys v0.5.3+5.3.0-patched` Clang version Apple clang version 14.0.0 (clang-1400.0.29.202) Target: ...
Nakul Amate's user avatar
3 votes
0 answers
150 views

Linking with `cc` failed: exit status: 1

I want to use orml-traits in substrate project. I'm using this substrate repository and also I cloned this repo for using orml project in local:orml Repository I changed some crates in orml-traits ...
Mr Coder's user avatar
  • 923
3 votes
0 answers
31 views

No rewards to block authors for validating transactions in a PoA chain

1- I've built a custom chain with unified accounts that uses PoA as its consensus, but there's no addition to the validator's balance on the confirmation of a transaction even though I've set in my ...
Discardo's user avatar
  • 436
3 votes
1 answer
311 views

How to implement a POC for a new consensus algorithm in substrate?

I am currently working on a substrate project that uses the PoA consensus algorithm. I would like to implement a POC for a new consensus algorithm. I have some experience with substrate but I'm new to ...
Mr Coder's user avatar
  • 923
3 votes
1 answer
323 views

build failed with substrate chain on rocksdb in linux

I followed this tutorial https://docs.substrate.io/tutorials/get-started/build-local-blockchain/. I got the below error when run cargo build --release. How can I fix it? cargo build -v --release ...
kayvan jam'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
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
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
2 votes
0 answers
67 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 ...
Kirill's user avatar
  • 21
2 votes
0 answers
46 views

Cant produce new blocks with custom ChainSpec file

I was using substrate version of 4.0.0-dev-41ad4a6c9d7 and following the Add Trusted Nodes for making a custom account as a Authorites account here, I can't able to produce new blocks, I don't know ...
Mojo's user avatar
  • 95
2 votes
0 answers
57 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
  • 113
2 votes
0 answers
35 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. ...
go11li's user avatar
  • 1,241
2 votes
0 answers
47 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 ...
go11li's user avatar
  • 1,241
2 votes
2 answers
246 views

How to start substrate-node-template and substrate-front-end-template remotely?

I want to start my own blockchain. I try to start substrate-node-template and substrate-front-end-template remotely, but there is guide instructions only for local machine. I installed and compiled ...
Марина Онищенко's user avatar
2 votes
1 answer
128 views

Issues with Function Call on EVM-Compatible Substrate Using Metamask and Polkadot

I'm working on a project using an EVM-compatible Substrate blockchain. I am encountering problems when trying to call functions on this Substrate instance. Here's the function used to sign and send ...
Mr Coder's user avatar
  • 923
2 votes
2 answers
768 views

1002: Verification Error: Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable`

I've added pallet-nft and pallet-uniques in Relay Chain. All the things are working fine but when I'm signing the transaction in the pallet-uniques fn create(collection,admin), it is showing me this ...
Arunjot Singh's user avatar
2 votes
0 answers
29 views

no matching package named `sc-network-statement` found

sc-network-statement = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } I am using this package from substrate ...
go11li's user avatar
  • 1,241
2 votes
0 answers
76 views

Which pallets cannot be added through a runtime upgrade?

We started our chain using substrate-node-template which is using PoA consensus with Aura for block production. Now we are trying to move to PoS with Babe. We found out that it is not possible to ...
Sachin's user avatar
  • 61
2 votes
1 answer
68 views

Debugging 429 Too Many Requests

Somehow our node starts to yield 429 errors and we do not find a reason for this. More specifically, we do not even know hot to debug this. I see that this gentlemen has logging for accepted ...
shredding's user avatar
  • 314
2 votes
1 answer
145 views

How to fix "module group is private" error when using frame-support-procedural-tools v3.0.0?

I'm trying to use orml-tokens in my Substrate project and encountered the following error: error[E0603]: module `group` is private --> /home/kianoush/.cargo/registry/src/github.com-...
Mr Coder's user avatar
  • 923
2 votes
0 answers
267 views

Substrate run benchmarking error - 'setjmp.h' file not found

Working on substrate-node-template , When I run benchmark I get the below error. It says 'setjmp.h' file not found. I am working on Macbook pro cargo build --release --features runtime-benchmarks ...
Neo's user avatar
  • 323
2 votes
0 answers
45 views

fill assetId in local substrate into dex pallet

I'm trying to create a decentralized exchange (dEX) in Substrate and I have a function called create_exchange that has two parameters: asset_id and liquidity_token_id. I'm having trouble filling the ...
Mr Coder's user avatar
  • 923
2 votes
0 answers
48 views

PoW custom consensus with remote calls

I'm trying to implement a new consensus in Substrate. The consensus is similar to PoW but requires querying other nodes to generate the work/proof. Would implementing the PowAlgorithm trait and ...
Paco's user avatar
  • 21
2 votes
0 answers
341 views

failed to run custom build command for `librocksdb-sys v0.6.1+6.28.2`

When I use the command cargo build --release to build substrate-node-template on version polkadot-v0.9.26, the following error is emitted: error: failed to run custom build command for `librocksdb-...
yo vo's user avatar
  • 21
2 votes
0 answers
21 views

Has anyone made a barebones rococo relay chain?

I am curious if anyone made a rococo relay chain using node-template? Similar to this (https://github.com/buraktabn/relay-chain) but using rococo instead of kusama.
Steven Yao's user avatar
2 votes
0 answers
78 views

How fast can you feasibly speed up blocktime?

I’d like to see if I can speed up block time rapidly with empty blocks to get to a target block number, before slow block time to 6 seconds. How fast could I feasibly go? Can I do 10 blocks per second,...
Ramsey - Decentration's user avatar
1 vote
1 answer
37 views

How to clean corrupted data of pallet-contracts?

our chain was live few years ago. We had integrated pallet-contracts. During runtime-upgrade, it seems we had missed the migration of pallet-contracts. Now we have corrupted data in pallet-contracts. ...
Boleng's user avatar
  • 535
1 vote
0 answers
36 views

How to replace substrate address(H256) to Ethereum Address(H160)

I need to replace the substrate address(H256) in fresh substrate-node-template to Ethereum Address(H160). Is it possible? If yes, Is it mandatory to integrate frontier in the node-template? Do we have ...
Deepak Chaudhary's user avatar
1 vote
1 answer
45 views

Build a Blockchain Tutorial - Front End Template stuck sending

Im pretty new to this whole thing, but I have managed to get a local node started and the front end template up. The Blockchain is finalizing blocks, and the template header is actively updating. When ...
CODY's user avatar
  • 43
1 vote
0 answers
39 views

Template Module Pallet call

I'm trying to call the do_something function in template_pallet runtime. I'm running locally the node substrate version : 4.0.0-dev-2ad9b78c7b5 I'm trying to send an extrinsics from Rust code using ...
X6Entrepreneur's user avatar
1 vote
0 answers
35 views

How inactive issuance get's calculated or how do we customize it in substrate-node-template

So i was working with substrate-node-template . I can see how total issuance is getting calculated from substrate node template but confused of how would i set up inactive issuance . What are the ...
Md. Raisul Islam Rony's user avatar
1 vote
0 answers
32 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
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
1 vote
1 answer
31 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