Skip to main content

Questions tagged [polkadot]

Questions about the Polkadot Relay Chain

Filter by
Sorted by
Tagged with
13 votes
3 answers
888 views

How do I become a Substrate Developer? [closed]

I would like to become a Substrate Blockchain Developer. What is the recommended path? I have 4 months of Rust programming experience and 3 years of Python programming experience. I am just starting ...
Udit's user avatar
  • 155
8 votes
1 answer
431 views

How to unbrick a Substrate Chain? --revert?

I've been running a local relay chain with two validators, and tried doing a runtime upgrade that failed showing the following errors on the validators: 2022-02-11 18:11:48 Running migration to v1 for ...
Santiago Balaguer's user avatar
3 votes
1 answer
159 views

Missing `successful_origin` in implementation when running runtime-benchmarks

With a fresh substrate-parachain-template I ran cargo build --features runtime-benchmarks I got errors from a deep dependency in pallet_society, which doesn't seem relevant to the parachain-template's ...
Ramsey - Decentration's user avatar
2 votes
1 answer
285 views

Best practices for generating and monitoring transactions

So I am building a service that will be creating high amount of transactions on different substrate base chains. The infrastructure I have in mind is having microservices that will generate ...
Tadej Vengust's user avatar
1 vote
1 answer
261 views

Collator node starts failing to import blocks with "database" and "block has an unknown parent" errors after its been running for a while

I'm running collators for both kusama and polkadot network, and both started failing to import blocks after running for a while, these are the logs that I'm getting: 2022-12-13 22:49:39 [Relaychain] 💔...
Sebastian's user avatar
  • 411
17 votes
5 answers
355 views

What's the difference between Substrate and Polkadot?

A little confused on the relationship/hierarchy between Substrate/Polkadot. For instance, is the use case for Substrate to build decentralized apps for Polkadot or is it for something else?
Christian Wilkie's user avatar
6 votes
2 answers
227 views

Barrier error during initiating HRMP channel with Rockmine on Rococo

I want to open HRMP channel with Rockmine on rococo. But I got the Barrier error and can't understand what is wrong with my request. This is my encoded call data ...
rust.dev's user avatar
  • 519
6 votes
1 answer
616 views

How do you add new validators for your blockchain testnet?

I have a launched a Rococo staging style relay chain testnet. I am currently the sudo and I would like to go through the process of inviting other people to become validators. What steps do I need to ...
Ramsey - Decentration's user avatar
5 votes
1 answer
147 views

Computing deposits in Polkadot

The Polkadot runtime has a large number of parameter values that determine how much a user has to lock up as a deposit when creating a state object. The motivation seems to be something like a state-...
Bedeho Mender's user avatar
2 votes
3 answers
667 views

Error Building Substrate contract Node(error[E0603]: module `group` is private) After switching Substrate dependencies to "polkadot-v0.9.23" [duplicate]

So, I am trying to point all my dependencies on substrate contract node to the stable branch polkadot-v0.9.23 But I get these errors when i try compiling error[E0603]: module `group` is private --&...
dharjeezy's user avatar
  • 419
2 votes
1 answer
102 views

Derived H160 address is different than showing in metamask?

I know ss58 public key and private key, also I have derived the EVM HS160 account from the same public key, next is how I can import that EVM HS160 Account in metamask. If I put the private key of ...
neeraj's user avatar
  • 41
1 vote
2 answers
96 views

While executing contracts functions getting out of gas error

I have deployed a wasm smart contract on chain using version polkadot-v0.9.36, after deploying the contract when I tried to execute its function i got error out of gas as shown below. When I tried ...
Shubham Gupta's user avatar
17 votes
4 answers
256 views

What is the best tutorial to convert a substrate-based standalone chain to a parachain?

What is the best tutorial to convert a substrate-based standalone chain to a parachain?
Songhua Hu's user avatar
9 votes
1 answer
530 views

How to get the balance of an account at a particular nonce using Polkadot.js API

