All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
8 views

What is the max value we can use for `--rpc-max-connections ` flag of substrate node template?

I am using substrate node template. We know it comes with many flag . I want to know specifics about --rpc-max-conections . We know that default is 100 but i want to know is there any maximum ...
Md. Raisul Islam Rony's user avatar
1 vote
2 answers
12 views

Is it possible for users to call non #[pallet::call_index(0)] functions

Is this possible? Say you have a function in a pallet outside of the lib.rs file that is a function like: impl<T: Config> Pallet<T> { pub fn tester(block: u64) { StorageElement::<...
Bob Linux's user avatar
  • 111
0 votes
0 answers
6 views

Build a Blockchain Tutorial - Front End Template stuck sending

Im pretty new to this whole thing, but I have managed to get a local node started and the front end template up. The Blockchain is finalizing blocks, and the template header is actively updating. When ...
CODY's user avatar
  • 1
1 vote
2 answers
22 views

EnsureOriginBy using an account set on a pallet's storage

I'm working on a feature that requires pallet-nfts ForceOrigin to only be callable by an account configured inside a separated pallet's storage. For example in pallet-A I have the following #[pallet::...
Valentin Fernandez's user avatar
1 vote
1 answer
18 views

How to Convert String Address to Substrate AccountId in Runtime for Storage Map?

I am working on a Substrate runtime and would like to convert a string representation of an address, such as "5HYKElof8yaKoyCX9L...GHii4BkrgvKymz34W", into a Substrate AccountId so that I ...
sntrk's user avatar
  • 11
1 vote
0 answers
18 views

How to upgrade runtime without sudo?

Is it the process below that I just want to confirm? const preimageHash = await api.rpc.democracy.notePreimage(runtimeWasm); const proposalHash = await api.tx.democracy.propose(preimageHash, 'New ...
Verin's user avatar
  • 21
1 vote
1 answer
16 views

What's a convenient way to look up a `DispatchError` in RPC

A DispatchError will refer to a pallet and a member of the pallet's Error enum by index: DispatchError: {"module":{"index":123,"error":456}} How can I wrap these and ...
user5303's user avatar
1 vote
1 answer
25 views

XCM: messageQueue.Processed

I'm new to the world of Cross-Consensus Messaging (XCM). I'm trying to send an XCM message from Rococo AssetHub to Trappist to transfer funds from an asset that I've created on both chains, but I ...
Noah's user avatar
  • 13
0 votes
0 answers
11 views

How can we monetize heavy computation using substrate blockchain?

Suppose a reputation system is built, where bad nodes (open source docker instances running computations such as a search engine) are penalized, and good nodes are incentivized. What is the secure way ...
Amiya Behera's user avatar
0 votes
1 answer
11 views

How to send data from parachain to relaycahin

Hello everyone I am working on a project where I need to send some data or messages from my custom parachain to a custom relaychain, then I want to map with a particular account and store it on ...
manish singh's user avatar
0 votes
0 answers
21 views

Pallet staking using assets pallet?

I'm trying to make pallet staking works with assets pallet. Lockable trait has already been implemented in a customized version of assets pallet but main issue remaining is that staking pallet issue ...
Xavier's user avatar
  • 415
1 vote
1 answer
43 views
+50

Make peers list persistent

So what I have: I have a testnet network, I run a full node and connect to a specific bootnode that I specify with arg --bootnodes; after connecting to the bootnode, info about other peers are ...
Giacomo Pirinoli's user avatar
0 votes
2 answers
23 views

How do I find out what caused a reserved balance, and what I should do to free it up

I have a reserved balance on my account of n DOT but I cannot remember what I did that would cause the amount to be reserved. Is there a way that I can discover the reason for the reservation, and ...
T9b's user avatar
  • 456
0 votes
1 answer
24 views

Compilation Error with Substrate on Rust Nightly: #![feature] May Not Be Used on the Stable Release Channel

I'm working on a Substrate-based blockchain project and encountering a compilation error when trying to build my node runtime. The error indicates that nightly features are being used while the stable ...
Mr Coder's user avatar
  • 923
0 votes
0 answers
18 views

How to create a same polkadot wallet from mnemonic like trustwallet using @polkadot/keyring?

I have to create a wallet of polkadot like trustwallet. I tried to create a wallet with "type: ed25519" but it also return different address. Here is the trust wallet configuration { &...
Divyang Khatri's user avatar
0 votes
0 answers
31 views

Superuser xcm origin being used on reserve asset transfer from asset hub to parachain

I'm testing a reserve asset transfer from polkadot asset hub to a parachain using chopsticks, the transfer is failing, I think this is because the xcm origin being used for the reserve asset transfer ...
Sebastian's user avatar
  • 407
0 votes
1 answer
16 views

Running 2 authority collators but they are not peering

two nodes are running in the same machine but not peering. Someone give some advice? 1st Authority: ./target/release/parachain-template-node -lbasic-authorship=trace --bob --collator --force-...
Ganesh11's user avatar
  • 1,239
0 votes
0 answers
9 views

I'm facing the issue of StorageDepositNotEnoughFunds in pallet-contracts

When I've integrated the pallet-contracts of v1.1.0 in the relay chain, it is showing the error of StorageDepositNotEnoughFunds Origin doesn't have enough balance to pay the required storage deposits....
Arunjot Singh's user avatar
0 votes
0 answers
9 views

How to debug memory usage by collator?

I was wondering what would be the best way to debug the memory usage by a collator? I started a new collator for an existing polkadot parachain, it is currently syncing and sometimes the memory spikes ...
Sebastian's user avatar
  • 407
1 vote
1 answer
14 views

Could not decode `ChargeAssetTxPayment::asset_id`

This is my parachain, I am getting this error while doing transaction. 1002: Verification Error: Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: ...
Ganesh11's user avatar
  • 1,239
1 vote
0 answers
21 views

Unified accounts / AccountId20

Is there any parachain template to start with , that uses unified accounts as default like moonbeam ?
Faiz Sarwar's user avatar
0 votes
1 answer
27 views

Error `system.CallFiltered` when using pure proxy

I have custom parachain with pallet_proxy configured on it. I have created a pure proxy. But when I tried to add a second proxy to the anonymous account, I got the following error: system.CallFiltered ...
magecnion's user avatar
  • 212
0 votes
0 answers
11 views

Unfortunately error when submitting transactions in polkadot

In my project when I submit the transaction I'm getting [error: polkadotxcm.filtered]
Preethi M's user avatar
1 vote
0 answers
8 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
0 votes
0 answers
12 views

Corrupted State Error on pallet-staking

We're getting these error during cargo test for pallet-staking, pallet-offences & pallet-nomination-pools after it is implemented locally in our node template without any modifications to the code....
Joby Reuben's user avatar
1 vote
0 answers
17 views

Is it possible to sync up fast to the head of a substrate blockchain and then archive from that point on?

I'm dealing with a substrate based blockchain and I'd like to know if the current scenario is possible. For my specific use case, I need to sync up with the head of the blockchain as quickly as ...
Miguel Sama's user avatar
1 vote
0 answers
17 views

Coretime. How to check are there any coretime assigned to parachain

Followed this instruction. https://forum.polkadot.network/t/parachain-consensus-updates-coretime-asynchronous-backing-scalability/4396/5 aura keys contains 2 accounts. Run only one collator and ...
rust.dev's user avatar
  • 519
0 votes
3 answers
61 views

Unroutable Error when performing reserve asset transfer of DOT from parachain to asset hub

I'm getting an "Unroutable" Error when performing reserve asset transfer of DOT from parachain to polkadot asset hub. I have tested it on rococo using the same wasm for the parachain and I'm ...
Sebastian's user avatar
  • 407
0 votes
2 answers
18 views

Unable to connect to polkadot node running on wsl to polkadot js app

I am running polkadot-sdk on wsl I start the node: ./target/release/polkadot --dev and then when I try connecting it to polkadotjs app on browser in windows it doesn't connect It just says - "...
Rishi's user avatar
  • 1
0 votes
1 answer
16 views

Dynamic function weights

Are dynamic weights possible to implement? When running benchmarks, the weights are returned. But there are parameters that are updateable while the blockchain is running and within on_initialize the ...
Bob Linux's user avatar
  • 111
0 votes
1 answer
20 views

How to get block number from `nfts`

Is it possible to get blocknumber or created timestamp from this query? await api.query.nfts.item.keys(collectionId)
Rezn's user avatar
  • 1
0 votes
0 answers
10 views

How to transfer assets from parachain to relay chain

As I'm new to substrate and polkadot I don't know how to transfer assets from parachain to relay chain using xcm can anyone please help me to do this.
Preethi M's user avatar
0 votes
0 answers
11 views

Potential long-range attack: block not in finalized chain. (when migrating parachain from Rococo to Paeso)

After migration from Rococo to Paseo our chain prepares block but does not suggest them, this error is only found in source on client side, any suggestions how to recover from this? 2024-04-04 21:51:...
Simson's user avatar
  • 1,201
1 vote
0 answers
32 views

Validator reports 0 own stake

Validator reports 0 own stake, which shouldn't be the case. https://joystream.subscan.io/validator/j4V34YfStojh9yWCXVmv5bwR4rV4nHwvJLRqCF39acoVPnJiB?tab=nominator When I query staking.ledger for ...
user5277's user avatar
2 votes
1 answer
64 views

How to enable free execution for specific extrinsics using the SkipCheckIfFeeless

Context I'm currently working on a faucet/claiming pallet that allows new users to claim a certain amount of tokens. We have some logic in place to gatekeep who can receive the tokens, and each user ...
Just's user avatar
  • 23
0 votes
1 answer
13 views

Resolving "Bootnode on a Different Chain" Error in Substrate Network Setup

I am in the process of setting up a Substrate-based blockchain network and encountered a challenging issue while trying to connect my node to a bootnode. The error I'm facing is as follows: Bootnode ...
Md. Nur E Azam's user avatar
0 votes
1 answer
14 views

no method named `as_fd` found for struct `Async` in the current scope

I am compiling my node with the substrate release branch as polkadot-v0.9.22 and I get the following errors. What is this error and how do I even fix this? error[E0599]: no method named `as_fd` found ...
RRR's user avatar
  • 43
0 votes
0 answers
31 views

Bittensor Subtensor Chain

Does anyone know how to run a public subtensor node and synchronize with Bittensor network on nakamoto instead of the current finney ? There are some nodes currently running on nakamoto chain. I am ...
kapitankot's user avatar
1 vote
0 answers
51 views

Error TooExpensive when transferring fungible assets between parachains

I'm trying to transfer fungible assets between two parachains. I'm using Westend relay chain, Westmint as first para and custom parachain as second para. I launched my setup with zombienet and opened ...
Artem Levchuk's user avatar
0 votes
1 answer
27 views

How to create custom URL for my RPC node?

When I run node then I can access chain from polkadotjs/apps using 127.0.0.1:8845 (ws://127.0.0.1:8845 ) endpoints. But I want something like wss://paseo.api.integritee.network to be my endpoints. Can ...
Ganesh11's user avatar
  • 1,239
1 vote
1 answer
29 views

Best practices for generating and importing pallet weights

As far as I understand, weights for a runtime's pallets can be generated in two ways: Altogether by using this script provided by the polkadot-sdk, with the output typically stored in the runtime ...
magecnion's user avatar
  • 212
0 votes
0 answers
23 views

Substrate Public key and address derivation

Expected result: mnemonic: "sample split bamboo west visual approve brain fox arch impact relief smile" --scheme "ed25519" Secret phrase: sample split bamboo west visual ...
Veronika Gupta's user avatar
0 votes
2 answers
32 views

Is it it possible to change native token decimals of chain that is already running?

A blockchain I am working on enabled Frontier recently but since EVM chains' native tokens got 18 decimals by default and the chain's native token decimals are set to 12 we need to do decimals ...
chexware's user avatar
  • 325
1 vote
1 answer
13 views

How to add session keys for the collators set as invulnerables are in the nodes?

I am running collators node and I want to add session keys for the collators set as invulnerables in the node. I am using rpc author.insertKey but I am getting RPC call is unsafe to be called ...
Ganesh11's user avatar
  • 1,239
0 votes
1 answer
25 views

How to construct the data structure with correct values for their attributes within a Pallet for data submitted by a polkadotJS app

Client App creates an Input as follows using polkadotJS to submit to Substrate Module as follows import { ApiPromise, WsProvider } from '@polkadot/api'; const { Keyring } = require('@polkadot/keyring')...
not 0x12's user avatar
  • 355
0 votes
1 answer
27 views

How to construct a data structure using a bytearray inside a Substrate Pallet?

I have a struct declaration in Substrate Pallet as follows Method implementations are inside Uniques pallet The flow an NFT gets minted Sets Attributes for the minted NFT attribute value passed as a ...
not 0x12's user avatar
  • 355
0 votes
0 answers
14 views

Why my collator node produce only #1 block and not finalize it?

I am trying to running collator node by using this tutorial, I have secured testnet and everything is configured by my side but the issue is just #1 block produce but it is not finalizing. Can someone ...
Ganesh11's user avatar
  • 1,239
0 votes
0 answers
14 views

SCALE Encode Tx Bytes using Polkadt.js SDK

I'm using Polkadot.js API and I have some bytes that represent a call (similar to what you get from tx.method.toHex(), that don't have the encoding details embedded into it: 0x00071054657374 I found a ...
AlbertoV19's user avatar
0 votes
1 answer
31 views

I want to Send data to relaychain from parachain?

I want to send JSON or normal String Message from Parachain to relay chain but i new in the substrate and I am finding it difficult. I am using the Polkadot-sdk template for relaychain and substrate-...
manish singh's user avatar
1 vote
1 answer
17 views

Validator Reward curve tweaking without runtime upgrade

I am facing with the following issue: There might be a future need of changing the configuration for the reward curve for validator. I believe this is possible only be changing the linear piece wise ...
mrBovo_dev's user avatar

15 30 50 per page
1
2 3 4 5
99