Guide to running a validator node on the Story Network
story
consensus client.
priv_validator_key.json
file under your story
data directory. To print out your validator key details you may refer to the validator key export sectionIP
and wishes to participate in consensus rewards but without needing to run a validator themselves.story
binary resides, add a .env
file with a PRIVATE_KEY
whose account has IP
funded. We recommend using your delegator account for all below operations.
.env
for all operations..env
file should look like the following (make sure not to add a 0x prefix):
./story init
a validator key is created for you. To view your validator key, run the following command:
--export-evm-key
: (bool) Exports the derived EVM private key of your validator into the default data config directory--export-evm-key-path
: (string) Specifies a different download location for the derived EVM private key of your validator--keyfile
: (string) Path to the Tendermint key file (default “/home/ubuntu/.story/story/config/priv_validator_key.json”).env
file and ensure it has IP
sent to it, e.g. via ./story validator export --export-evm-key --evm-key-path .env
priv_validator_key.json
, providing the validator with {$AMOUNT_TO_STAKE_IN_WEI}
IP to self-stake.
1024000000000000000000 wei
)!--stake
: Sets the amount the validator will self-delegate in wei (default is 1024000000000000000000
wei).--moniker
: Defines a custom name for the validator, visible to users on the network.--chain-id
: Specifies the Chain ID for the transaction. By default, this is set to 1516
.--commission-rate
: Sets the validator’s commission rate in bips (1% = 100 bips). For instance, 1000
represents a 10% commission (default is 1000
).--explorer
: Specifies the URL of the blockchain explorer (default: https://www.storyscan.io).--keyfile
: Points to the path of the Tendermint key file (default: $HOME/.story/story/config/priv_validator_key.json
).--max-commission-change-rate
: Sets the maximum rate at which the validator’s commission can change, in bips. For example, 100
represents a maximum change of 1% (default is 1000
).--max-commission-rate
: Defines the maximum commission rate the validator can charge, in bips. For instance, 5000
allows a 50% maximum rate (default is 5000
).--rpc
: Sets the RPC URL to connect to the network (default: https://mainnet.storyrpc.io).--unlocked
: Determines if unlocked token staking is supported (true
for unlocked staking, false
for locked staking). By default, this is set to true
.--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the valueExplorer URL
to confirm the transaction. If successful, you should see your validator pub key (found in yourpriv_validator_key.json
file) listed as part of the following endpoint:
${VALIDATOR_PUB_KEY_IN_HEX}
may be found by running the ./story validator export
command as the Compressed Public Key (hex)
.*1024000000000000000000 wei
) for the transaction to be validExplorer URL
to confirm the transaction. As mentioned earlier, you may use our validator endpoint to confirm the new voting power of the validator.
Available Flags:
--validator-pubkey
: (string) The public key of the validator to stake to--stake
: (string) The amount of IP to stake in wei--chain-id
: (int) Chain ID to use for the transaction (default: 1514)--explorer
: (string) URL of the blockchain explorer--help
, -h
: Display help information for stake command--rpc
: (string) RPC URL to connect to the network--staking-period
: (stakingPeriod) Staking period (options: “flexible”, “short”, “medium”, “long”) (default: flexible)--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value${AMOUNT_TO_UNSTAKE_IN_WEI}
IP from the selected validator. You must unstake at least 1024 IP worth (*1024000000000000000000 wei
) for the transaction to be valid.
Like in the staking operation, please use the Explorer URL
to confirm the transaction and our validator endpoint to double-check the newly reduced voting power of the validator.
Available Flags:
--chain-id
: (int) Chain ID to use for the transaction (default: 1514)--delegation-id
: (uint32) The delegation ID (0 for flexible staking)--explorer
: (string) URL of the blockchain explorer (default: “https://www.storyscan.io”)--help
, -h
: Help for unstake command--rpc
: (string) RPC URL to connect to the network (default: “https://mainnet.storyrpc.io”)--unstake
: (string) Amount to unstake in wei--validator-pubkey
: (string) Validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value${AMOUNT_TO_STAKE_IN_WEI}
IP to the validator on behalf of the provided delegator. You must stake at least 1024 IP worth (*1024000000000000000000 wei
) for the transaction to be valid.
Like in the other staking operations, please use the Explorer URL
to confirm the transaction and our validator endpoint to double-check the increased voting power of the validator.
Available Flags:
--chain-id
: (int) Chain ID to use for the transaction (default: 1514)--delegator-address
: (string) Delegator’s EVM address--explorer
: (string) URL of the blockchain explorer (default: “https://www.storyscan.io”)--help
, -h
: Help for stake-on-behalf command--rpc
: (string) RPC URL to connect to the network (default: “https://mainnet.storyrpc.io”)--stake
: (string) Amount for the validator to self-delegate in wei--staking-period
: (stakingPeriod) Staking period (options: “flexible”, “short”, “medium”, “long”) (default: flexible)--validator-pubkey
: (string) Validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value${AMOUNT_TO_STAKE_IN_WEI}
IP from the validator on behalf of the delegator, assuming you are a registered operator for that delegator. You must unstake at least 1024 IP worth (*1024000000000000000000 wei
) for the transaction to be valid.
Like in the other staking operations, please use the Explorer URL
to confirm the transaction and our validator endpoint to double-check the decreased voting power of the validator.
Available Flags:
--chain-id
: (int) Chain ID to use for the transaction (default: 1514)--delegator-address
: (string) Delegator’s EVM address--explorer
: (string) URL of the blockchain explorer (default: “https://www.storyscan.io”)--help
, -h
: Help for unstake-on-behalf command--rpc
: (string) RPC URL to connect to the network (default: “https://mainnet.storyrpc.io”)--unstake
: (string) Amount to unstake in wei--validator-pubkey
: (string) Validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value--chain-id
: (int) Chain ID to use for the transaction--explorer
: (string) URL of the blockchain explorer--rpc
: (string) RPC URL to connect to the network--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value--chain-id
: (int) Chain ID to use for the transaction--explorer
: (string) URL of the blockchain explorer--rpc
: (string) RPC URL to connect to the network--validator-pubkey
: (string) Validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value--api-address
: (string) The API server address to listen on (default ”*****:1317”)--api-enable
: (bool) Define if the API server should be enabled--api-enable-unsafe-cors
: (bool) Enable unsafe CORS for API server--api-idle-timeout
: (uint) Define the API server idle timeout (in seconds) (default 10)--api-max-header-bytes
: (uint) Define the API server max header (in bytes) (default 8192)--api-read-header-timeout
: (uint) Define the API server read header timeout (in seconds) (default 10)--api-read-timeout
: (uint) Define the API server read timeout (in seconds) (default 10)--api-write-timeout
: (uint) Define the API server write timeout (in seconds) (default 10)--app-db-backend
: (string) The type of database for application and snapshots databases (default “goleveldb”)--engine-endpoint
: (string) An EVM execution client Engine API http endpoint (default “http://localhost:8551”)--engine-jwt-file
: (string) The path to the Engine API JWT file--evm-build-delay
: (duration) Minimum delay between triggering and fetching a EVM payload build (default 600ms)--evm-build-optimistic
: (bool) Enables optimistic building of EVM payloads on previous block finalize (default true)--help
: (bool) help for rollback--home
: (string) The application home directory containing config and data (default “/home/timothyshen/.story/story”)--log-color
: (string) Log color (only applicable to console format); auto, force, disable (default “auto”)--log-format
: (string) Log format; console, json (default “console”)--log-level
: (string) Log level; debug, info, warn, error (default “info”)--min-retain-blocks
: (uint) Minimum block height offset during ABCI commit to prune CometBFT blocks--network
: (string) Story network to participate in: story, odyssey, aeneid or local--number
: (uint) number of blocks to rollback (default 1)--pruning
: (string) Pruning strategy (default|nothing|everything) (default “nothing”)--snapshot-interval
: (uint) State sync snapshot interval (default 1000)--snapshot-keep-recent
: (uint) State sync snapshot to keep (default 2)--tracing-endpoint
: (string) Tracing OTLP endpoint--tracing-headers
: (string) Tracing OTLP headers--chain-id
: (int) Chain ID to use for the transaction (default 1514)--delegation-id
: (uint32) The delegation ID (0 for flexible staking)--explorer
: (string) URL of the blockchain explorer (default “https://www.storyscan.io”)--help
, -h
: Help for redelegate command--redelegate
: (string) Amount to redelegate in wei--rpc
: (string) RPC URL to connect to the network (default “https://mainnet.storyrpc.io”)--validator-dst-pubkey
: (string) Dst validator’s hex-encoded compressed 33-byte secp256k1 public key--validator-src-pubkey
: (string) Src validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value--chain-id
: (int) Chain ID to use for the transaction (default 1514)--delegation-id
: (uint32) The delegation ID (0 for flexible staking)--delegator-address
: (string) Delegator’s EVM address--explorer
: (string) URL of the blockchain explorer (default “https://www.storyscan.io”)--help
, -h
: Help for redelegate-on-behalf command--redelegate
: (string) Amount to redelegate in wei--rpc
: (string) RPC URL to connect to the network (default “https://mainnet.storyrpc.io”)--validator-dst-pubkey
: (string) Dst validator’s hex-encoded compressed 33-byte secp256k1 public key--validator-src-pubkey
: (string) Src validator’s hex-encoded compressed 33-byte secp256k1 public key--story-api
: Prevent potential fund losses. By default, you should set http://localhost:1317
as the value--chain-id
int Chain ID to use for the transaction (default 1514)--explorer
string URL of the blockchain explorer (default “https://www.storyscan.io”)--operator
string Sets an operator to your delegator--rpc
string RPC URL to connect to the network (default “https://mainnet.storyrpc.io”)${STORY_DATA_ROOT}/config/story.toml
enable = true
under the [api]
sectionhttp://localhost:1317
as the -story-api
value
priv_validator_key.json
and priv_validator_state.json
and remove it from the current server running the active validator. Skipping these steps could result in missed blocks or other penalties.priv_validator_key.json
and priv_validator_state.json
in the ~/.story/story/config/
directory on your new machine. Replace this file with the backup copy from your old validator.