All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Parachain Not Compiling

We are updating parachain template in v1.6.0,when building by using cargo build --release, we're getting weird error. Can someone suggest what we are doing mistake? Github repo ErrorFile Link ...
Ganesh11's user avatar
  • 1,217
0 votes
0 answers
7 views

imOnline.SomeOffline At the end of the session, at least one validator was found to be offline on Substrate Frontier NPOS blockchain

I'm running the substrate frontier having NPOS consensus, facing an issue that stops producing the new blocks and stops at a specific block height. Blockchain Explorer recent events: imOnline....
Muhammad Zaryab Rafique's user avatar
0 votes
0 answers
8 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
  • 433
0 votes
1 answer
5 views

How to craft the xcm call from a parachain to the relay chain's registrar.swap extrinsic (for extending the parachain lease period)?

Is there some documentation explaining how to craft the xcm call from a parachain to the relay chain's registrar.swap extrinsic (in the context of extending the parachain lease period)?
Josh's user avatar
  • 415
0 votes
0 answers
7 views

How and where do I sell PARA my tokens

I have PARA tokens on Parallel network. How and where can I sell them?
Richard's user avatar
0 votes
0 answers
15 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
  • 433
0 votes
0 answers
6 views

unable to discover and connect the peer to the --chain contracts-rococo-local

I'm trying to have my node discover and connect to the blockchain terminal so that the peer count will update from 0 peers to 1 peers. However, I keep getting this message: 2024-03-15 18:38:36.394 ...
AndrewKim's user avatar
0 votes
0 answers
7 views

Not able to get randomness on unit test

I'm building a pallet that requires some randomness to simulate the act of tossing a coin. That's why I'm following the same implementation as provided on the Lottery pallet. Particularly, the ...
nhussein11's user avatar
0 votes
1 answer
10 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 ...
Ronnie Ahmed's user avatar
1 vote
1 answer
21 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
1 vote
1 answer
27 views

Why does `transferAll` leave an existential deposit despite keep alive flag set to false?

I recently had to transfer all the funds of an account A to an account B. To do so, I used extrinsic balances.transferAll(B, false) where the second argument is the keepAlive flag (see documentation) ...
GDethier's user avatar
0 votes
0 answers
6 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
1 answer
11 views

How to declare runtime api?

I have a runtime constant declared in a pallet like this: /// How much space there is on the network. #[pallet::constant] type TotalSpacePledged: Get<u128>; Source code ...
abhi3700's user avatar
  • 131
1 vote
1 answer
10 views

Is it possible to allow vesting balances to participant in staking and/or democracy

Is there any prior work on allowing vesting accounts to participate in staking/democracy pallets? To be clear, I would like to use a locked balance from the vesting pallet to vote/stake.
Drew Stone's user avatar
  • 1,184
0 votes
0 answers
13 views

Updating Frontier because of InvalidCode(Opcode(95))

I'm utilizing the Polkadot branch v0.9.37 within a Substrate-based standalone chain. Presently, when deploying smart contracts using the latest version of Solidity, I encounter the following error: ...
BlockBird's user avatar
0 votes
1 answer
23 views

Connect a local node to the Rococo Parachain Network

Issue: Currently, I have a parachain and a relay chain running on Rococo testnet locally. I'm having trouble connecting my node to the parachain network (0 peers to 1 peer). Goal: I'm trying to ...
Peter Kim's user avatar
2 votes
2 answers
41 views

Set max amount of entries that can be stored in StorageMap

I would like to know how I can set a threshold of 10 entries so that it's the maximum number of values that can be stored in a StorageMap structure. My struct is the following: #[pallet::storage] pub ...
nhussein11's user avatar
0 votes
1 answer
14 views

No matching package named 'evm-gasometer found'

My node is on the substrate branch polkadot-v0.9.19. I have bumped it to polkadot-v0.9.22. After bumping the version I am trying to build the node in release mode using the following command. cargo ...
RRR's user avatar
  • 43
0 votes
0 answers
14 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
0 votes
0 answers
12 views

Error deploying to https://contracts-ui.substrate.io/instantiate

