Questions tagged [polkadot]
Questions about the Polkadot Relay Chain
143
questions
0
votes
1
answer
9
views
Can you update a genesis configuration via forkless upgrade?
If I have a substrate based blockchain live with a genesis configuration & it also is included a parachain in Polkadot. Now if I want to do a forkless upgrade to the chain, is it possible to ...
1
vote
1
answer
20
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-...
0
votes
1
answer
14
views
How to claim tokens from crowdloan after winning a Parachain slot
We created a crowdloan campaign. We recently won the parachain slot. Now we want to know how users can claim their tokens which they contributed in crowdloan?
0
votes
1
answer
13
views
Error Building Substrate contract Node(error[E0603]: module `group` is private) After switching Substrate dependencies to "polkadot-v0.9.23"
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
--&...
1
vote
1
answer
9
views
What are the arguments for api.query.childBounties.childBounties
In the documentation api.query.childBounties.childBounties takes two u32 arguments https://polkadot.js.org/docs/substrate/storage#childbountiesu32-u32-optionpalletchildbountieschildbounty
But it is ...
1
vote
1
answer
11
views
Do we have any release guide/SOP for new release of a substrate project?
I Want to release my substrate chain. I just want to know that is there anyone has any release guide/ SOP/process which we can follow during release.
For example:
What do we need to document about the ...
1
vote
1
answer
13
views
Simulate Network Tutorial [closed]
So from the new tutorial website: https://docs.substrate.io/tutorials/get-started/trusted-network/#generate-local-keys-using-the-node-template
Few scrolls down there is a line: ./target/release/node-...
0
votes
1
answer
28
views
Intermitent errors with jsonrpsee: WS error: i/o error: Transport endpoint is not connected (os error 107); terminate connection 1056
We've been getting some intermitent websocket connection issues on our production polkadot UI node since the upgrade to jsonrpsee.
We are running a single Polkadot 0.9.24 container image on our K8s ...
0
votes
0
answers
27
views
Getting error `The bootnode you want to connect provided a different peer ID than the one you expect` while connecting with main validator
I am running 4 collator nodes V1, V2, V3, and V4.
V2 and V3 look good and connected perfectly with V1. I am getting the below logs for V2 and V3.
Jun 20 16:44:40 testnet-2: 2022-06-20 16:44:40 [...
1
vote
1
answer
25
views
How many minimum validators are needed to run a substrate solochain?
How many minimum validators are needed to run a substrate solochain? Is single validator enough to run a Substrate solochain, if we are not parachain?
0
votes
1
answer
22
views
How to see a list of transactions on the Future queue
According to this documentation, the mempool can add transactions to the future queue. Is there a way to see this list programmatically (via rpc, api...) or manually (polkadotJs)? And do we know how ...
0
votes
1
answer
16
views
Polkadot relay chain node source code walkthrough/explanation
Is there any documentation/tutorials covering the technical details behind the Polkadot relay chain source code, specifically the runtime where all the special logic of the relay chain occurs? I am ...
0
votes
1
answer
32
views
Is it possible to fetch balance and nonce without using Polkadot.js?
How does one fetch the balance and nonce for a given address without using the polkadot.js client?
This is how you do it with the client but I can't seem to find the rpc methods or tutorials to do it ...
1
vote
2
answers
19
views
Get result of extrinsics balance transfer using block's extrinsics
I'm new to polkadot. I am working on checking received transactions to my wallets.
I have used below code & able to get hash, from, to & amount etc. but I am not able to get result & fee ...
1
vote
0
answers
28
views
Getting error unable to author blocks while starting blockchain
I am building a blockchain using substrate framework and after adding the required pallets, and compiling them successfully getting a runtime error Unable to author block in slot 413737816,. ...
0
votes
0
answers
28
views
API-WS: disconnected from ws://127.0.0.1:9946: 1006:: Abnormal Closure
I'm trying to connect local node running on my pc using polkadot.js library in react.js(browser). I'm pasting my code in below snippet and error that I'm facing in chrome console
Code
// **************...
0
votes
0
answers
8
views
Setting up sync node as backend for dApps connected with validator nodes
I have set up my blockchain with 5 validator nodes. Node01 is bootnode and Nodes 2,3,4,5 are working as validator nodes connected with bootnode. Now I have to expose WSS URL for my chain. I have read ...
1
vote
0
answers
31
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 ...
1
vote
1
answer
21
views
Does DOT and KSM have Currency AssetId?
I believed that Substrate-based tokens have its own assetId
Question is, does relay chain tokens like "DOT" and "KSM" have their assetId too?
I tried to find out where it is ...
0
votes
0
answers
43
views
Parachain cannot produce blocks due to error "Could not decode the head data"
Parachain collator cannot produce blocks after acquiring a Relaychian slot. (best block #0, cannot author the 1st block from gensis)
It is getting some error below, parachain nodes fails to decode ...
2
votes
1
answer
26
views
Identify offending nodes
When a node if offline, ImOnLine reports something like this:
Someoffline:
[
5EFRkbkfT6Sxjmkb6MiSyG8TAnVwV4KBk1BWfZnQ3XL14uxq,
{
total: 79.2000 kTOK,
own: 79.2000 kkTOK,
others: []
}
]
How can I know ...
0
votes
1
answer
22
views
Getting from addresses by passing transaction id or hash [duplicate]
I have few transactions and I'd like to get the from addresses of these transactions. I couldn't found anything like an API or RPC endpoint which returns from addresses. Any advice or help appreciated,...
1
vote
1
answer
12
views
Failed Extrinsic "CannotLookup" - Invalid Account ID?
I'm building a Golang client that interfaces with Polkadot and I want to better understand lookup errors.
In Polkadot block 10572717 the extrinsic at index 2 (subscan link 10572712-2) has failed with ...
1
vote
0
answers
24
views
What are the options for Bitcoin integration on Polkadot / with Substrate?
What are the options for Bitcoin integration on Polkadot / with Substrate?
Is there a way to allow users to deposit BTC, have smart contract / runtime rules that adjust balances (based on signed app ...
0
votes
1
answer
29
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 ...
2
votes
0
answers
18
views
What is the difference between the four attribute values between full, fast, fast-unsafe,warp for --sync? [duplicate]
polkadot network sync mode: --sync
Blockchain syncing mode. [default: full] [possible values: full, fast, fast-unsafe,warp]
What is the difference between these four attribute values?
What is the ...
0
votes
2
answers
28
views
How to create a subscription pallet?
As the title is descriptive, I would like to create a subscription pallet. A user needs to subscribe first and the receiver can receive the payment every month.
Any idea how to design this pallet?
-2
votes
0
answers
22
views
Substrate-node-template tutorial I can't get the front-end-template to come up so I can do stuff with the running blockchain
I got the substrate blockchain going great but when the front-end-template builds. But when I go to connect with the localhost:8000 I get error says unable to connect what is the problem here how do I ...
0
votes
0
answers
22
views
New wallet creation
I want to ask how can I create a new custom-designed private wallet for users, therefore the wallet only be used within a platform but is capable to do transact with other. In other words how can I ...
1
vote
1
answer
29
views
Subscribing events from Polkadot blockchain
I would like to ask you how to subscribe events from Polkadot blockchain?
I am writing a rust application and I need this functionality there.
Is the using Substrate the right direction to achieve ...
1
vote
1
answer
69
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 ...
0
votes
0
answers
12
views
How to test forkless runtime upgrade with Substrate Parachain Template [duplicate]
I am following https://docs.substrate.io/tutorials/v3/cumulus/start-relay/ to test para chain on local by connecting with local relay chain.
I am able to connect parachain with relay chain. I also ...
0
votes
1
answer
32
views
JSON-RPC method not found. code:-32601
env:parity/polkadot:v0.9.22
network: polkadot
p2pPort: 30333
validator: false
syncMode: fast
pruning: true
retainedBlocks: 1024
logging: info
telemetry: false
telemetryURL: wss://...
1
vote
0
answers
20
views
Era time is not completing
I have deployed my blockchain sometime ago and just checked that the era time is stuck, i have tried to forceNewEra() using sudo command, i have also tried forceNewEraAlways() but it changes the era ...
0
votes
1
answer
24
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 ...
1
vote
1
answer
33
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 ...
5
votes
0
answers
38
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 ...
0
votes
1
answer
41
views
Era taking longer than expected on Westend?
I'm testing with Westend network and it seems like the current era hasn't change for almost 4 days when it's supposed to change every 6h - is that normal / to be expected? And if that's normal how ...
1
vote
0
answers
37
views
Getting error in rust while compiling substrate node-template
I am trying to add the staking pallet with other dependencies in node-template and getting this error during compiling, I will be thankful if someone help me to resolve this issue
1
vote
1
answer
36
views
Do we need to resubmit a crowdloan, if we don't win the slot?
I have opened a crowdloan to get enough funds to win a parachain slot on Kusama. I just want to know what to do if I don't get enough funds and I don't win the slot:
Do I need to resubmit the ...
1
vote
2
answers
46
views
How can I purging chain database between tests of a development testnet?
I am running a few tests using Jest and Polkadot.js, and I need to reset the state before each test. Should I do that or spawn a new node each time? And if so, what's the best way to do it? I am using ...
4
votes
0
answers
34
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 ...
0
votes
1
answer
22
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/v3/cumulus/connect-parachain/#registration-transaction
My parachain is based on polkadot-...
1
vote
1
answer
51
views
Can we write bridge smart contract using ink?
I was reading about ink smart contracts and was curious is it possible to make bridge using ink, as there is already parity-common-bridges present. It would be very helpful if someone knows about this ...
4
votes
1
answer
42
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 ...
2
votes
1
answer
66
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 ...
2
votes
1
answer
67
views
What is an RPC node?
What is an RPC node and how to build one as a developer.
Also, are there any resources available?
1
vote
1
answer
36
views
Is it possible to add some text in genesis block?
We are looking to build a blockchain using substrate.
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 ...
1
vote
1
answer
45
views
XCM BuyExecution Fail: TooExpensive when transferring Native Token from your parachain to clone parachain
I am setting up the integration tests to transfer Asset from Parachain A to Parachain B (clone Parachain A).
The XCM execution went successfully on Parachain A, the balance was deducted successfully, ...
2
votes
1
answer
36
views
Is there an analog for MEV in Polkadot?
Is there maybe something like Collator-MEV, Validator-MEV, …?