Skip to main content
Address: 0x0000000000000000000000000000000000001006 The Sei governance precompile enables EVM applications to participate in Sei’s on-chain governance process. This allows users and smart contracts to submit proposals, vote on them, deposit tokens, and query governance information directly through the EVM interface.
What is a precompile? A precompile is a special smart contract deployed at a fixed address by the Sei protocol itself, that exposes custom native chain logic to EVM-based applications. It acts like a regular contract from the EVM’s perspective, but executes privileged, low-level logic efficiently.

How Does the Governance Precompile Work?

The governance precompile at address 0x0000000000000000000000000000000000001006 exposes functions like vote(), voteWeighted(), deposit(), and submitProposal().
  • Direct Integration: EVM contracts and dApps can interact with governance like any other smart contract method.
  • Native Execution: Governance operations are executed at the chain level for maximum efficiency.
  • Seamless: No need for separate wallet integrations.

Use Cases

  • Voting Interfaces: Create user-friendly governance participation tools.
  • Automated Governance: Smart contracts that vote based on predetermined strategies.
  • Governance Aggregators: Build platforms that aggregate and simplify governance participation.

Sei Governance Overview

Sei governance operates on a structured timeline with specific parameters:

Governance Process

  1. Proposal Submission: Submit proposal with minimum 3,500 SEI deposit
  2. Deposit Period: 2 days to accumulate minimum deposit or reach expedited threshold
  3. Voting Period: 3 days (1 day for expedited) of active voting once minimum deposit is met
  4. Tallying: Results calculated based on quorum and voting thresholds
To find out all about the governance process on Sei, go to the governance explainer.
Critical Mainnet Considerations:
  • High Stakes: Mainnet governance involves real SEI tokens and binding decisions
  • Minimum Deposit: 3500 SEI minimum, 7000 SEI for expedited
  • Deposit Risk: Deposits will be burned if your proposal receives >33.4% NoWithVeto votes
  • Voting Power Required: Must stake SEI with validators to participate
  • Time Limits: Strict 2-day deposit period and 3-day voting period
  • Real Impact: Successful proposals can change network parameters

Functions

The governance precompile exposes the following functions:

Transaction Functions

Using the Contract

Setup

Prerequisites

Before getting started, ensure you have:
  • Node.js (v18 or higher)
  • npm or yarn package manager
  • MetaMask or compatible EVM wallet configured for Sei Mainnet
  • SEI tokens for gas and governance deposits (minimum 3,500 SEI for proposals)

Install Dependencies

Install the required packages for interacting with Sei precompiles:

Import Precompile Components

Precompile Address: The governance precompile is deployed at 0x0000000000000000000000000000000000001006

Get SEI Tokens

Purchase SEI tokens from supported exchanges:
  • Centralized Exchanges: Binance, Coinbase, KuCoin, Gate.io
  • Decentralized Exchanges: Astroport, Dragonswap (on Sei)
  • Bridge Options: Various cross-chain bridges support SEI
Minimum Requirements: You need at least 3,500 SEI to submit a governance proposal, plus additional tokens for gas and potential additional deposits.

Contract Initialization

Set up your provider, signer, and contract instance:

Vote Options

The governance system uses the following vote options:

Voting Power

Your voting power is determined by:
  • Staked SEI: Amount of SEI you have staked with validators
  • Delegation: SEI delegated to validators counts toward voting power
  • Liquid SEI: Unstaked SEI does not provide voting power
Important: Only staked SEI provides voting power. You must delegate your tokens to validators to participate in governance voting.

Validation Functions

Before making governance transactions, use these helper functions to validate inputs:

Step-by-Step Guide: Using the Governance Precompile

Submit a Proposal

Important Deposit Requirements:
  • Minimum deposit: 3,500 SEI required for proposal to enter voting period
  • Expedited processing: 7,000 SEI if the voting period should only be 1 day long
  • Deposit period: 2 days to meet minimum or proposal fails and deposits are burned
  • Multiple deposits: Anyone can contribute to reach the minimum threshold

Vote on a Proposal

Weighted Voting

Critical Requirement: Weighted vote options MUST sum to exactly 1.0 or the transaction will fail. The Sei governance module enforces this strictly - even small rounding errors will cause rejection.

Deposit to a Proposal

Complete Integration Example

Create a comprehensive governance interaction script:
governance-mainnet-demo.js

Running the Example

  1. Create a new directory and initialize npm:
  1. Install dependencies:
  1. Create a .env file:
  1. Create the demo file: Copy the complete integration example above into governance-mainnet-demo.js
  2. Ensure you have sufficient SEI:
    • Minimum 3,500 SEI for proposal deposit
    • Additional SEI for gas and optional additional deposits
    • Staked SEI for voting power
  3. Run the script:

Expected Output

Troubleshooting

Common Issues and Solutions

Insufficient Deposit

No Voting Power

Invalid Vote Option

Weighted Vote Validation

Error Code Reference

Need Help? If you encounter issues: