Skip to main content

Questions tagged [polkadot]

Questions about the Polkadot Relay Chain

Filter by
Sorted by
Tagged with
5 votes
1 answer
48 views

How to use @polkadot/react-components? version issue

I have tried to use @polkadot/react-componentsin React project Here, AddressInfo component component is from @polkadot/react-components When I try to use this component, I got this issue I'd really ...
Christian Ramos's user avatar
5 votes
1 answer
325 views

error[E0046]: not all trait items implemented, missing: `try_successful_origin`

I am seeing this compile error with the xcm-builder when building our chain w/Polkadot 0.9.38. What should I change to fix it? This issue is also discussed here https://github.com/paritytech/subport/...
Robert La Ferla's user avatar
5 votes
0 answers
34 views

eip-681 equivalent for Polkadot to generate qrcodes

I'm developing an app and there I have the possibility to generate qrcodes to ask for payments in multiple blockchains using multiple tokens. For EVM blockchains I do have the eip681 to guide me (...
Valhalla Hero's user avatar
5 votes
0 answers
62 views

How to configure XCMP queue drop threshold?

The XCMP queue drops messages if they exceed the limit: if (count as u32) < drop_threshold { status[i].message_metadata.push((sent_at, format)); } else { debug_assert!( false, ...
apopiak's user avatar
  • 418
5 votes
0 answers
284 views

XCM Barrier blocked execution: when transferring XC-20 between 2 local Moonbase parachains

The setup is: polkadot-launch 1 relay chain: polkadot-0.9.18 rococo 2 parachains: moonbeam-0.24.0 moonbase-local paraId 1000 paraId 1001 open hrmp channel via polkadot-launch Transferring DOT ...
BackMoonrive's user avatar
4 votes
1 answer
124 views

How get the starting Time of a an EraIndex?

I would like to have the start of an era by eraIndex like: const startingTime = getStartTimeOf( eraIndex ); Thank you.
Kami's user avatar
  • 537
4 votes
2 answers
79 views

How can I build a fully decentralized daily poker competition? [closed]

I'm looking to build a WSOP style texas holdem poker competition which includes multiple players turning up to play. With options like folding, raising, betting, etc. All in a fully decentralized way.....
Butter's user avatar
  • 41
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
1 answer
275 views

What is the parachain validation function (PVF)?

I would like to better understand what the parachain validation function is and how it is used throughout Polkadot. In The Polkadot Parachain Host Implementers' Guide, it says that the parachain ...
Bruno's user avatar
  • 8,315
4 votes
1 answer
176 views

How do I fix "SpecVersionNeedsToIncrease" error?

I Just clone this https://github.com/OAK-Foundation/substrate-node-template/tree/nicks-v2 for storage migration. After launch on polkadot ,this error shows: I'm using following commands to run: ./...
Deepak Chaudhary's user avatar
4 votes
1 answer
137 views

BTreeMap storage type

I would like to store a large amount of sorted integers, they should be traversable with efficient get and insert. If I can iterate over a storage map, could you let me know how? Or is there a ...
Saman H. Pasha's user avatar
4 votes
2 answers
144 views

Can the metadata of Polkadot change?

As far as I know, the metadata of Polkadot is version 14. Assuming that the metadata version is not updated, Can the metadata of the recent block be different? ex) Block(#9135844)'s metadata != Block(#...
PaperFrog's user avatar
  • 495
4 votes
2 answers
92 views

What extrinsics filters balances to block transfers?

During the sudo phase of a parachain integration, when uploading balances and vested balances for crowdloan participants, we need to make sure that those balances cannot be transferred until the next ...
Ramsey - Decentration's user avatar
4 votes
2 answers
125 views

Collation wasn't advertised to any validator. version: polkadot-v0.9.36

When i am start running my parachain i am getting this issue Collation wasn't advertised to any validator. During this issue the parachain cannot produce and block also. Please help me if you have ...
Pankaj's user avatar
  • 2,021
4 votes
1 answer
201 views

Why is 5MB the limit for the block length?

The length limit for each block in Polkadot is set to 5Mb as seen in the code. But why exactly 5Mb? Could you point me to the decision process or the benchmark results for that exact value? Thanks!
Saccharo's user avatar
4 votes
1 answer
124 views

Best Decentralised Storage for parachain?

Can anyone please explain what is the best decentralized storage protocol for storing pdf/images data on Polkadot parachain? Actually, I gone through filecoin, Crust and Cess. Now I'm little confused ...
Pankaj's user avatar
  • 2,021
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
4 votes
1 answer
68 views

Is there any constrain forced on Parachains for block authoring logic?

I am reading Cumulus PDK and Parachain documentations, and looking forward to converting our project to a parachain and join the Polkadot ecosystem. However, I am confused regarding the parachain ...
Yeou's user avatar
  • 229
4 votes
1 answer
333 views

Why do Staking Rewards fluctuate so much?

When I look at my staking rewards, i can observe that the rewards fluctuate strongly. Sometimes its x DOT per day, then the next day its just x / 2 DOT. Why is it fluctuating by more than 100% ? It ...
Oliver Tale-Yazdi's user avatar
4 votes
1 answer
232 views

T::Balance ... associated type `Balance` not found for `T`

I was following this guide: Configuring Genesis for Balances https://docs.substrate.io/how-to-guides/v3/basics/genesis/ but got this error: associated type Balance not found for T, associated type ...
Russo's user avatar
  • 1,193
4 votes
2 answers
90 views

Polkadot vs Rococo runtimes

I noticed various projects having multiple runtimes for Kusama, Polkadot and maybe a local-testnet. This makes sense as they can have different set of features. In my case I only want to test on ...
Yatusabes's user avatar
  • 776
4 votes
1 answer
67 views

Not able to update to Polkadot0.9.18

I am following this PR https://github.com/substrate-developer-hub/substrate-parachain-template/pull/103 to upgrade codebase to Polkadot 0.9.18 but facing the below issue Compiling cexpr v0.6.0 ...
Ayush Mishra's user avatar
4 votes
1 answer
85 views

Failed to Decode Error?

I was trying to transfer nft from relay chain to parachain through transact instruction of Xcm. Here is snippet of code I am using Xcm(vec![Transact { origin_kind:OriginKind::Xcm, ...
Ipsa Gupta's user avatar
4 votes
1 answer
82 views

Missing XCM benchmark `reserve_asset_deposited`

I'm upgrading our parachain based on Polkadot 0.9.40 here. Now in the process of benchmarking xcm operations, I notice there is no benchmark for reserve_asset_deposited in XCM fungible benchmarks! I ...
Alex Sed's user avatar
  • 590
4 votes
2 answers
80 views

Substrate based parachain light client seems to gets connected but ApiPromise is not returned

I am trying to implement smoldot @substrate-connect light client to my DApp using chain specs of a substrate-based parachain. Substrate connect extension is able to discover the parachain as it shows ...
vivek sharmapoudel's user avatar
4 votes
1 answer
60 views

How can I transfer ownership of Parachain?

Let's say that team A has successfully won a parachain slot on a relay chain, and they did so with an account hold by a team member (not a multisig). After some time, this team member decides to leave,...
Santiago Balaguer's user avatar
4 votes
1 answer
142 views

`Corrupted state at` after runtime upgrade to `0.9.16` on `rococo-local` chain

I'm facing some strange logs when doing a runtime upgrade a Polkadot rococo-local relay chain to 0.9.16 from 0.9.15. Hoping someone can help me debug them. Using Polkadot's release-v0.9.15 and release-...
Georgi Zlatarev's user avatar
4 votes
0 answers
61 views

What is the core functionality (pallets) that should be part of the specification

We are working on an alternative implementation of the Polkadot protocol, but since the spec is missing a lot of details regarding the Runtime, we rely heavily on the Substrate implementation. So we ...
user2862's user avatar
  • 309
4 votes
0 answers
186 views

How to solve this Failed to compact generated WASM binary.: Error(UnknownOpcode(192)) [duplicate]

For one assignment I have run the command cargo build --release so that I can build the pallet. After that I was getting the error After that according to this- Error Building Substrate contract Node(...
Nakul Agrawal's user avatar
4 votes
0 answers
29 views

Inclusion of Collator In Parachain Lease

I understand that allocating a collator node (or a few) to each chain w/a Parachain slot per era is overkill from a trust perspective. However, from a developer's perspective, it would reduce a ...
polkaperson's user avatar
4 votes
0 answers
90 views

How are polkadot bootnodes set up? [duplicate]

I'm trying to set up my own public blockchain and have been running into issues when setting up a bootnode to be accessible over DNS rather than IP4. Based on the Polkadot chain specification, their ...
edmassarani's user avatar
3 votes
2 answers
94 views

How to decide lease period for crowdloan compaign?

I was trying to add a crowdloan campaign for Kusama auction. I went through all these videos https://www.youtube.com/playlist?list=PL5iFq6rVsyFa1WyBzKOSuntzTrxma-vba. I am not able to decide: What ...
Ayush Mishra's user avatar
3 votes
1 answer
103 views

How to set my parachain xcm version

How do I ensure that the XCM version of two parallel chains is the same, how do I change the XCM version, and how do I view the current XCM version.
99kies's user avatar
  • 753
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
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
109 views

Upgrade parachain's lease period with assignedSlots failed

I have a parachain currently running on a rococo-staging network. The leases are 1 day. I'm making a sudo call > assignedSlots > assignTempParachainSlot(id, leasePeriodStart) to upgrade my chain ...
Ramsey - Decentration's user avatar
3 votes
2 answers
102 views

I'm getting some issue during storage migration

I'm trying to trigger the storage migration on polkadot UI for our parachain. I'm trying different types to do this but getting some issues: Type 1 : If I simply upload the wasm file from sudo > ...
Deepak Chaudhary's user avatar
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
67 views

Why does BuyExecution not support JIT fees in XCM v3?

The XCM v3 implementation of BuyExecution does not make use of the newly introduced JIT fees withdrawal. (e.g. used via take_fee here in ExportMessage) Why is that?
apopiak's user avatar
  • 418
3 votes
2 answers
247 views

Sync a parachain node quickly

Is it possible to use a snapshot of the relay chain to synchronize a Substrate-based parachain and run a parachain node, as the process of synchronizing the relay chain can take a significant amount ...
vivek sharmapoudel's user avatar
3 votes
1 answer
111 views

Is it possible to transfer balance from multiple accounts to the same receiver in a single Extrinsic?

I am working on a system that allows users to send and receive on the Polkadot network. The system tracks the amount of DOT controlled by a user, and this may be spread across multiple Polkadot ...
csknk's user avatar
  • 227
3 votes
1 answer
74 views

Decoding `democracy.Voted`

I'm having trouble decoding a democracy.Voted event on Polkadot - for example: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/explorer/query/...
csknk's user avatar
  • 227
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
309 views

Automate discovery of new peer node

I was trying to automate peer discovery of my newly launched substrate network, and can't find any documentation related to that, it would be really helpful if someone can point to any available ...
Akash Singh's user avatar
3 votes
1 answer
92 views

Is there a memo flag for transfer transaction in polkadot?

Like cosmos or beacon chain, can we attach a memo in polkadot which describes the transaction in better way? For example while transferring dot can we attach a string like field which describes the ...
Aravind Makam'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
  • 539
3 votes
1 answer
124 views

How to remove storage item(vector data) automatically after a time interval?

I'm storing a vector of struct data inside a StorageValue, like this.. StorageValue<_, BoundedVec<RootClubForm<T>, T::MaxValue>, ValueQuery>; Is there any way I can automatically ...
sachin murali's user avatar
3 votes
1 answer
74 views

what is Substrate Files Decentralised storage?

Can anyone please give me any link or docs where I can find more about Substrate Files decentralized storage? I have gone through this link: https://github.com/polkadot-js/apps/pull/6106 Is there any ...
Deepak Chaudhary's user avatar
3 votes
1 answer
738 views

When staking polkadot on the Ledger Live app, how do I select validators to avoid the error - There are no active nominations?

I'm having difficulty receiving staking rewards via the Ledger Live app even after following the best practices I am always warned - There are no active nominations. In the past (~4-5 months ago), I ...
Onescriptkid's user avatar
3 votes
1 answer
35 views

How i can get back reserved amount for verify identity procedure?

in February i was got true status with verify identity procedure. Now end of March but reserved amount ( ~ 20 DOT ) still locked. Could tell me please how I can unlock it? Thank you.
Oleksandr Chub's user avatar

1
2
3 4 5
11