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
2 answers
69 views

Issue with adding a smart contract address to a DEX pallet in a Substrate-based node

I am facing an issue while creating a DEX pallet that allows a user to create a their tokens contract and add it to my DEX in a Substrate-based node. I am using the substrate-node-contract to upload ...
Mr Coder's user avatar
  • 873
1 vote
2 answers
97 views

Unable to nominate more than one validator

I am running a substrate based chain and tried to nominate 2 validators which were in the active state but it is only nominating one validator and showing an inactive status for the other validator. ...
Shubham Gupta's user avatar
0 votes
1 answer
47 views

Block finalization stops after nominating 4 validators

I am running a substrate private network on polkadot-v0.9.36 and observed something, i.e., after nominating 4 validators from a single nominator finalization got stopped which i didn't expected, as ...
Amit Kumar Yadav's user avatar
1 vote
1 answer
91 views

Error running substrate-node-template with Docker

I downloaded substrate node template from here. I am following the instructions given in the README and using following command to run the node in docker: ./scripts/docker_run.sh. It give the ...
Syed Kamran's user avatar
0 votes
1 answer
51 views

How to deploy a Substrate solo node and access it remotely using Polkadot.js front-end?

I am trying to deploy a Substrate solo node on my server and access it remotely using the Polkadot.js front-end. I have followed the instructions in the Substrate documentation and have successfully ...
Mr Coder's user avatar
  • 873
1 vote
2 answers
158 views

StorageDepositLimitExhausted error when trying to deploy contract on Rococo

I got this error when I was trying to deploy my ink! smart contract on Rococo: **StorageDepositLimitExhausted More storage was created than allowed by the storage deposit limit.** What might be the ...
Julyp Julius's user avatar
1 vote
1 answer
19 views

Token symbol doesn't change on adding properties on chain

I was able to add some properties in substrate-node-template chain_spec.rs file. But instead of XCAV token symbol it gives MXCAV. Is this issue or I am doing something wrong. Any advice or reference ...
Ganesh11's user avatar
  • 1,208
2 votes
1 answer
57 views

Does it make sense to convert Vec<Vec<u8>> to Vec<BoundedVec<u8, DescriptionLimit>>? [duplicate]

I have a scenario where I have to store multiple strings. For single string, we can use BoundedVec<u8, DescriptionLimit>, that's why I converted Vec<u8> into BoundedVec<u8, ...
Boleng's user avatar
  • 413
2 votes
1 answer
191 views

Failed to instantiate a new WASM module instance: Limit of 32 concurrent instances has been reached

The Problem I recently switched from polkadot-v0.20.0 to polkadot-v0.37.0 in order to support V4 Ink Smart contracts. But I am encountering the following error using the npm package @polkadot/api when ...
BRNHINLT's user avatar
  • 132
2 votes
1 answer
58 views

what is the default path if I don't set "--base-path"

when I run substrate-node-template, some command use "--base-path" to specify custom base path. However, I want to know what is the default path if I don't set "--base-path". Thank ...
dayday2019's user avatar
3 votes
1 answer
62 views

All pallets requires storage deposit to operate extrinsics?

