Skip to main content
10 votes
Accepted

What are the predefined accounts (ALICE, BOB, etc)?

The Balances pallet supports a Genesis Configuration which allows you to specify a set of accounts and balances that should exist at the genesis of your chain. For a developer chain (using --dev), ...
Shawn Tabrizi's user avatar
  • 16.1k
9 votes
Accepted

What is sealing in a blockchain?

Sealing means signing a block. You put a "seal" on a block to say that this its content that doesn't get modified. If someone would try to modify it, they would invalidate the seal.
bkchr's user avatar
  • 11.6k
9 votes

How do you add new validators for your blockchain testnet?

Add new public relay validators to your set This post will guide you through the stage where you have a rococo style relay chain and you want other validators to connect with you. Here we will show ...
Ramsey - Decentration's user avatar
8 votes

What is sealing in a blockchain?

Sealing a block means adding some final consensus-related information to a block to complete the block authoring process. Sealing happens on the client-side after all transactions have been executed ...
JoshOrndorff's user avatar
  • 1,201
6 votes

polkadot canvas testnet contract deploy error "contracts.contractTrapped"

There is a fix for the ContractTrapped error which just got merged. Deployment will work on Rococo Canvas soon, after an update which is in progress. Until then, you can test your contracts on a local ...
Andreea Eftene's user avatar
5 votes

What are the predefined accounts (ALICE, BOB, etc)?

In node/src/chain_spec.rs you will find the functions local_testnet_config and development_config which contains lines like these move || { testnet_genesis( wasm_binary, ...
Simson's user avatar
  • 1,201
4 votes

What is the best way to deploy Substrate and EVM based blockchain?

You can deploy to Moonbeam/Astar or if you fancy having a go yourself you can check out the EVM Pallet https://paritytech.github.io/frontier/frame/evm.html
Sam Elamin's user avatar
  • 1,223
4 votes

Automate discovery of new peer node

There is a lot of great content here around the networking in Substrate: https://crates.parity.io/sc_network/index.html Discovery mechanisms In order for our node to join a peer-to-peer network, it ...
Shawn Tabrizi's user avatar
  • 16.1k
3 votes
Accepted

The purpose of epochs in staking

In a proof-of-stake protocol there are usually two distinct categories of systems for determining the eligibility of a given validator to issue a block: Computed publicly by performing some ...
André's user avatar
  • 2,455
3 votes
Accepted

What happens in epoch of a blockchain?

An epoch is generally used with babe consensus algorithm, I suggest you learn more about how the algorithm works here BABE execution happens in sequential non-overlapping phases known as epochs. Each ...
dadzerlaze's user avatar
  • 1,083
3 votes

How to build prefixed key for rocksdb

If you want to pull a specific storage item from rocksdb, it requires traversing the patricia trie in order to find the key that you want. This can become complicated quickly, and is generally a slow ...
insipx's user avatar
  • 373
3 votes

What is the best way to deploy Substrate and EVM based blockchain?

Most evm compatible substrate chains uses pallet-evm and pallet-ethereum provided by frontier, for example Moonbeam, ChainX, Edgeware etc. You can start with the Substrate Frontier Node Template ...
btwiuse's user avatar
  • 291
3 votes

What is the best way to deploy Substrate and EVM based blockchain?

You can turn your substrate into being as close as possible to ethereum by adopting ethereum conventions for example changing address types to match. But if you do that, those addresses need a ...
Squirrel's user avatar
  • 3,849
2 votes

Why should you start with Substrate?

Substrate allows you to handle the complex processes of Blockchain development without the limitations imposed by other frameworks. Since its launch, Substrate has been shaped to be a flexible and ...
James's user avatar
  • 37
2 votes

Are there ways to suppress blockchain growth rate (in terms of storage)?

To control the storage usage of a full node, you can try to: Raise the base transaction fee to discourage dust transaction on your blockchain Lower down the block weight so that less extrinsics can ...
h4x3rotab's user avatar
  • 717
2 votes

How to build prefixed key for rocksdb

You may need to clarify your question, but these samples might help: A bit of an intro to constructing storage keys and obtaining storage entries from them via a node's RPC API: https://github.com/...
jsdw's user avatar
  • 1,335
2 votes

is there any api for get substrate api client verison?

How are you running sidecar? If you have it installed in your project you can query the version using the CLI: node_modules/.bin/substrate-api-sidecar --version If you have installed it globally: ...
Alex Bean's user avatar
  • 5,757
2 votes

What problems does the relay chain solve? General questions about blockchain interoperability

There are a few distinct questions here, so I'll answer each briefly. What are some real world problems with real scenarios blockchain interoperability solve? The problems solved by blockchain ...
Nate Armstrong's user avatar
2 votes

Is parachain a data structure?

A blockchain is a datastructure essentially. It's a distributed linked-list that uses a consensus mechanism to append blocks and grow the list. A parachain is a blockchain, hence the term makes ...
b0zero's user avatar
  • 533
2 votes
Accepted

Substrate-based PoW Public Blockchains

As of the writing this post, Kulupu is the only public running PoW Substrate chain.
Shawn Tabrizi's user avatar
  • 16.1k
2 votes
Accepted

Getting schedular overweight error while doing runtime upgrade

In the relay chain case you can overwrite the weight of the runtime upgrade by wrapping the system::set_code extrinsic into a utility::with_weight and overwrite the weight to something small. We use ...
Oliver Tale-Yazdi's user avatar
2 votes

polkadot explorer getting stuck while using utility and sudo pallet from extrinsics

This is a performance issue. I've encountered it before as well. What I did was open a new browser and try using different wallets. It appears that signing a WASM significantly affects performance.
AurevoirXavier's user avatar
  • 10.7k
2 votes

council execution giving bad origin error?

The force_transfer extrinsic requires to be called by the Root origin (ref). The Collective pallet doesn't have this authority (democracy pallet has). The Collective pallet can be used to configure a ...
Daan van der Plas's user avatar
2 votes

Extrinsics In Genesis Block

You can just add transaction to the genesis block. You are right that this isn't done by Polkadot or any of the Parachains. However, you can write your own BuildGenesisBlock implementation that can ...
bkchr's user avatar
  • 11.6k
1 vote

How to create a subscription pallet?

This can be solved in various ways. Depending on the duration also aspects like building a reserve can be relevant. E.g. one time payment is simple but recurring payments, maybe collected in a map ...
2075's user avatar
  • 111
1 vote

Do you know any ready-to-start substrate based blockchain that I can take as fundament for my blockchain?

Here i am trying to show you easy way to add pallet into substrate node template First you need to add dependency of your pallet which you want to add into substrate-node-template in the runtime/Cargo....
Wakar Seraj Khan's user avatar
1 vote
Accepted

how to solve the sys error in substrate polkadot branch (polkadot-v0.9.43)

There is something wrong with your imports, check your Cargo.toml. As an example if you check this previous StackExchange issue: file not found for module sys. It worked using the default-features = ...
Alex Bean's user avatar
  • 5,757
1 vote

I got this error while building a blockchain

That is not an error, more of an indication. If you really want to check you can manually look in those folders: ls /tmpl/alice/chains/local_testnet/db ls /tmpl/alice/chains/local_testnet ls /tmpl/...
Bruno's user avatar
  • 8,315
1 vote

I got this error while doing simulating a network when building a blockchain

The purge-chain command is trying to remove the folder /tmp/alice/chains/local_testnet/db/full by default, and you don't have anything there. You can explore where are you keeping this data cd tmp &...
Alex Bean's user avatar
  • 5,757

Only top scored, non community-wiki answers of a minimum length are eligible