Overview

The Governance precompile provides a Solidity interface to the Cosmos SDK x/gov module. Smart contracts can submit proposals, vote, and query governance state. Precompile Address: 0x0000000000000000000000000000000000000805

Gas Costs

Transaction Methods

Query Methods

Example

The voter address must be the direct caller of the precompile. A contract votes with its own account by passing address(this); an EOA calls the precompile directly with its own address. Any other address reverts with msg.sender address ... does not match the requester address .... For exact signatures, return structs, and events, see Precompile ABI Reference.