Skip to main content

Questions tagged [polkadot]

Questions about the Polkadot Relay Chain

Filter by
Sorted by
Tagged with
17 votes
5 answers
354 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
17 votes
3 answers
302 views

What is the XCM format on Polkadot?

What is the XCM format on Polkadot? Could anyone please explain? Thank you so much!
CuongDC's user avatar
  • 273
17 votes
2 answers
222 views

What's the easiest way to set up a relay chain locally with a couple of parachains?

If I want to play about with cross-chain messaging (xcm) what's the best way to get an environment up and running?
Squirrel's user avatar
  • 3,849
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
15 votes
1 answer
210 views

What is Cumulus?

How does Cumulus relate to Polkadot? What is the difference between the two? Can I launch a chain without Cumulus? Are there any good documentation around the interactions between the two?
Sam Elamin's user avatar
  • 1,223
13 votes
3 answers
887 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
10 votes
1 answer
113 views

Why only top 256 nominators are rewarded for an oversubscribed validator on Polkadot?

According to the Wiki article - https://wiki.polkadot.network/docs/learn-nominator#oversubscribed-validators only the top 256 nominators of an oversubscribed validator receive rewards. It also ...
DrW3RK's user avatar
  • 956
10 votes
1 answer
184 views

Are Offences ever pruned?

In our runtime we have a custom implementation of offence reporting. I want to write an adapter for grandpa equivocation offences (implementing the ReportOffence trait), and have been using the ...
dan_chainflip's user avatar
10 votes
0 answers
156 views

How `parity-bridges-common` is intended to be used for development? [closed]