I want get the balance of an account address at a particular nonce. I only know how to get the latest balance of an account address and its latest nonce (total number of transactions sent from that ...
Lee's user avatar
  • 111
9 votes
2 answers
315 views

Trait bounds not satisfied for `Balance` type

I was following this guide Configuring Genesis for Balances. In my parachain, I replaced T::Balance with BalanceOf<T> type BalanceOf<T> = <<T as Config>::Currency as ...
Russo's user avatar
  • 1,193
9 votes
2 answers
313 views

How can we get a snapshot of all balances at a certain block?

Which api/rpc call and method do I need to use to extract the state of all balances at a certain block? Let's use Polkadot and recent block as an example: https://polkadot.js.org/apps/?rpc=wss%3A%2F%...
Ramsey - Decentration's user avatar
6 votes
2 answers
377 views

<wasm:stripped> printed when logging from the runtime

I'm trying to debug in pallet-staking to figure out something about how validators/nominators join NPoS network. https://github.com/paritytech/substrate/blob/master/frame/staking/src/pallet/impls.rs#...
CocDap's user avatar
  • 678
6 votes
1 answer
120 views

When are you required to change the `authoring_version` for forkless runtime upgrades?

In the Substrate documentation here and the Substrate reference documentation here it says the authoring_version "is the version of the authorship interface. An authoring node will not attempt to ...
Luke Schoen's user avatar
  • 2,332
6 votes
3 answers
331 views

How do I check what metadata version a chain is running?

I'm quite new at this, but I'm having trouble understanding the "metadata version". My confusion stems from the fact that I know that Polkadot/Kusama has upgraded to v14 a while back, but I ...
Werner S's user avatar
  • 629
6 votes
1 answer
77 views

Democracy rework in Substrate

Am I correct in understanding that the governance portion of Polkadot/Kusama/Substrate is undergoing a small revolution in terms of code? Based on what I've seen/heard: Democracy is undergoing a re-...
Barto's user avatar
  • 584
5 votes
1 answer
249 views

How to set base_fee and len_fee to zero?

I was trying to modify the transaction fee and for that I only want the congestion of the network. In FeeDetails, that is present in the transaction-payment pallet, we have three fields, i.e., ...
Shubham Gupta's user avatar
5 votes
1 answer
344 views

Block times in parachain are twice as long as configured

We are configuring the block time to be 6 seconds in our parachain and yet in Polkadot apps it reliably creates blocks every 12 seconds. Is there something I'm missing here? The code we are using in ...
Drew Stone's user avatar
  • 1,194
5 votes
2 answers
860 views

How to decode extrinsic at json-RPC call's data(byte code)

I call json-RPC through the terminal and get the data as below. extrinsics is raw byte, but I'm using polkadot-js(SCALE codec?) to decode it. But I don't know which method to call. "block": ...
PaperFrog's user avatar
  • 495
4 votes
2 answers
342 views

I want to enable Teleport Asset functionality in XCM between two parachains. How should I do it? Also, how do I teleport asset from Para1 to Para2?

My aim is to teleport an asset on parachain1 to parachain2. But I saw in parachain code, that teleport is disable. How do I enable it? I am confused about Teleport in XCM. Basically, how do I make it ...
Rohitas_atr894's user avatar
4 votes
2 answers
144 views

How to configure polkadot + parachain locally to validate parachain block each 6 sec?

I want to spin up parachain LOCALLY faster. each 6 sec. How to configure polkadot with parachain? I have seen this and this and this post So my zombienet contains polkadot(obviusly😊) and two ...
rust.dev's user avatar
  • 519
3 votes
2 answers
154 views

Is it possible to specify parachains in the Polkadot chain specification for local testing?

I noticed that the chain specification for Polkadot contains a paras field that is empty. I have not been able to find any documentation on what it is used for or if I can specify parachains there to ...
Niels Vistisen's user avatar
3 votes
1 answer
161 views

How might we introduce a new host function into the Polkadot ecosystem?

Introducing new host functions means that all nodes must update to include it. In the future, some parachain teams may require some custom host functions for their needs. What would the approval ...
Sacha Lansky's user avatar
  • 2,640
3 votes
1 answer
203 views

Is there any way to convert an ss58 address to the 32 bytes pubkey? [duplicate]

I want to do this inside a precompile, so it is runtime and I don't have access to std.
Gabriel Martinez's user avatar
3 votes
1 answer
182 views

How to migrate from Kusama to Polkadot?

I want to migrate my production parachain from Kusama or Polkadot. How can I achieve this?
sea212's user avatar
  • 549
3 votes
1 answer
147 views

getBlock - Unable to catch some transactions

when I run getBlock function as followed const signedBlock = await api.derived.chain.getBlock(blockhash) I can fetch data from this blockhash: ...
korimusk's user avatar
3 votes
2 answers
119 views

error: `<C as TrieCacheProvider<H>>::Cache<'_>` does not live long enough

I'm adding ping pallet in the parachain and i'm facing this issue Can anyone guide me through this?
Ipsa Gupta's user avatar
2 votes
1 answer
92 views

Is it possible to add some text in genesis block?

We are wondering if there is a way to put text/data into the genesis block. We would like to save some information about what blockchain stands for in that. We just want to know whether its possible ...
Ayush Mishra's user avatar
2 votes
1 answer
113 views

what affect the change of the minimum stake of a Nominator?

This number changes every day. What are the variables that affect that?
Superluminal's user avatar
2 votes
1 answer
133 views

What does the Staking.EraPaid event mean?

According to Polkadot's events description page, the Staking.EraPaid event means the following: The era payout has been set; the first balance is the validator-payout; the second is the remainder ...
Gabriel Crispino's user avatar
2 votes
1 answer
107 views

Read current Crowdloan Contributions

I want to open a Crowdloan and read current contributions as they come to my crowdloan to offer a special reward mechanism for early contributors. What's the best way to get the information on what ...
Santiago Balaguer's user avatar
2 votes
2 answers
260 views

How can I get predefined built-in account‘s key pair from polkadotjs app? Such as Alice and Bob

I want to use the predefined built-in account's key pair to sign extrinsic from ocw, but I can not get the key/Secret seed/Secret phrase from polkadotjs app. How can I get these items? Shall I use ...
kugool's user avatar
  • 171
2 votes
1 answer
261 views

How to verify `runtime-upgrade` using `try-runtime

I am trying to verify a simple runtime-upgrade using try-runtime. I followed https://docs.substrate.io/reference/how-to-guides/tools/use-try-runtime/ and https://docs.substrate.io/reference/command-...
Ayush Mishra's user avatar
2 votes
1 answer
227 views

How to ensure parachain block validity without fishermen

In the Polkadot white paper and W3F research papers and lots of other articles, Fishermen is frequently described. This Fishermen (parachain full node) role checks validity of blocks by pointing out ...
Shunsuke's user avatar
  • 432
2 votes
1 answer
62 views

Do I need to write migration script if upstream pallet's storage has been changed?

I have my substrate blockchain application based on Polkadotv0.9.16. I want to upgrade it to latest Polkadot version v.0.9.21. I will be doing this step by step, version by version to avoid big ...
Ayush Mishra's user avatar
1 vote
1 answer
151 views

Collator nodes are not working

I recently got a parachain ie, 4058 via subport issues request form When I was starting my parachain-collator-template with the following command ./target/release/parachain-collator --bob --collator ...
Mojo's user avatar
  • 95
1 vote
1 answer
38 views

Upgrade parachain collator binary from polkadot-sdk v0.9.29 to v1.1.0, failed to launch with error 'Invalid argument: column families not opened'

We're running a parachain on Polkadot Relaychain. The parachain collator binary is built based on polkadot-sdk v0.9.29 When we try to upgrade binary to a new version which is built based on polkadot-...
Brian Wu's user avatar
1 vote
1 answer
230 views

Why is it required to have 405.1869 DOT in solo staking?

I am currently using Ledger Nano S to stake Dot but I am unable to receive rewards. I checked Polkadot's official website which says the minimum amount to receive rewards is 120Dot (My current bonded ...
Amin Memariani's user avatar
1 vote
1 answer
292 views

RPC-CORE: queryInfo(extrinsic: Bytes, at?: BlockHash) ... failed on weight: u64

Recently when I want to submit a transaction I receive the following failure alert, I had similar issue while getting a tx paymentInfo, which is resolved by upgrading apis, but while submitting a tx ...
Kami's user avatar
  • 537
1 vote
2 answers
981 views

Can you recover the Mnemonic or secret keys from a Polkadot.js JSON backup?

I want to add my polkadot account to the Trust wallet. There is no option to use the json. Is there a way to recover the private keys from the raw json backup?
Superluminal's user avatar
1 vote
4 answers
273 views

Is there a way to integrate polkadot wallet with unity?

I am making an application in C# unity and trying to integrate polkadot wallet in the application. I want to know whether it's possible to use the polkadot wallet browser extension to sign personal ...
Tejas's user avatar
  • 21
1 vote
1 answer
136 views

Cannot register parachain ID: System Extrinsic Failed: Bad Origin

I was following this tutorial all the way up to registering a parachain ID. https://docs.substrate.io/tutorials/connect-relay-and-parachains/connect-a-local-parachain/#register-with-the-local-relay-...
Russo's user avatar
  • 1,193
1 vote
1 answer
101 views

Error when add pallet-contracts in substrate : no matching package named `pallet-contracts-rpc-runtime-api` found location

i want to add pallet-contracts into substrate on branch but i faced errro . Repository i will tell you step by step what i did : Step One : Add Depency Pallets pallet-contracts = { version = "4.0....
Mr Coder's user avatar
  • 923
1 vote
1 answer
153 views

Would it be possible to run solochain and parachain from single code base?

A few months ago, we worked on a parachain and have been trying to integrate into Kusama but we couldn't win the slot. This is affecting our business. Would it be possible to have a single code base ...
Ayush Mishra's user avatar
1 vote
1 answer
35 views

I created a motion and want to know when code will be executed?

I created a motion and want to know when code will be executed? When all voters voted for motion and someone execute "close" transaction. Will it be executed immediately?
rust.dev's user avatar
  • 519
0 votes
1 answer
51 views

If the first ever reserve asset transfer from asset hub to a parachain is of an asset other than DOT it fails with LocalExecutionIncomplete

I've noticed that if the first ever reserve asset transfer from asset hub to a parachain is of an asset other than DOT it fails with LocalExecutionIncomplete, the chopsitcks logs don't show any output....
Sebastian's user avatar
  • 411