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-indexArguments
This command takes no arguments.
Global Arguments
| Option | Short | Description |
|---|---|---|
--keypair <PATH> | -k | Path to identity keypair JSON file |
--rpc-url <URL> | -r | Custom 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>Related
- Create Proposal — Requires index to be initialized
Last updated on