So there is a repo parity-bridges-common that contains "Useful Bridge Building Tools" and is currently under development. This repo uses XCMv3 branches of polkadot and substrate (which is ...
bragov4ik's user avatar
  • 121
9 votes
2 answers
311 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
9 votes
1 answer
111 views

Can nonces be skipped in Polkadot/ Kusama

In Ethereum, clients must monitor for the successful progpagation of transactions (each with a nonce) in order to broadcast a new transaction (with a later nonce). If, due to low gas or some other ...
mork's user avatar
  • 141
9 votes
2 answers
314 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
1 answer
529 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
8 votes
2 answers
242 views

How to get pallet index (u8) of a pallet in runtime?

how to get pallet index (u8) of a pallet in runtime? I have a scenario, where I have to add filter like this https://github.com/AcalaNetwork/Acala/blob/master/runtime/acala/src/lib.rs#L187 but method ...
Ayush Mishra's user avatar
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
8 votes
2 answers
194 views

Is it possible to add 2nd order Relay-chain to Relay-chain

I was questioning this for a while. Having parachains are generally good for security and the ecosystem. As seen in the Polkadot whitepaper, 2nd order Relay-chain is mentioned. I believe it is not ...
Burak's user avatar
  • 903
8 votes
1 answer
103 views

What are the best practices for keeping chain specifications for Devnet, Testnet, and Mainnet environments?

can anybody help me to understand what questions I should address before choosing the approach for keeping the runtime configuration for Devnet/Testnet/Mainnet environments in a substrate-based ...
Yahor Tsaryk's user avatar
7 votes
2 answers
173 views

What is Gossamer and how does it compare to Substrate?

Gossamer is a Go-lang implementation of the Polkadot host. What does this mean, and how does this compare to Substrate? Could Gossamer be the Go-variant of Substrate for developers exploring ...
q9f's user avatar
  • 307
7 votes
1 answer
70 views

Accidentally used ETH address to receive token from polkadot

I accidentally used my ETH address to receive token from Polkadot. Is there any way I can access my tokens with my private key? Thanks. For example: https://polkaholic.io/account/...
user avatar
7 votes
1 answer
247 views

Docker and Substrate with Apple Silicon/M1 Chips

Getting qemu errors when trying to build cumulus/polkadot on the container with the official image FROM docker.io/paritytech/ci-linux:production as builder qemu-x86_64: could not open '/lib64/ld-linux-...
Sam Elamin's user avatar
  • 1,223
6 votes
3 answers
330 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
2 answers
347 views

Is there any way to mint new native tokens after deploying the substrate chain?

I want to mint new tokens to a particular account, I found a function fn mint_into in balances pallet, it is been implemented for fungible assets that's what I understood from the code maybe I am ...
Shubham Gupta's user avatar
6 votes
1 answer
72 views

What are the shortcomings of Polkadot's governance and what will its next iteration be?

What are the shortcomings of the current governance mechanism in Polkadot and how will its next iteration address those?
cmichi's user avatar
  • 2,800
6 votes
2 answers
77 views

Does the auction happen automatically during Crowd Loan?

During an auction crowdloan for propsective parachain, does the auction run automatically? Or do we need to manually make a bid? If it is manual then why doesn’t everyone go all in at the beginning of ...
Ramsey - Decentration's user avatar
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
6 votes
1 answer
78 views

How do extrinsic weights apply to Raspbery Pi full-nodes?

I'm running a polkadot full-node on a Raspberry Pi 4. While the Substrate Fee system is determined by Weights & Benchmarking, how are different CPU architectures (when compared to the standard ...
Bernardo Rodrigues's user avatar
6 votes
1 answer
613 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
6 votes
2 answers
211 views

Parachain lease extension: Swap ParaID as well

When swapping two parachain slots as described in the polkadot wiki, is it also possible to swap the ParaID, for example to keep the old ParaID and thus avoid issues in regards to XCM when extending ...
sea212's user avatar
  • 539
6 votes
2 answers
369 views

What format is the block timestamp?

I'm using @polkadot-js to decode extrinsic data. The following method call returns a timestamp at a specific block, but I don't know how to parse this. I tried assuming that it's a unix timestamp in ...
mango's user avatar
  • 163
6 votes
2 answers
224 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
2 answers
375 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
68 views

Substrate connect & JS API

This question came to the forefront after reading the question about the connect extension and the usage thereof on live networks. From the comments it is apparent that I can use the JS API to connect ...
Barto's user avatar
  • 584
6 votes
1 answer
94 views

What criteria do blockchains consider when deciding on Existential Deposit?

At the time of asking this question, the ED on Polkadot is 1 DOT and Kusama is 0.0000333333 KSM. Polkadot, and most Substrate-based chains, use an existential deposit (ED) to prevent dust accounts ...
DrW3RK's user avatar
  • 956
6 votes
2 answers
46 views

What's a great way to see what parachain auctions are happening right now?

What's a great way to see what parachain auctions are happening at the moment for kusama and polkadot?
Squirrel's user avatar
  • 3,849
6 votes
1 answer
163 views

What's the logic behind Polkadot's choice in pallet indexing?

In most runtimes in production, each pallet has a specific index but its not clear what the logic behind ordering them really is. For example, in Polkadot we can see a comment in the construct_runtime ...
Sacha Lansky's user avatar
  • 2,640
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
1 answer
51 views

What are the different types of hashes given in the release notes of each runtime used for?

A runtime release might say the following: 🗳️ system.setCode hash: 0xa6b93db1b6abbe5c94e4fe0969f86eed61d78fda7e0405bfe7b1a2b4d87d4a4f 🗳️ authorizeUpgrade hash: ...
Squirrel's user avatar
  • 3,849
5 votes
2 answers
851 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
5 votes
1 answer
153 views

How to build a "super light" bridge based on Beefy?

Is it possible / how to build a Beefy super light client for Kusama or Polkadot? Beefy is designed to make the syncing process and finality proof very succinct to enable Ethereum on-chain light client....
h4x3rotab's user avatar
  • 717
5 votes
2 answers
66 views

What is required to integrate a Parachain into Kusama?

I just integrated our parachain into Rococo. Our testing is completed now we are ready to integrate into Kusama. I just want to understand what is the process for Kusama integration. Because Rococo ...
Ayush Mishra'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
1 answer
248 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
2 answers
142 views

How do I know in which Polkadot release a Substrate PR (hence change) got in?

I am trying to figure out in which Polkadot release the Deposit and Withdraw events were introduced. I was looking at the corresponding PR, Add Deposit and Withdraw Events to Balances Pallet in the ...
dominique's user avatar
  • 1,683
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
5 votes
1 answer
126 views

Are transaction always submitted to non-validator nodes?

Reading the Polkadot docs, I've run into the following statement: Validators should only run the Polkadot binary, and they should not listen on any port other than the configured p2p port. So far, ...
andresvsm's user avatar
  • 1,114
5 votes
1 answer
83 views

How can I fetch the bagsList?

I need to find my account's rank in the semi sorted bagsList hence I look for an API to do fetch that. why is it SEMIsorted that then needs to a rebag call that cost a fee? why it is not sorted at ...
Kami's user avatar
  • 537
5 votes
1 answer
127 views

How to compute the starting and ending of a lease period?

For a given lease period, how can we know when the lease period starts and ends (as date time)?
Cromm's user avatar
  • 321
5 votes
1 answer
285 views

What problems does the relay chain solve? General questions about blockchain interoperability

Why would blockchains interoperate, what are some real world problems with real scenarios blockchain interoperability solve? I keep hearing easier transfer of value from one blockchain to another but ...
Dante's user avatar
  • 51
5 votes
1 answer
46 views

How do I get the currently logged address in front end template?

What I´m trying to do is to condition some option/modal to be shown in the screen depending on the logged user/account being the owner or not so to have something similar to: accountPair.address === ...
Xavier's user avatar
  • 415
5 votes
1 answer
108 views

Web3 Foundation - Accountable light clients via BLS multisignature rollup

I listened to a talk at zksummit7 titled "Web3 Foundation Accountable light clients via BLS multisignature rollup" given by Alistair from web3f. My interpretation of the talk is that ...
TauLepton's user avatar
  • 107

1
2 3 4 5
11