Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
22 views

sp-io v38.0.0 cannot find function `malloc` in module `crate::allocator`

I'm building custom solochain using polkadot-sdk-solochain-template. After I've added some dependencies and fixed error with implementation I'm starting to get the sp-io error: cannot find function `...
Artem Levchuk's user avatar
0 votes
0 answers
10 views

How to Generate Substrate Keys for a Custom SS58 Format (e.g., 567)?

I am working on a Substrate-based blockchain and need to generate keys for my network, which uses a custom SS58FORMAT = 567. I am using the key subcommand from my Substrate node executable. However, ...
Superluminal's user avatar
0 votes
0 answers
9 views

Resolving Frame-Metadata Version Conflict Between Dependencies while updating version of substrate project

There seems to be a frame-metadata crate error where 2 versions are being referenced which is causing the error. The 2 versions are v16.0.0 and v18.0.0. The issue is that the substrate-wasm-builder ...
Md. Raisul Islam Rony's user avatar
1 vote
2 answers
149 views

Resolving Sandbox Host Function Access After Deprecation in Polkadot v0.9.35

I am currently working on a Substrate-based solo chain that has migrated from polkadot-v0.9.34 to polkadot-v0.9.35 and is now on the stable branch 2409. In v0.9.35, the Sandbox host functions were ...
Deepak Chaudhary's user avatar
0 votes
1 answer
27 views

Can't find substrate-node-template

I'm new to substrate.I'm following the a tutorial on youtube https://www.youtube.com/watch?v=G897F8Gw1PM&list=PL5dTjWUk_cPYdb4j2RH8BHEAK3z_ZME1j&index=2 and the substrate docs to build a local ...
Deepu Harry's user avatar
1 vote
1 answer
21 views

What should be `Good Enough` requirement for Substrate based chain?

I am working on a Substrate based chain. I want to make sure my chain is up to par for Polkadot community. For example: my chain should use latest Polkadot SDK stable version. Are there other things, ...
Boleng's user avatar
  • 568
3 votes
2 answers
73 views

use of undeclared crate or module `alloc` when upgrade to `v1.13.0`

I got this error below when running psvm -v 1.13.0 error[E0433]: failed to resolve: use of undeclared crate or module `alloc` --> /Users/chungquantin/.cargo/registry/src/index.crates.io-...
Tin Chung's user avatar
  • 348
1 vote
0 answers
42 views

frame-benchmarking-0.35.0: use of undeclared crate or module `alloc`

I am trying to upgrade the base-parachain to v1.13.0 and got an issue with the frame-benchmarking. This error coming from the frame-benchmarking crate which throws an error error[E0433]: failed to ...
Tin Chung's user avatar
  • 348
4 votes
1 answer
110 views

Unable to compile upgrade parachain node after running `psvm v1.13.0`

I am trying to upgrade my parachain node from v1.12.0 to v1.13.0 using psvm but it does not compile successfully due to some mismatch conversion error of libp2p. I believe this PR must cause that ...
Tin Chung's user avatar
  • 348
0 votes
1 answer
15 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
  • 568
0 votes
0 answers
29 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
58 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
23 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
0 votes
0 answers
28 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
0 votes
1 answer
18 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
0 votes
0 answers
48 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
0 votes
2 answers
77 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
0 votes
1 answer
70 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
36 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
0 votes
0 answers
16 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
59 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
1 answer
20 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
34 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
60 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
44 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
  • 568
2 votes
1 answer
127 views

Syncing with a chain that requires host functions deprecated by the Substrate

I'm working on upgrading a Substrate-based standalone chain that was launched several years ago. Recently, we made a transition from polkadot-v0.9.34 to polkadot-v0.9.35. After we did that, we are no ...
Yahor Tsaryk's user avatar
0 votes
0 answers
13 views

Connecting a libp2p node to the Substrate Parachain Network

Goal Add a libp2p node to the Substrate parachain network to have Idle 0 peers to 1 peer. Method I'm using mdns as the discovery mechanism. Libp2p Config: const options = { peerId: peerId, addresses:...
Peter Kim's user avatar
0 votes
0 answers
19 views

Not able to add any crates in substrate-node-template

I am working on substrate.where I want to use some of create like pinata_sdk,Openssl etc but I am not able to import or add in cargo.tmol file where I add I get this error: ` --- stderr Compiling sp-...
manish singh's user avatar
1 vote
2 answers
55 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
  • 123
3 votes
0 answers
52 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
44 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
24 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
0 answers
28 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
49 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
66 views

while building an application logic (use macros in a custom pallet) [duplicate]

[][in build an application logic im facing this error im new to substrate please help me fix this.]
Preethi M's user avatar
2 votes
0 answers
69 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
0 votes
0 answers
36 views

Build a blockchain

I'm following substrate documentation in that build a blockchain tutorial while following the monitoring node metrics tutorial. I got stuck while installing prometheus on my ec2 instance is there any ...
Preethi M's user avatar
0 votes
0 answers
66 views

Maintained Substrate-NPoS-template?

Substrate has a substrate-node-template with Aura consensus which is well maintained and updated time to time. Do we have a same kind of template for NPoS consensus which is well maintained and ...
Immanuel John's user avatar
3 votes
1 answer
80 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
1 vote
1 answer
38 views

Polkadot JS query response types are missing

No types for blockchain query responses are available in our IDE. Doing any query like this await blockchain.api.query.assets.asset(id, (res) => { const info = res.toJSON() console.log(&...
donkeydonkey's user avatar
1 vote
1 answer
47 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
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 ...
support's user avatar
  • 135
2 votes
1 answer
108 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 ...
go11li's user avatar
  • 1,253
0 votes
0 answers
55 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 ...
go11li's user avatar
  • 1,253
2 votes
1 answer
84 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
2 answers
76 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 ...
go11li's user avatar
  • 1,253
0 votes
2 answers
242 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 ...
go11li's user avatar
  • 1,253
0 votes
1 answer
91 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 = [&...
go11li's user avatar
  • 1,253
2 votes
1 answer
45 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 ...
go11li's user avatar
  • 1,253
2 votes
1 answer
83 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?
go11li's user avatar
  • 1,253