All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

How to make sure Mortal Era addition signed invariant?

CheckMortality additional_signed seems variant between blocks(I add some log to check_mortality.rs): I have a usecase that need additional_signed result of Era invariant between some adjacent blocks(...
user avatar
  • 175
1 vote
1 answer
6 views

Relation between Collator and staking?

Can anyone please explain what is the relation between collator and staking rewards ?
user avatar
0 votes
0 answers
9 views

Help needed with payloads and extrinsics

I know that the payload and extrinsics are dynamic, and even different between parachains/base chains(kusama,polkadot,rococo,westend). But I am struggling to find good documentation on how these ...
user avatar
  • 1
0 votes
0 answers
3 views

using ethereum accounts for BABE and Grandpa

I have applied the Moonbeam style unified account to match my substrate accounts with the evm. But I still couldn't figure it out how to use those accounts as my session keys for BABE and Grandpa. Is ...
user avatar
0 votes
0 answers
6 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 ...
user avatar
  • 1
1 vote
1 answer
11 views

Can I add pallet-contracts in substrate-node-template?

Is there a way to add a pallet-contracts to substrate-node-template?
user avatar
-1 votes
0 answers
8 views

When parsing extrasic, which friend has encountered this error? Unknown type index: 7

When parsing extrasic, which friend has encountered this error? Unknown type index: 7 I'm reading block hash 0x218e12a375a282bc41299809c723ee846de4fe7699fe16b09a77a1d1f3bd1b83 when parsing the ...
user avatar
  • 47
1 vote
1 answer
9 views

How can a project prolong a parachain slot lease in Kusama?

I believe, some of the Kusama based projects have done that already. What exactly did they do and what are the options if a project wants to prolong or renew the parachain slot?
user avatar
0 votes
0 answers
2 views

ChainBridge: cb-sol-cli cannot deploy Eth contracts... Cannot find module 'commander'

Install cb-sol-cli https://github.com/ChainSafe/chainbridge-deploy/blob/master/cb-sol-cli/README.md $ make install Then try to run the ChainBridge following this guide https://chainbridge.chainsafe.io/...
user avatar
  • 461
0 votes
0 answers
12 views

Guide or Best practice for parachain Runtime Upgrade(Exception handle or rollback)!

The forkless runtime upgrade is an excellent feature! I have searched many documents on runtime upgrade, but no guide found for handling upgrade exceptions or rollback. The most exception often ...
user avatar
1 vote
0 answers
21 views

cargo contract throws error about supplied arguments in ` #[ink(constructor)]` for version 3.0.1

In my smart contract, all the ink dependencies are set to =3.0.1 because of this issue: Cargo contract 3.0.1 When I tried to execute the cargo contract build or even cargo +nightly contract build to ...
user avatar
2 votes
0 answers
12 views

What's the best practice to do the tests before runtime upgrade?

We use https://github.com/maxsam4/fork-off-substrate and try-runtime before. As the chain state goes larger and larger, it was hard to export/fetch the chain state.
user avatar
-1 votes
0 answers
9 views

How to use the created asset as Free Balance

I want to create a new Asset names PET in Substrate. What I did is from the PolkadotJS App Created and Minted the asset using the account Alice I want to make this assetid to use as Freee Balance and ...
user avatar
  • 105
3 votes
1 answer
15 views

How to use subxt to query for an historical event

I'm having trouble using subxt to query for an historical event. Not sure what manipulation is necessary to filter for the specific events I want. In my case, I want to query for a ...
user avatar
  • 126
0 votes
2 answers
13 views

How can I query how many decimal places does a Substrate asset have?

For example, DOT has 10 but can I check it in Polkadot JS Apps? I want to apply it to all parachain assets.
user avatar
0 votes
0 answers
8 views

How to Revert a PoW Chain?

Both BABE and GRANDPA have a revert function. But PoW does not. Also here is says that any block in PoW can be reverted. To perform a revert I need to create an aux_revert and pass it into the ...
user avatar
  • 134
1 vote
0 answers
5 views

Staking rewards for collator services

How to add Staking rewards for collator services for Node operators ?
user avatar
-3 votes
0 answers
33 views

Substrate v3.0 Compilation Error when requesting modules from workspace

I get these errors on compilation, although all the dependencies are specified correctly. I've went through the repo of substrate v3 and the code has been merged as expected. Is there a need to use a ...
user avatar
0 votes
1 answer
6 views

How do I hardcode asset id's?

Using pallet-assets, how do I create a pallet that has hardcoded (pallet-)asset id's for it's on-chain assets that the pallet handles? I wasnt able to find a good documented way to do this
user avatar
0 votes
0 answers
5 views

Zombienet: Substrate-Parachain-Template ... How to write the Dockerfile?

This question follows those questions below: Q1 Zombienet: how to test custom parachain collator - block height(producing blocks) test Q2 Zombienet: Substrate-Parachain-Template ... block height(block ...
user avatar
  • 461
1 vote
1 answer
18 views

Scale codec f64 support

What is the reason that the SCALE codec does not support Encode and Decode of f64 types?
user avatar
-1 votes
1 answer
11 views

Similar eth_call for substrate

a function like we have in ethereum : eth_call exists for substrate ? Thank you.
user avatar
  • 49
1 vote
0 answers
21 views

Transaction pool extrinsic prioritization

Currently, the transaction pool in Astar network is full with a lot of unsigned EVM transactions, which cause user transactions sent without a tip to be stuck. We are currently researching a way to ...
user avatar
0 votes
1 answer
18 views

Is there a way to collect fee of transaction?

I'm looking to collect Extrinsic transfers as images on https://polkadot.subscan.io/ Maybe use api sidecar or rpc to collect this data? Please help me!!! Thank you so much!!!
user avatar
0 votes
0 answers
12 views

Grafana Dashboard not populating the basic node metrics data

I am unable to populate substrate node metrics data in Grafana dashboard. I was following the instructions as shared in substrate doc Visualise Node Metrics I am able to establish the connection ...
user avatar
1 vote
0 answers
12 views

How can the Substrate staking pallet be used in a parachain?

Staking pallet allows a chain to elect validators/collators with respect to their stake. There are multiple ways in staking pallet to implement ElectionProvider (both on-chain and off-chain) which ...
user avatar
1 vote
1 answer
13 views

Is there a way to cap the amount of weight that a type of extrinsic can consume in a block?

My understand in substrate is that there are three types of dispatches, normal, operational, and mandatory. This types of dispatch classes can consume a portion of the total weight in a block. I can ...
user avatar
  • 207
0 votes
1 answer
18 views

Can I add a base fee per extrinsic?

My understanding is that there is a configurable base fee which is the minimum amount that a user pays for ANY transaction. Is there a way to add an additional base fee per extrinsic? This fee should ...
user avatar
  • 207
1 vote
1 answer
24 views

Substrate - Generating Transaction History of a Wallet

How can I generate transaction history of a wallet? I was able to run substrate-archive alongside polkadot and a template node in archive node. I stored onto postgres: state_traces, blocks, extrinsics,...
user avatar
-1 votes
0 answers
14 views

Using Graph with Substrate

Does Substrate support graph storage for the blockchain? To clarify, if the data model that needs to be stored on chain is organized like a graph node in json or json-ld, can the data be stored in ...
user avatar
0 votes
0 answers
18 views

How to receive input for mocked ink_env::test::ChainExtension

I'm trying to write an off-chain test for an ink! smart-contract that uses chain extensions. The example showing how to mock an extension for tests is never using the supplied _input argument. The ...
user avatar
  • 1
0 votes
0 answers
27 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 ...
user avatar
3 votes
1 answer
21 views

Build Issues when implementing PSP22 token standard for ink! contract

I am trying to implement the PSP22 token standard but getting errors when building my contract. The errors are: #[brush::contract] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module ...
user avatar
1 vote
0 answers
18 views

Compact SCALE decoding

In this answer the compact decoding for 1 byte and multi-byte versions have been detailed. I did a sample implementation based on that information and it does what it is supposed to, at least for the ...
user avatar
  • 291
1 vote
1 answer
27 views

Substrate Node v3.0 getrandom Compilation error

The error described below is produced when attempting to compile the node upgraded to v3. The Cargo.toml files indeed specify the js feature; the issue occurs when compiling packages within Cargo.lock,...
user avatar
0 votes
1 answer
14 views

What is the GitHub address of Java polkaj v.4.0.0? Is there a friend who can tell me?

Because of the error (unsupported metadata version: 14). I see that version v.4.0.0 already supports metadata 14. But I can't find the link of GitHub in Java. I hope to get help
user avatar
  • 47
4 votes
0 answers
26 views

Is the WASM blob created from ink! contract always deterministic

The contract's source code is provided during the contract verification on a block explorer (or some other source verifier). The block explorer needs to compile that source and verify if the generated ...
user avatar
  • 41
0 votes
0 answers
9 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 ...
user avatar
4 votes
1 answer
153 views

Why not `mem::drop(self)` here?

I feel a little confused about the usage of mem::forget(...) when reading impl Imbalance<T::Balance> for PositiveImbalance<T, I> in pallet-balances pallet. Accord the forget docs: Takes ...
user avatar
0 votes
1 answer
11 views

At this point in time will one version of the metadata decode all blocks from genesis to the latest on a single parachain?

I understand that every so often the metadata version gets changed with runtime upgrades over time. What I'm not clear about is how does this affect trying to access the older blocks? Today, will one ...
user avatar
  • 2,432
1 vote
1 answer
12 views

Is Substrate actively published on crates.io

I know for a while after Substrate 2.0 came out, there were occasional releases on crates.io. I thought that practice had stopped and been replaced with git annotations of two different varieties ...
user avatar
0 votes
0 answers
11 views

ERROR reports occur when parallelchain synchronize KSM blocks

2022-05-24 08:13:38.060 INFO main sc_service::builder: [Parachain] 📦 Highest known block at #0 2022-05-24 08:13:38.060 INFO tokio-runtime-worker substrate_prometheus_endpoint: [...
user avatar
  • 511
0 votes
1 answer
29 views

Outdated contract-api documentation

Trying to follow these examples: https://polkadot.js.org/docs/api-contract/start/code#create-a-blueprint which fails with: createBlueprint is not a function Seems like the examples in the ...
user avatar
  • 175
0 votes
1 answer
16 views

Cannot install subkey 3.0

I am trying to install subkey, but this command does not work: cargo install --force subkey --git https://github.com/paritytech/substrate --version 3.0 --locked What am I doing wrong?
user avatar
-2 votes
0 answers
15 views

How to use the scale decoder to parse extrinsics?Obtain the result of block time and parity ratio transaction [duplicate]

enter image description here I tried to get the timestamp of this block in this way, but the result was not correct. Which friend has a specific example of analysis for me? thank you If you just tell ...
user avatar
  • 47
0 votes
1 answer
24 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://...
user avatar
0 votes
2 answers
27 views

parity_scale_codec::Encode is not implemented for ink_storage::Mapping<u32, [u8; 32]>

I am trying to create structure for ink smart contract but it fails on build giving error Error msg -the trait parity_scale_codec::WrapperTypeEncode is not implemented for ink_storage::Mapping<u32, ...
user avatar
  • 349
0 votes
0 answers
21 views

Guidelines for Substrate based standalone blockchain with POS consensus

what are the guidelines to create a standalone substrate blockchain with POS consensus mechanism and people can join the network as validators and get rewards?
user avatar
0 votes
0 answers
7 views

Error making .multi subscription call (Kitties Tutorial)

The error I see in the browser console is: VEC: Unable to decode on index 0 createType(Lookup9):: Expected at least 32 bytes (256 bits), found 16 bytes Offending code snippet (from Kitties.js): // ...
user avatar
  • 1
1 vote
0 answers
31 views

What is the best way to make a cross contract call on Ink!

I found 2 ways to make cross contract calls on ink!. The first is in this link here where another contract is called directly, The second is in this link here where a reference(ref) is being used. I ...
user avatar

15 30 50 per page
1
2 3 4 5
25