I wrote a smart contract ,it compliled but when deploying to https://contracts-ui.substrate.io/instantiate it doesn't deploy I get this error Invalid contract file format. Please upload the generated ...
Davy King's user avatar
0 votes
1 answer
14 views

Change chain_specs to mint custom total supply of custom coin

So, I am working with substrate-node-template . I already changed tokenSymbol and tokenDecimals,i want to mint specific amount to native coin(initially) , but confused where to start . Any insight ...
Ronnie Ahmed's user avatar
0 votes
0 answers
29 views

Cryptographic requirements for random numbers on substrate chain

As far as I know, one of the possibilities to generate random numbers within a substrate chain is by using the pallet_insecure_randomness_collective_flip. However, the documentation explicitly states ...
nhussein11's user avatar
0 votes
0 answers
14 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
0 votes
1 answer
20 views

Error while creating Vector

#![cfg_attr(not(feature = "std"), no_std, no_main)] // use ink_lang as ink; #[ink::contract] mod memory_game { use ink::{ prelude::vec::Vec }; #[ink(storage)] pub ...
Davy King's user avatar
0 votes
0 answers
16 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
  • 111
0 votes
1 answer
21 views

Create Custom coin using pallet_balance of Substrate

So a Quick Question ? I am having trouble customizing the existing pallet_balance to create a new crypto coin in my own image .I am using Substrate-Node-Template.
Md. Raisul Islam Rony's user avatar
0 votes
0 answers
8 views

Kitties Practice Application

I keep on getting the error when I run my substrate node: 'failed to run custom build command for librocksdb-sys v6.20.3
bele luther's user avatar
2 votes
1 answer
47 views

How to run a `polkadot-dev` or `kusama-dev` node?

Since the removal of the polkadot and kusama runtimes from the polkadot-sdk, running one of those chains with -dev or -local runs a rococo node. How can I get a polkdadot-dev\-local or kusama-dev\...
Alberto Nicolas Penayo's user avatar
0 votes
0 answers
23 views

Can't get ChainExtension's caller address right

I'm trying to build a ChainExtension, so that my pallet can deal with invocations from Ink! smart contracts. The problem is that I can't get the address right. Here is that part of the chain extension ...
Arjan van Eersel's user avatar
0 votes
0 answers
12 views

When two XCM's are processed in a block, how to strongly correlate balances.Deposit event with messageQueue.Processed event?

For this block: https://kusama.subscan.io/block/22144324, two XCM's are processed. The response is: "onInitialize": { "events": [ { &...
will.yijinin's user avatar
1 vote
0 answers
16 views

Wallet support for assets minted on AssetHub

Is there any wallet that is able to display assets minted on the Polkadot AssetHub (other than polkadot.js/apps)? The only wallet I've found that displays some AssetHub assets is NovaWallet, but the ...
BeFi's user avatar
  • 11
0 votes
1 answer
19 views

getting CouldNotReadInput while creating cross invocation call when passing Vec<u8> as argument

