Skip to main content

Questions tagged [cli]

The tag has no usage guidance.

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

How does the Substrate Node Template deal with command line arguments?

I'm reading the code of Substrate Node Template, trying to get a deeper understanding of the implementation of it. However, I stuck when I tried to find out how the node deals with command line ...
0 votes
0 answers
35 views

RpcError: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low

I created this script to set the validator keys via a CLI using an environment variable file and Polkadot.js Tools without having to change its CLI to load the seed from a file instead of just a ...
0 votes
2 answers
68 views

Do we have CLI support for ink! smart contract deployment on configured test-net?

I want to deploy my contract on Rococo contract test net. Apart from polkadot.js/apps, do we have any other way to upload and then instantiate the contract? My goal is to create a script for the ...
3 votes
1 answer
53 views

create a dev chainspec with specific test users

I'd like to use the Polkadot CLI to create a chainspec with specific user balances pre-seeded. I'd like to be able to do this for any of the dev runtimes. In the case of the polkadot dev runtime, I ...
0 votes
1 answer
90 views

Why can we limit the memory the RocksDB database cache can use but not for ParityDB?

In the Substrate CLI why can we limit the memory that the RocksDB database cache can use if we choose to use it here, but we're not given the option to limit the memory that ParityDB uses if we choose ...
0 votes
0 answers
33 views

when running a validating nodes, firewall setting is essential?

when running a nodes, firewall is essential? i used this command sudo ufw allow 3033/tpc but it`s result is "ERROR: Bad port" what`s the problem? can i just done "sudo ufw enable" ...
5 votes
1 answer
185 views

trait bounds not satisfied with Executive::try_runtime_upgrade()

I'm attempting to integrate try-runtime into substrate-contracts-node and I get the following error when I call Executive::try_runtime_upgrade(): Compiling contracts-node-runtime v0.24.0 (/Users/bruno/...
2 votes
1 answer
36 views

Configure offchain worker with command line argument

Is configuring an off-chain worker with a command line argument possible? e.g. ./target/release/cere --dev --alice --my-custom-url "http://my-..." If not what are the other options?
5 votes
1 answer
92 views

How is the logging CLI implemented in substrate?

Often I've used the flags like -lruntime=debug or -lparachain=debug without really understanding how they work. I know that the env_logger crate allows you to specify which crates to emit log messages ...
1 vote
1 answer
22 views

Custom Metadata Command Returnning Incorrect Data

I have written a command that exports the metadata at the CLI which /should/ duplicate the results of state_getMetadata. Full Source Code: https://github.com/LibertyDSNP/frequency/blob/main/node/cli/...
-1 votes
2 answers
89 views

How to generate node information?

How can i generate this information while starting my chain???
7 votes
0 answers
62 views

`check-blocks` command not re-executing the block [closed]

I am confused about the behavior of the check-block command. I was expecting it to re-execute the block, but it seems like this is not the case. For example, the following command: ➜ ~ RUST_LOG=...
1 vote
1 answer
351 views

Cannot run benchmarking: "Did not find the benchmarking metadata."

I have problems with trying to benchmark my custom pallet. I tried different scenarios and received different errors: Using the same binary: I built my node with cargo build --release --features ...
1 vote
0 answers
28 views

RPC enabled? CLI configuration?

I need to determine whether RPCs are enabled in a OCW. I am thinking that I could check rpc_external and/or ws_external in sc_cli::commands::run_cmd but (1) is this the best way and (2) if it is, how ...
0 votes
1 answer
287 views

Calling an extrinsic using the polkadot-js-api CLI tool

How can I call an extrinsic on a palette using the polkadot-js-api CLI tool? I don't see much documentation on the tool nor does the --help provide much detail. Could I use this tool for this ...
0 votes
1 answer
422 views

What is the best way to find the genesis hash for a chain?

My understanding is the following terms which are used in different contexts and applications all refer to the same thing: "genesis hash", "network key", "chain id". I ...
3 votes
1 answer
132 views

How to see the hardware benchmark results?

Substrate has introduced a flag called --no-hardware-benchmarks to disable automatic hardware benchmarks. This implies if the flag is not set, the benchmark should run automatically at startup and ...
3 votes
1 answer
75 views

Calling CLI subcommand through different terminal after running the node

I'm trying to set some off-chain storage through a different terminal using a custom subcommand after starting up the node. Question here is: Is there any way to call the custom CLI subcommand in the ...
7 votes
2 answers
194 views

What is the internal logic of `--force-authoring` flag?

From where do I get the internal logic of --force-authoring flag? Here is my scenario: I've added a custom chain-spec that is similar to the default one where we are setting the environment for --dev ...
10 votes
2 answers
123 views

What does the `--dev` flag do?

I get a different set of behaviors when running my node with --dev than when I run my node with my own custom setup. What is happening in the background?
10 votes
3 answers
100 views

What does the `--tmp` flag do when running the Substrate Node Template?

The Substrate Node Template says in the "Run" section of the README, that the single-node development chain will start with "non-persistent state" if run with the following command:...