Storage deposit is for economic security as explained here. All storage usage (not only pallet_balances, frame_system account info, pallet_preimage, pallet_contract's contract storage for e.g.) is ...
Shunsuke's user avatar
  • 432
0 votes
0 answers
37 views

Bags-list pallet test case not running

I am using the polkadot version 0.9.36, I run test cases of all the pallets in the frame by using the cargo test command, every pallet test case is working fine but when I run the bags-list pallet ...
Akash Singh's user avatar
2 votes
2 answers
66 views

substrate node-template how to add `total_insuance` with some accounts initial supply

I am using susbstrate node-template, I am trying to create my own native token d-coin with xxxxx amount of total supply, I am using auro consensus, I was able to add some properties to genesis state, ...
nagaraj's user avatar
  • 199
1 vote
1 answer
244 views

WSL - Substrate Node Template Compilation Error

GM, I installed the dependencies for WSL mentioned in the docs, but I am unable to compile the template node. Any tips? zach@DESKTOP-P2G1H4R:~/substrate/substrate-node-template$ cargo build --package ...
Crypdoughdoteth's user avatar
0 votes
0 answers
47 views

Running substrate-node-template throws macOS memory error

I am using substrate-node-template. I don't have any issue building the substrate-node-template in release mode, and when I try to run it the first time it works fine, but if I stop and try to run it ...
nagaraj's user avatar
  • 199
1 vote
1 answer
57 views

Is there any way to get the validators signatures of the finalized blocks in substrate based chains?

I need the signatures of the validators who have signed on the produced and finalized blocks. For example, In cosmos-SDK based blockchains blocks contains the signatures(and validators addresses) of ...
Aravind Makam's user avatar
0 votes
1 answer
31 views

Substrate Deployment for Prod/Staging

I am wondering where do you deploy your substrate nodes for production or staging? Do you deploy the nodes to some cloud servers? How many connected nodes are sufficient to keep the network running?
FWIDY's user avatar
  • 1
1 vote
0 answers
148 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
  • 283
1 vote
1 answer
285 views

Substrate node-template Compiling sp-externalities error: cannot find macro `thread_local` in this scope

When I am trying to build substrate node-template, cargo build below error occurs. How to solve this issue. system : Apple M1 Pro OSX : Ventura 13.2.1 rustup show installed toolchains -----------------...
nagaraj's user avatar
  • 199
0 votes
3 answers
64 views

Version Upgrade issue

I am running substrate on polkadot-v0.9.25, and I want to upgrade it to polkadot-v0.9.36, so I took the normal approach that has been suggested in many questions, that is to do a runtime upgrade and ...
Shubham Gupta's user avatar
1 vote
1 answer
37 views

Balance becomes zero after changing Account address type from Substrate address to Ethereum address

I am working on a scenario, where I have to upgrade my application and change account address type(from Substrate address to Ethereum address[similar to moonbeam unified account]). I made the ...
Boleng's user avatar
  • 413
2 votes
1 answer
146 views

how to add contract pallet into polkadot-v0.9.31

I want to add contract pallet into polkadot-v0.9.31, but there is no tutorial in [official documentation][1], and it seems that pallet-contracts-rpc-runtime-api not exists. How can I add contract ...
Briza's user avatar
  • 55
0 votes
1 answer
83 views

Getting error after runtime upgrade

I am trying to upgrade the version of substrate on my running blockchain from version v0.9.25 to v0.9.36, everything is fine but after runtime upgrade my terminal shows this [869] 🏊‍♂️ Running ...
Akash Singh's user avatar
1 vote
1 answer
55 views

How to debug Scheduler pallet not making the scheduled call?

I have integrated scheduller pallet into my node, trying to test it running the node and using polkadot js. All compiles. The scheduled task event is printed to the explorer, but when the block used ...
Xavier's user avatar
  • 395
0 votes
1 answer
107 views

How to setup Substrate Private network to support more than 8 nodes

We are running a substrate private blockchain network. We are able to add a total of 8 nodes but are not able to increase more than that. For the 9th node: 9th node is not starting to sync after ...
Anbu 's user avatar
1 vote
1 answer
70 views

How to start a GRANDPA blockchain without any initial voters?

I've tried modifying the repository so initial voters for the grandpa pallet. In doing so, I noticed there are many checks to prevent that modification. The reason why we do not want any initial ...
Kofi's user avatar
  • 141
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 ...
Discardo's user avatar
  • 382
0 votes
2 answers
138 views

What is the cause of this contracts.ContractTrapped error?

I have had two contracts (A, B), where contract a calls a function on contract b, when contract a is deployed. This works fine up to a certain point where I receive a contracts.ContractTrapped error (...
BRNHINLT's user avatar
  • 132
1 vote
1 answer
160 views

the trait `std::clone::Clone` is not implemented for `Nominations<T>`

I was making a new event in the function nominate of Staking pallet which is going to show when the nominator is going to be added. But i facing one issue #[pallet::call_index(5)] #[pallet::weight(...
Arunjot Singh's user avatar
0 votes
1 answer
35 views

Access storage from another pallet

I need to get the owner of an asset to filter extrinsic calls. I tight couple the assets pallet to my pallet and I'm trying to access the Asset storage but getting the following error: How can I ...
Mateo Baldassarre's user avatar
0 votes
2 answers
74 views

Is there any storage for the blocks in blockchain?

I was working on migrating data from one blockchain to other blockchain. I have migrated much of my data. Now i was trying to migrate the blocks of the blockchain.I want to know that where is the ...
Ipsa Gupta's user avatar
3 votes
2 answers
203 views

implement ZKP in substrate

I'm building a custom blockchain using Substrate, and I want to include Zero Knowledge Proofs to enable secure and private transactions. Can someone provide an example of how to implement Zero ...
Mr Coder's user avatar
  • 873
0 votes
0 answers
22 views

unable to connect RPC to my substrate chain into the Subwallet

i want add substrate chain into the Subwallet , it wants ws RPC and i put my chain ws RPC ws://127.0.0.1:9944 but it show me this Error : Unable to Connect RPC . whats the problem ? how can i add my ...
Mr Coder's user avatar
  • 873
1 vote
1 answer
114 views

How to Backup and Restore a Substrate Chain Running on a Server

I am planning to publish a Substrate chain on a server, and I want to ensure that I have a reliable backup and restore process in place to prevent data loss. How can I backup and restore my Substrate ...
Mr Coder's user avatar
  • 873
2 votes
1 answer
45 views

Decentralize substrate template

In the substrate node template only alice and bob is validator who can auth block but i want to let any account to be able to validate and block how do i do it so any one can create block and finilaze?...
Mohamad Al Zohbie's user avatar
0 votes
1 answer
88 views

is it possible to have a multisig root user?

Few days ago, I asked a question here How can I strict my extrinsic to be executed only by Multisig user? to allow extrinsic to be executed only by multisig user. I got the solution. But it leads to ...
Boleng's user avatar
  • 413
2 votes
1 answer
31 views

Error generating Raw Chainspec from Plain Chainspec in Substrate

I am trying to generate raw chain spec from plain chain spec, but it won't let me: ✗ ./target/release/node-template build-spec --chain plain-local-chainspec.json --raw > chain-spec.json Error: ...
Gogosama's user avatar
0 votes
1 answer
63 views

Polkadot version 36 - app_crypto! error (cannot find macro `format` in this scope)

When compiling version 36 substrate or cumulus I can see this error and not sure how to get rid of error: cannot find macro `format` in this scope --> /Users/hotovo/.cargo/git/checkouts/substrate-...
Michal Danco's user avatar
0 votes
1 answer
62 views

How to add a Substrate token created with a smart contract to my wallet? What wallet can I use for testing in a local environment?

I created a token on the Substrate chain using a smart contract and I am now trying to add it to my wallet. However, when I enter the contract address into the "Import a token" section of ...
Mr Coder's user avatar
1 vote
1 answer
63 views

Best setup for separate runtimes

I want a "Mainnet" and "Testnet" for my network. It's forked off https://github.com/paritytech/substrate. Mainnet and Testnet will have some parameters set differently, many of ...
Mexke's user avatar
  • 55
0 votes
1 answer
40 views

How can I strict my extrinsic to be executed only by Multisig user?

I have an extrinsic, which can be executed only by sudo. I want it to be executed only by MultiSig user. I couldn't find way to do this. I can replace ensure_root(origin) with ensure_signed(origin) ...
Boleng's user avatar
  • 413
4 votes
1 answer
125 views

Is there any way to access the accountid inside the offchain worker?

I am coding a pallet in which I need to know who I am inside a offchain worker to check if I should send a transaction or not. Right now I have access to the account in the send_signed_transaction ...
Gabriel Martinez's user avatar
1 vote
1 answer
88 views

contracts.OutofGas when i want to uplooad smart contract

i want upload smart contract in the https://polkadot.js.org/apps/#/contracts but it when i press the depoloy button , it show me this error : polkadot-v0.9.34 substrate-contracts-node : substrate-...
Mr Coder's user avatar
  • 873
1 vote
1 answer
157 views

cargo-contract cannot build using the "stable" channel. Switch to nightly

I want to run and build contract by thia command : Step 1: cargo contract new my_contract Step 2: cargo contract build when i want to run Step 2 and i faced this error : ERROR: cargo-contract cannot ...
Mr Coder's user avatar
  • 873
0 votes
1 answer
88 views

How to upload a smart contract using Pallet-contract on Substrate Chain

I am using the Pallet-contract module in my Substrate chain and I would like to upload a smart contract. I have the following questions: What should I put in the code input field? Do I need to upload ...
Mr Coder's user avatar
  • 873
0 votes
1 answer
35 views

How can we check the total_supply of EVM?

I have integrated pallet_evm in my blockchain? I want to check the total_supply of EVM, How could this be done.
Ipsa Gupta's user avatar
1 vote
1 answer
52 views

Update ERC-20 Storage slot from Substrate

I'm trying to make a PoC (using frontier template) where I should update the balance of an EVM ERC-20. I guess that the steps should be as follows: Calculate the storage slot like this tool does: ...
dbp's user avatar
  • 11
1 vote
1 answer
81 views

How to implement token registration, trading and enforce the use of native token for fees in a DEX built with Substrate?

How can I implement token registration, trading, and fee payment with my native token (GGG) in a decentralized exchange (DEX) built with Substrate? Specifically, I am looking to: Allow users to add ...
Mr Coder's user avatar
  • 873
2 votes
2 answers
226 views

How to change the native token in Substrate to a custom token?

I want create a custom token in Substrate by the name GGG and I want to use this token for each transaction fee instead of the default Substrate token. Can someone please guide me on how to change the ...
Mr Coder's user avatar
  • 873
1 vote
1 answer
162 views

Add my custom chain types to Polkadot-js/apps

I want to add my chain types to the Polkadot-js/apps in order to reflect the changes on frontend. I've tried generating types using this tutorial, but I've no idea how can I use them in Polkadot-js/...
Discardo's user avatar
  • 382

1
3 4
5
6 7
11