Questions tagged [polkadot]
Questions about the Polkadot Relay Chain
473
questions
1
vote
1
answer
223
views
What is chain decimal?
I saw token decimal has different value like 12, 10, 6 in different substrate chain, What exactly it means and what is the use of it?
3
votes
0
answers
32
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?
1
vote
1
answer
22
views
Westend Bond TX failed with unclear reason
Would you please help me to understand why failed my bond tX
https://westend.subscan.io/extrinsic/0x70e6193b601e5e0f96cb201f5d0ead98ee752fa1a024b6b2462d7f80a8415032
My extrinsic:
signedExtrinsic {
...
0
votes
0
answers
23
views
can cross contract calls be done across different polkadot chains?
I have two smart contracts, one for off-chain computations (Phat Contracts) and the other from Ink which will be deployed on the Astar network. I want to access data from the phat contracts, how do I ...
2
votes
0
answers
29
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?
2
votes
1
answer
30
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 ...
1
vote
1
answer
88
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 ...
0
votes
0
answers
7
views
Metamask / Nano Ledger>
Metamask/ Nano Ledger: failed to execute requestDevide on HID. Must be handing a user gesture to show a permission request
Hello, 2 years without problems, until yesterday I did: Reset Chrome settings....
1
vote
1
answer
37
views
failed to get `pallet-node-authorization` as a dependency of package `node-template-runtime v4.0.0-dev
I am learning "substrate" now and I set dependence according to the tutorial as below:
[dependencies]
pallet-node-authorization = { default-features = false, version = "4.0.0-dev", ...
1
vote
1
answer
68
views
Contribute a pallet I've written to Polkadot Relay Chain
is there a submission procedure for contributing a pallet I've written to Polkadot, for the relay chain?
I would appreciate any help with this.
1
vote
1
answer
72
views
TypeError: api.tx.balances.transfer is not a function substrate contracts node
api.tx.balances.transfer was working perfectly some time ago. I tried to re-run my testcase today and I'm getting this error.
const rawTX = api.tx.balances.transfer(alice.address, 30)
...
1
vote
2
answers
32
views
How to compile polkadot node with only rococo runtime
When I build polkadot with cargo build --release it builds all the runtimes including Polkadot, Kusama, Rococo, Westend. This is a lot to compile and most of it is not needed.
In my case, I'm testing ...
2
votes
1
answer
39
views
XCM - Add remote origins execution to Polkadot/Kusama
I was wondering is there any specific reason why Polkadot still does not support XCM execution from Computed Origins LocalOriginConverter - Apologies as I'm not a Substrate developer but I looked ...
0
votes
1
answer
15
views
Understanding the Concept of "Best Block" in Parachains, Relay Chains, and Solo Chains
I'm currently working to gain a deeper understanding of blockchain technologies, specifically in the context of parachains and relay chains, as well as solo chains. I'm having some confusion regarding ...
0
votes
0
answers
23
views
Designing a Mechanism to Improve the Efficiency of Applications Deployed on Parachains?
As I was going through the mechanism of working of parachains , I came across a scenario that currently the time taken from collator producing a block on a parachain, to that block becoming finalised, ...
0
votes
1
answer
25
views
What are the differences between these polkadot binaries: polkadot, polkadot-parachain, polkadot-prepare-worker, polkadot-execute-worker?
In the old polkadot repo release page prior to the polkadot-sdk repository merge, polkadot had only one binary called polkadot (there is also staking-miner but it has been moved to its own repo: ...
1
vote
1
answer
17
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 ...
0
votes
1
answer
26
views
What sort of computations Coretime is goin to do?
As far as I know, on the Polkadot 2.0 update, a new feature called Coretime will be implemented on the Relaychain. It is something like the AWS lambda function execution where users have to pay for ...
0
votes
1
answer
19
views
error: unexpected argument '--ws-port' found
I meet this error when create a new note. On stackoverflow, and in the suggested tip, it is replaced to --rpc-port, but in the argument there was an existing --rpc-port argument with a different ...
0
votes
1
answer
34
views
Multisig wallet staking via Polkadot-JS UI failed
I created a 2/3 multisig wallet and staked 500 DOT with it, but I received this error message.
This could mean your nomination has not been applied to any validator in the active set by the election ...
0
votes
1
answer
47
views
how to bring bitcoin in polkadot substrate chain?
I am going through this article, where it talk about bringing bitcoin in substrate chain using iBTC. I am struggling to find resources about iBTC integrate in substrate chain. Someone please provide ...
2
votes
1
answer
30
views
Query for a polkadot connect parachain's lease time
Is there a simple way to query polkadot in order to get which block will be the last block of the lease period?
I want to be able to query polkadot in order to see how long a certain parachain has ...
1
vote
0
answers
22
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 ...
1
vote
0
answers
19
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>()
...
1
vote
1
answer
27
views
Handling Nested Option Types in StorageDoubleMap::iter_prefix Method
I am building a Substrate pallet where I have a storage item defined as a StorageDoubleMap:
#[pallet::storage]
#[pallet::unbounded]
#[pallet::getter(fn labels)]
pub(super) type Labels<T: Config> ...
0
votes
1
answer
32
views
error[E0277]: the trait bound `LabelInfo<T>: parity_scale_codec::Decode` is not satisfied
i wanna to create pallet in substrate . i faced this error . how can i solve this problem ?
#![cfg_attr(not(feature = "std"), no_std)]
/// Edit this file to define custom logic or remove it ...
0
votes
1
answer
13
views
Polkadot.js wallet dosen't show methot section(transaction details) when making a transaction
When making a transaction we are supposed to see the transaction details under the method section but we only see method data
Wrong:
Correct(you can see the method -> assetConversion..):
3
votes
1
answer
62
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 ...
-1
votes
1
answer
50
views
Polkadot v43 failed to send issue with tx pool
Zombienet + polkadot v43
two errors:
DEBUG tokio-runtime-worker txpool: [0xd7165975185efe4f63425ab930021c89f166fda20d0e4f564f61c9ebd491640e] Error importing: TooLowPriority { old: 13700, new: 513 }
...
1
vote
1
answer
37
views
Incorrect transaction fee estimation when payout
I have been working on payout in my L0 relay chain blockchain .While making payout I have observed the transaction fee that is deducted from my account and the actual fee that is been deducted are ...
2
votes
2
answers
92
views
Historical Balance of Polkadot Accounts (python substrate)
Is there a way to retrieve the historical balance of a Polkadot account without the need to query every individual block? My current approach involves querying blocks in batches, but it's quite time-...
0
votes
2
answers
85
views
Unable to run development node after repo migration
I tried running cargo run -- --dev after building. However i get this error 0: Invalid input: Error opening spec file dev: No such file or directory (os error 2).
I don't know rust and substrate ...
0
votes
1
answer
28
views
How to Check if an Address is a Node in a Substrate Blockchain Network?
I'm working on a Substrate-based blockchain network. I need to verify if a user with a specific address (e.g., 5XDDFFDF...) has added a node to the network. Depending on the verification, I want to ...
0
votes
1
answer
29
views
Create Balance Transfer using a Proxy
I am trying to initiate a balance transfer call using a proxy with the 'Any' type. I'm using the Python API, which allows me to create and submit the transaction successfully. However, it fails (https:...
0
votes
0
answers
50
views
Rust Compile Error: Unresolved imports crate::pallet, crate::types::Types::Config
I am working on a Rust project where I have multiple modules. I'm facing an issue with unresolved imports when I try to compile my code. Here's the relevant code structure:
types.rs
pub mod Types {
...
2
votes
1
answer
97
views
Is it permissible to retrieve the value of a private field within a struct from one pallet while working with another pallet?
I am developing a cross-chain NFT transfer pallet that involves transferring both item metadata and collection metadata. To accomplish this, I need to access the data field within the ItemMetadata ...
1
vote
1
answer
40
views
polkadot explorer getting stuck while using utility and sudo pallet from extrinsics
I am trying to do a runtime upgrade of my blockchain that is layer 0 chain running on version polkado-v0.9.36 . I also have (ethereum virtual machine integrated to it ).
When I do runtime upgrade ...
1
vote
1
answer
29
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: “...
3
votes
1
answer
85
views
List IP addresses of all validators
Is it possible to determine all of the IP addresses of validators on the network? I imagine it is necessary to be able to, but is there a direct call that can be made to a running validator node?
Edit:...
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. ...
0
votes
0
answers
39
views
How to generate random number of a specific length in Substrate pallet
I want to generate random number of a specific length. I can't use insecure-randomness-collective-flip because it's not recommended for production.
I also can't use rand package because it doesn't ...
1
vote
2
answers
141
views
Why Substrate, Cumulus and Polkadot repositories are going to be merged into a mono-repo?
It might not be the best place to ask this question, but I'm not sure there are other place, especially since others could be interested in the answer.
Why do the 3 repositories (Cumulus, Substrate ...
1
vote
1
answer
141
views
Polkadot - westend/westmint: how to create a pool using the asset conversion pallet?
We want to create a pool and we need to provide asset1 and asset2 values to the function, we are not sure what those asset1 and 2 are exactly (we are not sure what it represents or where to find it).
...
2
votes
4
answers
211
views
Unable to execute any multisig transaction on Polkadot
I started off wanting to set and identity for a multisig I created on Polkadot, but cannot execute any transactions from the multisig.
I have an account, currently with ~6 DOT and a newly created ...
1
vote
2
answers
144
views
system.ExtrinsicFailed Token.NotExpendable
I'm working on a project that involves setting up a shared pot account. Anyone can fund this account, and the owner has the ability to withdraw money from it. However, I'm encountering an error: ...
1
vote
0
answers
65
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 ...
2
votes
1
answer
90
views
panicked at 'assertion failed: `(left == right)`
I am having a setup of relay chain and two parachains are connected to it, I was running some test cases and during that i encounter an error
thread 'test::...
1
vote
1
answer
69
views
Why is it required to have 405.1869 DOT in solo staking?
I am currently using Ledger Nano S to stake Dot but I am unable to receive rewards. I checked Polkadot's official website which says the minimum amount to receive rewards is 120Dot (My current bonded ...
1
vote
2
answers
125
views
FailedToTransactAsset error while sending assets from local Statemint(AssetHub) to other Parachain
I'm facing the FailedToTransactAsset error while trying to send assets from Statemint to another parachain.
So basically I have the following configuration:
Relay chain
Polkadot relay chain running ...
1
vote
1
answer
83
views
Getting Command failed with exit code when running substrate-parachain-template version polkadot-v1.0.0 with zombienet
I am getting the below error when I build and run substrate-parachain-template using zombienet. I am using the latest release (master branch of substate-parachain-template) which uses the latest ...