Use this tag for questions about the Polkadot blockchain network platform. General questions about Polkadot should be asked at https://substrate.stackexchange.com
Questions tagged [polkadot]
203 questions
0
votes
1 answer
Flutter Web Get Chrome Extension info from Polkadot.js web3Enable
I am hoping to confer on a strategy for a flutter web app (as can ignore mobile cases here) to get chrome extension info for a Polkadot.js wallet from the Polkadot browser extension.
My first thought is to use dart's JS library and use the Polkadot…

AlexK
- 336
- 8
- 21
- 41
0
votes
2 answers
How to add validators in POA system (node-template) in runtime?
Can we add validators in runtime in POA system??(clone node-template)
Is this functionality available??
or we can only configure the validators before chain runs?

Makam Aravind
- 43
- 6
0
votes
1 answer
Error after runtime upgrade to reduce `EPOCH_DURATION_IN_SLOTS` of `westend-local` relay chain
I've got a 0.9.12 westend-local relay chain with 4 authorities Alice, Charlie, Bob and Dave. My goal is to do a runtime upgrade to reduce EPOCH_DURATION_IN_SLOTS to let's say 1 minute instead of 1 hour.
However I'm getting the following error babe:…
0
votes
2 answers
How to see logs out of tests running Substrate Cumulus based runtime?
I have test. It runs full runtime. I sure there are logs along the stack. But I cannot see them in output.
I run test like that:
RUST_LOG=trace,parity-db=error,trie=error,runtime=trace,substrate-relay=trace,bridge=trace cargo ltest…

Dzmitry Lahoda
- 939
- 1
- 13
- 34
0
votes
1 answer
Is there any doc on how accounts are generated in substrate?
{"address":"5CVVapxEBkvGnK2t1xMd2rbg2P1EekRnNNzPZPWFxwpzcJbv","encoded":"0xbf3c994369b9d481cb42e25e7a4e39961ef40c0c60d1bb0d6bcf589bbff62d69961c5c9baeca0c2c884c2fff6fea48665e24652d7c8078e505338ded954e41e2453f37937d4afbf84573178f511ae5b84e903ff989f852b…

Makam Aravind
- 43
- 6
0
votes
2 answers
Can I send transactions async using polkadot-js
I have walked through the official document and found a page about how to transfer using polkadot-js https://polkadot.js.org/docs/api/examples/promise/make-transfer
const transfer = api.tx.balances.transfer(BOB, 12345);
const hash = await…

Joey
- 1,233
- 3
- 11
- 18
0
votes
1 answer
how to access event parameters in unit test frame 0.9.12
Hi all I am trying to access the values passed in the event .
I have extract the event with this - not this is substrate 0.9.12 so I have not been able to use some of the examples I find online that use substrate 2.0.0
let e =…

Neo
- 717
- 2
- 11
- 26
0
votes
0 answers
Can we add more than one validator in from one node on substrate?
I heard that we can add only one validator from one node on polkadot(Heard this from one of the substrate core developer). But , In substrate we are able to add more than one validator from same node which leads to below problem----
After adding 3…

Makam Aravind
- 43
- 6
0
votes
1 answer
Implementing bridge network of substrate and getting error: duplicate lang item in crate `sp_io` required by bp_runtime
I have already synced sp-io in all of the cargo.toml to same file and also tried cargo clean and deleting cargo.lock but still getting the same error. Can someone please help me.
This is the screenshot containing the error

Shubham Gupta
- 111
- 7
0
votes
1 answer
How to get the function call parameters passed by user in substrate into txn-pallet?
Suppose based on user inputs I want to set fee.(not on len , weight of txn) Is that possible to get the data into transaction payment pallet and based on that data I want to set the fee?
Is that possible?
As fee is calculated before the function…

Makam Aravind
- 43
- 6
0
votes
0 answers
How to sign in substrate in an mobile app?
I am planning to build an substrate android app using webview or react native. But one can't use polkadot extension for sign in in an android app. So what are the ways to sign in a substrate app in mobile?

Amiya Behera
- 2,210
- 19
- 32
0
votes
1 answer
into_sub_account method not found
I am trying to use PALLET_ID
const PALLET_ID: PalletId = PalletId(*b"ex/cfund");
fn fund_account_id(index: FundIndex) -> T::AccountId {
PALLET_ID.into_sub_account(index)
}
But its giving error:
method not found in…

Amiya Behera
- 2,210
- 19
- 32
0
votes
1 answer
Error: the trait bound `types::DepartmentDetails: scale_info::TypeInfo` is not satisfied
After upgrading to the latest substrate version, I am getting error:
the trait bound `types::DepartmentDetails: scale_info::TypeInfo` is not satisfied
Here is my storage:
#[pallet::storage]
#[pallet::getter(fn department_profile)]
pub type…

Amiya Behera
- 2,210
- 19
- 32
0
votes
1 answer
How do you create an account using PolkadotJS?
The hosted PolkadotJS app allows connected Substrate nodes to use 'Add account' to create a new account on the blockchain.
Using the PolkadotJS NPM package, how can I implement the 'Add account' feature?

lovelikelando
- 7,593
- 6
- 32
- 50
0
votes
1 answer
How do I implement incrementing nonce for unsigned transactions?
I have an offchain worker instance running in my pallet, which is calling an unsigned extrinsic after the era elections are over. The purpose of this unsigned extrinsic is to store some data in the offchain indexing storage for all the validators…

Jdawg287
- 117
- 5