This is how i am trying to invoke call.. where Bytes is Vec<u8> let res = build_call::<DefaultEnvironment>() .call(handler_acc_id) .exec_input( ...
Priyanshu Mishra's user avatar
0 votes
1 answer
28 views

Oracle pallet - Choosing Source of Stake

Staking is an essential component when designing an on-chain Oracle for a layer 1 Substrate NPOS chain. There are two competing staking designs: Create new staking/sessions modules for the Oracle. ...
RavenMan's user avatar
  • 101
1 vote
0 answers
13 views

How To Increase Static Buffer Size in Ink 5.0 Contract

In Ink 5.0, the Static Buffer size can be increased. Does anyone know HOW to do that? This PR mentions several methods they were considering: https://github.com/paritytech/ink/pull/1869 I tried the ...
KathrynColleen's user avatar
0 votes
0 answers
17 views

xcmpQueue.Fail - NoPermission when I try to execute an XCM extrinsic via proxy

I'm interacting with a smart contract on Astar via XCM message from another chain and through a proxy account with proxy type = "Any". The XCM message arrives at the smart contract chain but ...
Pablo Corrado's user avatar
1 vote
0 answers
22 views

Facing problem in fetching all Preimages using rpc

At certain time, it shows this error.
Shiv Kumar ATR646's user avatar
1 vote
0 answers
18 views

problem with pallets bounties & treasury

hello I am trying to add the bounties pallet to the substrate node-template. the version I am using is "release-polkadot-v1.7.0". I keep getting the following error: the traitframe\_support::...
Kazunobu Ndong's user avatar
1 vote
1 answer
30 views

Is it true that the entire substrate docs points to an archived repo?

The substrate docs are supposed to guide users through the substrate SDK via tutorials. These tutorials use exclusively (to my knowledge) the substrate node template repository. However, all the ...
Marlo's user avatar
  • 111
0 votes
0 answers
14 views

I'm trying to connect my node to the parachain that im logging in with on my express backend

My goal is to be able to see the discover, incoming connection, and accepting connection in the parachain network, which I'm guessing should update the Idle 0 Peers to 1 Peer. I'm still currently ...
AndrewKim's user avatar
0 votes
0 answers
6 views

Pallet compilations of collectibles workshop fails due to non-existing branch

On the first step after the prerequesites we are supposed to create a test pallet (https://docs.substrate.io/tutorials/collectibles-workshop/03-create-pallet/) ... for that we need to update the ...
user5196's user avatar
3 votes
1 answer
30 views

chain stop producing block after adding pallet-session

I'm working on the pow substrate chain with grandpa. For that I integrate the pallet-session and substrate-validator-set[https://github.com/gautamdhameja/substrate-validator-set/tree/master] to join ...
Deepak Chaudhary's user avatar
0 votes
2 answers
18 views

Build error on substrate-node-template with missing target

I am getting this error: Rust WASM toolchain not installed, please install it! Further error information: ------------------------------------------------------------ Compiling wasm-test v1....
abhi3700's user avatar
  • 131
1 vote
0 answers
10 views

"Invalid" error thrown after enabling async backing

After enabling async backing for our parachain, it started throwing an "Invalid" error every time an extrinsic is called, for example, performing a transfer or creating an asset,the strange ...
Sebastian's user avatar
  • 355
0 votes
0 answers
19 views

number out of range on configuring balances

I would like to replace the 1u64 << 60 with x.1 since endowed_accounts is a tuple with the AccountId and the Balance so x1 in the balance for the account ids but after building when i start the ...
Ganesh11's user avatar
  • 1,217
2 votes
0 answers
47 views

Recovering chain from a backup

Prerequisites: A small subset of validators controlled by my company and a much larger set of external validators. A backup of the db folder was created 4 hours (1 epoch) before an incident. ...
Maksim Ramanenkau's user avatar
1 vote
1 answer
45 views

How to recover finality after validator "forced" it due to high finality lag (500+ blocks)

Following a relay runtime upgrade for westend 103000 (which contained a broken migration of the beefy keys), our chain stopped finalizing blocks (all validators, except 1, had the wrong keys on-chain)....
Crystalin's user avatar
  • 790
0 votes
0 answers
9 views

grandpa: maximum length of finalized blocks

In Grandpa finality protocol, blocks are finalized in chunks. Is there a limit of how many blocks can be in 1 array of blocks. Is there a way to estimate this amount?
cocokick's user avatar
  • 165
2 votes
0 answers
18 views

How to add validators node on running chain in pow substrate chain with grandpa?

I'm working on pow substrate chain with grandpa. How can i add the grandpa validators in the running chain?
Deepak Chaudhary's user avatar
1 vote
0 answers
17 views

parachain not producing blocks?

I am using relay chain of polkadot with branch 1.1.0 of polkadot sdk. i have my relay chain running with era and epoch time of 2 minutes each . while changing lease period to 10 minutes and keeping ...
Karanvir Singh's user avatar
1 vote
1 answer
36 views

How to debug an extrinsic (the runtime code) after migration to wasm-only execution in Polkadot?

Polkadot is moving away from native execution mode and in the first step they removed the native execution mode. This means that the --execution Native does not work anymore which is the solution in ...
Shabgard's user avatar

15 30 50 per page
1
2 3 4 5
98