Questions tagged [substrate-node-template]
Posts that reference the Substrate node template, a basic Substrate node typically used for getting started with Substrate.
113
questions with no upvoted or accepted answers
5
votes
1
answer
106
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 ...
5
votes
0
answers
118
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 ...
5
votes
0
answers
43
views
Error on Launching the First Node Following the Tutorial
I was following the substrate get started tutorial. In the "Trusted Network - Add trusted nodes", I was failed to start the first node step.
(I was using the virtual machine and the os is ...
4
votes
1
answer
18
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....
4
votes
1
answer
48
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 ...
4
votes
0
answers
134
views
How to solve this Failed to compact generated WASM binary.: Error(UnknownOpcode(192))
For one assignment I have run the command cargo build --release so that I can build the pallet. After that I was getting the error
After that according to this- Error Building Substrate contract Node(...
4
votes
1
answer
33
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 ...
4
votes
2
answers
36
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 ...
4
votes
0
answers
242
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 \
--...
4
votes
0
answers
108
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.
...
3
votes
1
answer
62
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 ...
3
votes
0
answers
34
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 ...
3
votes
2
answers
44
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: ...
3
votes
0
answers
32
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 ...
3
votes
2
answers
80
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: ...
3
votes
0
answers
27
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 ...
3
votes
1
answer
174
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 ...
3
votes
1
answer
272
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
...
2
votes
0
answers
35
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 ...
2
votes
0
answers
34
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 ...
2
votes
0
answers
39
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 ...
2
votes
0
answers
26
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. ...
2
votes
0
answers
39
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 ...
2
votes
2
answers
117
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 ...
2
votes
1
answer
103
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 ...
2
votes
1
answer
232
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 ...
2
votes
0
answers
27
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 ...
2
votes
0
answers
68
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 ...
2
votes
0
answers
82
views
linking with `cc` failed: exit status: 1
i want to use orml-traits in substrate project . im using this substrate repo : Substrate Repository
and also i cloned this repo for using orml porject in local :
orml Repository
i changed some crates ...
2
votes
1
answer
38
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 ...
2
votes
1
answer
84
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-...
2
votes
0
answers
40
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 ...
2
votes
0
answers
41
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 ...
2
votes
1
answer
39
views
Undeclared crate error (pallet_scheduler) when trying to follow the getting started tutorial "Upgrade a running network"
I am trying to following the tutorials at substrate.dev and I am getting stuck on this one. Specifically, when I add this code to my runtime/src/lib.rs file:
impl pallet_scheduler::Config for Runtime ...
2
votes
0
answers
301
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-...
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.
2
votes
0
answers
64
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,...
1
vote
1
answer
34
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 ...
1
vote
1
answer
59
views
while building an application logic (use macros in a custom pallet)
[][in build an application logic im facing this error im new to substrate please help me fix this.]
1
vote
1
answer
42
views
How to Add and configure Democracy Pallet to Substrate Runtime
I've made an attempt to incorporate the "pallet-democracy" into my Substrate runtime. In the runtime/Cargo.toml file of my Substrate node template, I've added the following configuration:
...
1
vote
1
answer
27
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.
1
vote
0
answers
49
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 ...
1
vote
0
answers
17
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. ...
1
vote
0
answers
17
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 ...
1
vote
0
answers
26
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 ...
1
vote
2
answers
27
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=...
1
vote
1
answer
46
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 ...
1
vote
0
answers
52
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(?) ...
1
vote
1
answer
30
views
Address already in use
I am following a tutorial. What I am trying to connect two different nodes to each other who are Alice and Bob. Alice node works properly, but Bob node gets this following error:
2023-07-09 18:20:01 🏷...
1
vote
0
answers
32
views
How to send XCM message from parachain to solochain via the parity bridge
I am quite new to substrate and polkadot parachains. I am trying to bridge a parachain and a solochain using the substrate bridge repo
Is it possible to send arbitrary data from the para chain to ...