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
1 answer
8 views

more issues with "Authorize Specific Nodes" Tutorial

I am still having issues with this tutorial. https://docs.substrate.io/tutorials/build-a-blockchain/authorize-specific-nodes/ I have spent today trying to find a solution but have been unable to do so....
TCD's user avatar
  • 25
0 votes
2 answers
34 views

Cannot get "Authorize specific nodes" tutorial working for substrate. Beginner question

I have been trying to get this working for a few days. I'd be really really appreciative if someone could help me as I just can't get it working. I am a complete beginner and not familiar with the ...
TCD's user avatar
  • 25
0 votes
1 answer
16 views

Why Off-chain worker does not deduct DispatchError in Substrate?

I am trying Substrate official off-chain example. I am throwing a DispatchError in my extrinsic. #[pallet::call_index(0)] #[pallet::weight({0})] pub fn submit_price(origin: OriginFor&...
Boleng's user avatar
  • 545
0 votes
0 answers
15 views

Not able to submit multiple signed transactions through off-chain worker

I have to submit 2 signed extrinsics through off-chain worker. The code structure of my off-chain worker is like this: fn offchain_worker(block_number: BlockNumberFor<T>) { if !...
Boleng's user avatar
  • 545
0 votes
0 answers
13 views

How to create type for AccountId32 using Polkadot-JS api

I am writing integration test using Polkadot-JS api. On the Substrate chain side, I have this structure: pub type NodeKey = AccountId32; #[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, ...
Boleng's user avatar
  • 545
0 votes
0 answers
22 views

Is there e2e testing framework/example for Substrate solo chain?

I am working on a live solo chain. I have to test a scenario where I want to hit HTTP API through off chain-worker. Unfortunately it's not possible to test in mock environment. We can take an example ...
Boleng's user avatar
  • 545
0 votes
0 answers
19 views

How to verify merkle root with batch root and its adjacent_leaves inside a pallet?

I am using below code to create Merkle Root. pub type MmrRootHash = H256; pub fn create_merkle_root(leaves: Vec<MmrRootHash>) -> MmrRootHash { sp_runtime::traits::BlakeTwo256::...
Boleng's user avatar
  • 545
0 votes
1 answer
13 views

How to fix `cargo clippy` error for `#[pallet::call]` and `#[pallet::generate_deposit(pub(crate) fn deposit_event)]`

I have added a clippy check #![warn(clippy::missing_docs_in_private_items)] on the top of my pallet. I have added documents at all required places. However I am still getting below errors for #[pallet:...
Boleng's user avatar
  • 545
1 vote
1 answer
29 views

Increment sufficient & providers

Can someone please provide me with an example of when to increase sufficients and providers in an account? Providers The providers reference counter prevents Substrate pallets from storing data about ...
Yatusabes's user avatar
  • 778
0 votes
0 answers
15 views

When i tried to add the third well known node, it shows is added but it's not?

I am following the Authorize Specific Nodes and i tried to add the third known node, but i couldn't. It said it was added but it seems it did not even though i tried to added again it said it is ...
NXHM's user avatar
  • 1
0 votes
0 answers
14 views

i want to send XCM message from my own react app

Can anyone help on Xcm Message I want to send message from my parachain. It work when I use Polkadot.js/app.But its not working with my own frontend tool. It says incorrect format. Can anyone tell ...
manish singh's user avatar
0 votes
0 answers
24 views

Error following the tutorial Authorize specific nodes [duplicate]

i am following the tutorial Authorize specific nodes, but when i arrive to the point where i have to add the line construct_runtime!( pub enum Runtime where Block = Block, NodeBlock = opaque::...
NXHM's user avatar
  • 1
0 votes
2 answers
55 views

Where do I find the construct_runtime macro?

I'm trying to do the tutorial Authorize specific nodes, however I'm not sure where to find the construct_runtime macro in my lib.rs file. The tutorial requires the line NodeAuthorization: ...
Keea's user avatar
  • 13
0 votes
1 answer
21 views

Fixed Amount of Minting per block?

If i want to mint specific amount of native coin by the end of every block where should i implement the logic . Do i customize the pallet-template using pallet hooks , or do i implement a existing ...
Md Raisul Islam Rony's user avatar
4 votes
1 answer
84 views

Unexpected panics after upgrading template to v1.10.0

After upgrading one of Pop template's to polkadot-v1.10.0 I noticed some unexpected logs. Even though the parachain include blocks, emits the expected events from the executed extrinsics and so on. ...
Alejandro Martínez's user avatar
1 vote
1 answer
37 views

Should I Copy or Fork the Substrate Node Template for My Node?

We are developing our DeFi blockchain using the Substrate Node Template. Should we fork the template or copy it and use it as a standalone repository? What are the pros and cons of each approach?
Syed Kamran's user avatar
0 votes
0 answers
22 views

What is a minimal requirements for a Frontier Template based blockchain's network?

I'm trying to figure out what a minimal blockchain would look like using substrate's frontier node. What I'm trying to build: A public minimal blockchain network Aura consensus model EVM and Ethereum ...
tinnick's user avatar
  • 101
3 votes
3 answers
90 views

Substrate Tutorials - No more Nick's Pallet?

Im running through the Substrate Tutorials and just started the Build Application Logic tutorial series. This series starts with implementing pallet_nicks which appears to have been discarded with ...
CODY's user avatar
  • 68
0 votes
0 answers
15 views

Unable to build substrate-parachain-template?

As i was building substrate-parachain-template on tag polkadot-v1.0.0, I encountered the following error Can anyone guide me through this.
Ipsa Gupta's user avatar
0 votes
1 answer
16 views

How to Sync Two Boot Nodes for Redundancy?

I'm working on a blockchain project and want to ensure uninterrupted block production even if one of our boot nodes goes down. How can we effectively sync two boot nodes so that if one goes offline, ...
Humayun Ahmad Rajib's user avatar
1 vote
1 answer
38 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
  • 545
0 votes
1 answer
52 views

Substrate node handshake

I'm trying to do substrate node handshake. As far as I understand we first do Noise XX handshake with our initial request and then we proceed to upgrade the connection. With the following code the ...
themartto's user avatar
1 vote
1 answer
24 views

Is there any way to constrain the max value of an integer?

Is there any way to ensure that value can never exceed 32 or a particular number? I have a struct: #[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, PartialEq, Serialize, Deserialize)] pub ...
Boleng's user avatar
  • 545
0 votes
0 answers
47 views

Mitigating Single Point of Failure in a Distributed Blockchain Network Setup(Substrate & Polkadot)

We have deployed a blockchain network using five cloud machines distributed across various geographical locations, with each machine running a specific node type crucial for the network’s ...
Humayun Ahmad Rajib's user avatar
2 votes
1 answer
48 views

How to access functions of pallet-assets from custom pallet?

I want to use the functions of pallet-asset like decrease_balance and Assets storage in our custom pallet. How I can perform this operation? Thanks
Vitthal agarwal's user avatar
0 votes
1 answer
35 views

the trait `Deserialize<'_>` is not implemented for `T`, which is required by `HackerNewsInfo<T>: Deserialize<'_>`

I am trying to write offchain worker and read json file. But I faced this error. ganesholi@Ganeshs-MacBook-Air Node_Hackathon_Apr2024 % cargo build --release warning: virtual workspace defaulting to `...
go11li's user avatar
  • 1,241
1 vote
1 answer
23 views

How to integrate pallet-asset?

I want to integrate pallet-asset into the substrate-node-template. What all other pallets need to integrate with pallet-asset to get assets functionalities? Thanks
Vitthal agarwal's user avatar
0 votes
1 answer
14 views

Trouble Registering Events in Substrate Tutorial's Frontend Transaction: Need Assistance

I'm a beginner following the Substrate tutorial from here. After successfully compiling both the Substrate node and frontend, I've encountered an issue. Problem: When I open the frontend and attempt ...
shivank anchal's user avatar
0 votes
0 answers
12 views

How to store and mapped XCM message on relaychain

I want to send a message (including name, age, gender, etc.) from a parachain to a relay chain. Then, I want to store and map that data with the particular account number on relaychain. Can anyone ...
manish singh's user avatar
1 vote
1 answer
19 views

How to create a 60 seconds timer in a pallet

we are creating a game which give the player a 60 seconds rounds to play. How can we set a timer of 60 seconds in a substrate pallet?
René Hürter's user avatar
0 votes
2 answers
32 views

How to write scripts of subxt for evm transactions?

I want to use subxt for performing transactions on evm chain. Do we have resources where we are doing evm transactions?
Deepak Chaudhary's user avatar
1 vote
1 answer
25 views

How to integrate Subxt with frontier?

I want the transaction to be happen through subxt on frontier node template. I'm getting this error in this process: Metadata error: The generated code is not compatible with the node How to solve ...
Deepak Chaudhary's user avatar
0 votes
2 answers
57 views

Build Error with `tikv-jemalloc-sys v0.5.4+5.3.0-patched` in Substrate Node Template

I am encountering a build error when running cargo build --release on a Substrate Node Template project. Here is the error message: error: failed to run custom build command for `tikv-jemalloc-sys v0....
Humayun Ahmad Rajib's user avatar
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
0 votes
1 answer
65 views

Implementing Load Balancing for Multiple Validator Nodes on AWS: Seeking Suggestions

I've set up two instances on AWS, each running a validator node for a blockchain project. Here’s a quick breakdown of my configuration: First Server: Runs a validator node and a reverse proxy. It's ...
Humayun Ahmad Rajib's user avatar
-1 votes
1 answer
33 views

What is the max value we can use for `--rpc-max-connections ` flag of substrate node template?

I am using substrate node template. We know it comes with many flag . I want to know specifics about --rpc-max-conections . We know that default is 100 but i want to know is there any maximum ...
Md. Raisul Islam Rony'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
  • 68
0 votes
0 answers
15 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
48 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
0 votes
2 answers
24 views

Unable to connect to polkadot node running on wsl to polkadot js app

I am running polkadot-sdk on wsl I start the node: ./target/release/polkadot --dev and then when I try connecting it to polkadotjs app on browser in windows it doesn't connect It just says - "...
Rishi's user avatar
  • 1
0 votes
1 answer
16 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
23 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
53 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
35 views

I want to Send data to relaychain from parachain?

I want to send JSON or normal String Message from Parachain to relay chain but i new in the substrate and I am finding it difficult. I am using the Polkadot-sdk template for relaychain and substrate-...
manish singh's user avatar
1 vote
1 answer
37 views

Would it be possible to make HTTP request on chain through pallet extrinsic?

We can make HTTP Get and Post request through Offchain worker. Can we also do the same on chain through pallet extrinsic? Is there any restriction?
Boleng's user avatar
  • 545
0 votes
0 answers
18 views

What can Substrate and Polkadot do for me?

What is the best and quickest way, for a layman, who has very little, to no experience, at all, in coding and/or developing, to play catch-up, so that he/she might be brought-up-to-speed, enough to ...
C.H. Hawk's user avatar
1 vote
0 answers
41 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
0 votes
0 answers
26 views

How to send HTTP POST request using Substrate Offchain worker

I am using Substrate official example to send HTTP POST request, which is mentioned here https://docs.substrate.io/reference/how-to-guides/offchain-workers/offchain-http-requests/#read-and-submit-the-...
Boleng's user avatar
  • 545
0 votes
1 answer
43 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
  • 545
0 votes
1 answer
35 views

Run Substrate-node-template with wss and secure rpc

I was running substrate node template with non secure ws connection . After integrating with pallet-evm,pallet-ethereum and other precompiles , I wanted to connect to metamask with secure rpc ...
Md Raisul Islam Rony's user avatar

1
2 3 4 5
13