Skip to Content
svmgovFor ValidatorsInitialize Index

Initialize Index

Initialize the global ProposalIndex PDA. This is a one-time, permissionless setup that must be completed before any proposals can be created.

Description

The ProposalIndex PDA tracks a sequential counter across all proposals. It is initialized once on a given network and is shared across all validators.

This command only needs to be run once per network. If the index is already initialized, the command will fail gracefully. Check with svmgov list-proposals — if it returns results, the index is already set up.

Usage

svmgov init-index

Arguments

This command takes no arguments.

Global Arguments

OptionShortDescription
--keypair <PATH>-kPath to identity keypair JSON file
--rpc-url <URL>-rCustom RPC URL

Examples

# With config svmgov init-index # With explicit keypair and RPC svmgov init-index \ --keypair <PATH_TO_IDENTITY_KEYPAIR> \ --rpc-url <RPC_URL>
Last updated on