Skip to main content

Questions tagged [polkadot]

Questions about the Polkadot Relay Chain

118 questions with no upvoted or accepted answers
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
321 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
33 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
282 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
0 answers
60 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
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
3 votes
0 answers
48 views

Integrating External Data into Blockchain: Can Validators Fetch and Incorporate API-sourced Data?

Is it feasible for validators to retrieve information from external APIs, particularly news data, and seamlessly incorporate it into the blockchain?
Ajit's user avatar
  • 827
3 votes
1 answer
78 views

How to add custom account as initial authorities in chain_spec.rs file

I've successfully added custom accounts in the Sudo account and pre-funded accounts following this stack adding an account but I also wanted to set custom accounts as initial PoA authorities. Thank ...
Max's user avatar
  • 31
3 votes
0 answers
37 views

the function or associated item `offchain_worker` exists for struct

i wanna add a new pallet in substrate runtime.rs this is the contract of the file : #![cfg_attr(not(feature = "std"), no_std)] /// Edit this file to define custom logic or remove it if it ...
Mr Coder's user avatar
  • 923
3 votes
0 answers
43 views

How to execute/apply extra logic when xcm call delivered and deposit is succeed? or register callback?

I want to execute extra logic when xcm call deliver and deposit succeed. I can pass extra parameters in beneficiary MultiLocation with a description what todo next. I have a MultiLocation ...
rust.dev's user avatar
  • 519
3 votes
1 answer
71 views

How can I sign and execute transactions using custom origin(20 bytes address) in PolkadotJS

I have a pallet which ensures a particular custom origin of H160(20 bytes). Actually, this pallet is to ensure that the Origin is that of an ethereum address(20 bytes). I am therefore writing ...
dharjeezy's user avatar
  • 419
3 votes
1 answer
301 views

How to implement a POC for a new consensus algorithm in substrate?

I am currently working on a substrate project that uses the PoA consensus algorithm. I would like to implement a POC for a new consensus algorithm. I have some experience with substrate but I'm new to ...
Mr Coder's user avatar
  • 923
3 votes
0 answers
150 views

Error importing blocks after upgrading to v0.9.32

After upgrading the node to v0.9.32 I started seeing this error message: 2022-11-11 14:03:44 💔 Error importing block 0x2062a73f1dee2fd35ad6ac25c641b08bf94cf6390b9fc7a8480d7b8ea9412eab: consensus ...
Jorrin Bruns's user avatar
3 votes
0 answers
86 views

How to write super simple custom relay chain

EDIT #2: TLDR Is it possible to write a bare bones version of polkadot relay chain that only has cross chain communication (HRMP) + consensus (BABE+Grandpa) but doesn't have anything else (no ...
Steven Yao's user avatar
2 votes
1 answer
49 views

The necessity of bitfields in Polkadot, and potential replacement with threshold signatures

My question is related to the usage of bitfields in data availability system, described in https://spec.polkadot.network/chapter-anv. Polkadot uses bitfields to know if a relay-chain block is stored ...
Oguzhan Ersoy's user avatar
2 votes
0 answers
34 views

how can we add external links on the proposal?

I have created a custom chain using Substrate version 0.9.36, and I've been using the governance module. When adding a proposal, there's a default column for external links set to "none." I ...
Gagandeep Dogra ATR594's user avatar
2 votes
0 answers
83 views

How should I add offchain worker(OCW) in frontier when using AccountId20?

In order to add an offchain worker with using AccountId20 as the runtime account type I did following things. add associated type type AuthorityId: AppCrypto<Self::Public, Self::Signature>; in ...
xiao liang's user avatar
2 votes
0 answers
41 views

Polkadot wallet signature verification

I am looking for a way to validate a signature from any Polkadot wallet in Node.js. Preferably it would be some lightweight library which supports this since @polkadot-util/crypto is a bit too heavy ...
CasualCoder's user avatar
2 votes
0 answers
36 views

What is the rationale behind the node architecture (Runtime + Host)

Is the separation of the Runtime business logic from the host intended solely for enabling forkless upgrades, or does it also aim to facilitate compatibility with different hosts?
user2862's user avatar
  • 309
