The randomness
command
Currently, the random value returned by the testnet node is same for all blocks.
The
The
storagext-cli
getting started page covers the basic flags necessary to operate the CLI and should be read first.
Under the randomness
subcommand Randomness related extrinsics are available.
This chapter covers the provided commands and how to use them.
get
The get
command fetches random value for a specific block height. The returned value is hex encoded.
Parameters
Name | Description | Type |
---|---|---|
BLOCK | Block height | Positive integer |
Example
Fetching random value for block 100.
storagext-cli randomness get 100