2 votes
0 answers
46 views

Someone suggest me some resources of NFT Pallet frontend react implementation?

I am using nft-pallet for nft creation. I have implemented in substrate node. Now I wan't to write my own code not polkadotjs to create with nft using nft pallet using react frontend. Someone please ...
Ganesh11's user avatar
  • 1,241
2 votes
0 answers
55 views

Accepting new connection 1/nnn

Which crate is logging Accepting new connection 1/100? Is it in tokio? jsonrpsee? In the logs, there is no way to distinguish between new connections for the node vs for the relay. I would like to ...
Robert La Ferla's user avatar
2 votes
0 answers
29 views

Polkadot websocket API doesn't emits changes in stats like system_health or system_syncState

using the following code , package main import ( "fmt" "github.com/gorilla/websocket" "log" ) type Message struct { Id int `json:"id"` Jsonrpc ...
M.abdelrhman's user avatar
2 votes
0 answers
123 views

Rococo collator running on aws eks fails and restart every few minutes

I have a rococo collator running on aws eks that keeps failing, here are the logs: 2023-04-23 01:49:19 [Parachain] 💤 Idle (0 peers), best: #0 (0x3865…1210), finalized #0 (0x3865…1210), ⬇ 0 ⬆ 0 ...
Sebastian's user avatar
  • 411
2 votes
0 answers
19 views

How to use Polkadot.js to parse the "aca to dot" bridge transaction?

The transaction is like this: https://polkadot.subscan.io/extrinsic/14760951-1?event=14760951-43 , I want to get information as follows: (1) from and to account address, (2) the transfer money, (3) ...
Rose's user avatar
  • 305
2 votes
0 answers
260 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
  • 323
2 votes
0 answers
115 views

Parsing Balance Transfer Data

I'm writing a client in Go that needs to scan balance transfers in Substrate chains - initially focused on Polkadot. My current objective is to determine all balance transfers in a given block, and to ...
csknk's user avatar
  • 227
1 vote
0 answers
13 views

How can I manage the issue of excessive gas estimation in MetaMask when deploying a dapp contract on my WASM+EVM chain and calling its functions?

i am trying to deploy a dapp contract on my WASM + EVM based substrate chain but while calling the contract functions it gives me high gas estimation, how can i handle this issue?
Arunjot Singh's user avatar
1 vote
0 answers
24 views

What should be the proper XCM format?

I'm not sure if these are the right questions to ask, as I'm pretty new to the world of Cross-Consensus Messaging (XCM), but I'm really curious about how to properly create XCM instructions or an XCM ...
Noah's user avatar
  • 25
1 vote
0 answers
9 views

GOV1 referendum voting giving error on 0.1x voting balance

I was making a small service for calling the aye and nye and it is not working for 0.1x voting balance but working fine for every other option it is giving error propsExtrinsic.signAndSend is not a ...
Shubham Gupta's user avatar
1 vote
0 answers
16 views

Rpc call showing empty in evm integrated chain?

i have been working on polkadot layer 0 chain. i have integrated evm frontier on layer 0 chain and everything is working fine .when i try to call rpc (eth.getcode) it is showing empty . can some ...
Karanvir Singh's user avatar
1 vote
0 answers
29 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

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
0 answers
26 views

how to know about token implementation?

I have a questions about Tokens in polkadot ecosystem , If I am on parachain and this parachain A uses a token from another parachain B , if this token implements on_transfer hook does this hook will ...
castle_chain's user avatar
1 vote
0 answers
52 views

how can i achieve 10000 tps in layer zero polkadot based chain

I have my blockchain deployed on production . i want some addition in my chain. i want my chain to have 10000 tps .How can i achieve that in my current layer0 chain without using multiple parachains ....
Karanvir Singh's user avatar
1 vote
0 answers
28 views

TXs in pendingExtrinsics() not always being picked up and then added in the block

When adding many batchAll TXs containing mint() and freeze() assets to AssetHub Rococo chain, there are times when TXs in rpc -> author -> pendingExtrinsics() just sit there and don't get ...
Ramsey - Decentration's user avatar
1 vote
2 answers
60 views

Unable to connect to collator using rpc

I'm running a few collators for a parachain connected to polkadot, but after they've been running for sometime we stop being able to connect using rpc, we are using polkadot v1.3.0, does anyone know ...
Sebastian's user avatar
  • 411
1 vote
2 answers
32 views

What are the RPC endpoints that is usually unique to Substrate vs the unique to Polkadot nodes?

I used typegen to generate types for Substrate, Kusama and Polkadot networks. And I got the exact same types for the rpc endpoints (rpc methods). Is this normal? Should not be there some unique ...
Muhammad Altabba's user avatar
1 vote
0 answers
43 views

Polkadot-v1.0.0: sc-network is failing to compile

When specifying sc-network as a dependency: sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" } I get a compile error: error[E0433]: ...
Thomas Braun's user avatar
1 vote
1 answer
105 views

Parachain not including all transactions from tx pool into block

Context OriginTrail Parachain Mainnet is pushing significant amount of transactions (175k/day) - with tendency of growth Collators are filling blocks up at ~25% of block weight, with a large pending ...
NZT's user avatar
  • 23
1 vote
1 answer
26 views

How many collators are selected at a time or we can say same block height to authorise a parachain block?

"I'm trying to understand the mechanics of parachain block authorization in blockchain networks like Polkadot and similar multi-chain systems. Specifically, I'd like to know: How many collators ...
the dev's user avatar
  • 477
1 vote
0 answers
25 views

How to change the gas cost in ink! e2e tests

I want to be able to adjust the gas cost used in specific ink! end-to-end (e2e) tests, but my attempts to do so have consistently resulted in a return value of zero when using the weight_to_fee ...
Brian Ramirez's user avatar
1 vote
0 answers
21 views

error build_call

#[ink(message)] pub fn get_flip2_buill_call(&mut self, token_contract_address: AccountId, account_id: AccountId )-> i32 { let my_return_value = build_call::<DefaultEnvironment>() ...
pablo blanco's user avatar
1 vote
1 answer
37 views

Parachain node frequently halted for and again start syncing

We setup polkadot parachain node for asset and node frequently halted for and again start syncing. Dockr image - parity/polkadot-parachain:latest (docker hub) here is the docker compose file version: “...
UMANG AWASTHY's user avatar
1 vote
0 answers
17 views

How to Securely Notify Users of New Messages in a Substrate-based Chat Application?

I'm developing a chat application using Substrate and facing a specific issue regarding user notifications. My application needs to notify users when they have a new message in a chat channel. ...
Mr Coder's user avatar
  • 923
1 vote
0 answers
71 views

My implementation wont let me batch more than 4 transfer calls

My implementation wont let me batch more than 4 transfers. Am I doing something wrong? I know the code is a bit complex because its normally not in one func but i has to be in this way. I am suprised ...
Jozzy's user avatar
  • 33
1 vote
1 answer
167 views

Error: createType(ExtrinsicSignature):: Unable to create Enum via index 108, in Ed25519, Sr25519, Ecdsa

I'm trying to use the Polkadot CLI to create an unsigned extrinsic, which I subsequently generate a signature for sign out of band using my custody provider. The Polkadot CLI has a useful tool for ...
Roger's user avatar
  • 11
1 vote
0 answers
80 views

How to make substrate-node-template accessible via wss connection?

I just ran substrate-node-template on dedicated server and connected with substrate-frontend-template. Everything works fine with http(ws), but when I try to connect via https(wss) it's not working(?) ...
Марина Онищенко's user avatar
1 vote
0 answers
36 views

How to send XCM message from parachain to solochain via the parity bridge

I am quite new to substrate and polkadot parachains. I am trying to bridge a parachain and a solochain using the substrate bridge repo Is it possible to send arbitrary data from the para chain to ...
Neo's user avatar
  • 323
1 vote
1 answer
117 views

What is the cause of `ConsumerRemaining` error?

When I transferred Approve_as_multi Tx from a child address in a multisig wallet at the time I went up to Polkadot Runtime v9420, I got a Failed (ConsumerRemaining) error. This is the first time I ...
user4329's user avatar