> For the complete documentation index, see [llms.txt](https://andrewkimjoseph.gitbook.io/celina-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andrewkimjoseph.gitbook.io/celina-sdk/services/governanceservice.md).

# GovernanceService

[**@andrewkimjoseph/celina-sdk**](/celina-sdk/api-reference/api-reference.md)

***

[@andrewkimjoseph/celina-sdk](/celina-sdk/api-reference/api-reference.md) / [services/governance.service](https://github.com/andrewkimjoseph/celina-sdk/blob/main/docs/api-reference/services/governance.service/README.md) / GovernanceService

## Class: GovernanceService

Defined in: [src/services/governance.service.ts:94](https://github.com/andrewkimjoseph/celina-sdk/blob/970ab720c805303ead8b20406c6579ecdcf2193a/src/services/governance.service.ts#L94)

Celo on-chain governance proposal reads and CGP enrichment.

### Constructors

#### Constructor

> **new GovernanceService**(`clientFactory`): `GovernanceService`

Defined in: [src/services/governance.service.ts:95](https://github.com/andrewkimjoseph/celina-sdk/blob/970ab720c805303ead8b20406c6579ecdcf2193a/src/services/governance.service.ts#L95)

**Parameters**

**clientFactory**

`CeloClientFactory`

**Returns**

`GovernanceService`

### Methods

#### getGovernanceProposals()

> **getGovernanceProposals**(`options?`): `Promise`<{ `network`: `"mainnet"`; `pagination`: { `hasMore`: `boolean`; `limit`: `number`; `offset`: `number`; `page`: `number`; `pageSize`: `number`; `total`: `number`; `totalPages`: `number`; }; `proposals`: `object`\[]; }>

Defined in: [src/services/governance.service.ts:221](https://github.com/andrewkimjoseph/celina-sdk/blob/970ab720c805303ead8b20406c6579ecdcf2193a/src/services/governance.service.ts#L221)

List governance proposals with pagination and optional CGP metadata.

**Parameters**

**options?**

[`GovernanceProposalsOptions`](/celina-sdk/types/governanceproposalsoptions.md) = `{}`

Pagination (`page`/`pageSize` or `offset`/`limit`) and filters

**Returns**

`Promise`<{ `network`: `"mainnet"`; `pagination`: { `hasMore`: `boolean`; `limit`: `number`; `offset`: `number`; `page`: `number`; `pageSize`: `number`; `total`: `number`; `totalPages`: `number`; }; `proposals`: `object`\[]; }>

Proposals with stage names, vote totals, and optional CGP frontmatter

***

#### getProposalDetails()

> **getProposalDetails**(`proposalId`): `Promise`<{ `content`: `null`; `error`: `string`; `network`: `"mainnet"`; `proposal`: `null`; } | { `content`: `string` | `null`; `error`: `null`; `network`: `"mainnet"`; `proposal`: { `deposit`: `string`; `expiryTimestamp`: `number` | `null`; `id`: `number`; `isApproved`: `boolean`; `metadata`: `Record`<`string`, `unknown`> | `null`; `networkWeight`: `string`; `numTransactions`: `number`; `proposer`: `string`; `stage`: `number`; `stageName`: `"Approval"` | `"None"` | `"Queued"` | `"Referendum"` | `"Execution"` | `"Executed"` | `"Expiration"` | `"Rejected"` | `"Withdrawn"`; `timestamp`: `number`; `upvotes`: `number`; `url`: `string`; `votes`: { `abstain`: `string`; `no`: `string`; `yes`: `string`; }; }; }>

Defined in: [src/services/governance.service.ts:304](https://github.com/andrewkimjoseph/celina-sdk/blob/970ab720c805303ead8b20406c6579ecdcf2193a/src/services/governance.service.ts#L304)

Full details for a single proposal, including CGP markdown body when available.

**Parameters**

**proposalId**

`number`

On-chain governance proposal id

**Returns**

`Promise`<{ `content`: `null`; `error`: `string`; `network`: `"mainnet"`; `proposal`: `null`; } | { `content`: `string` | `null`; `error`: `null`; `network`: `"mainnet"`; `proposal`: { `deposit`: `string`; `expiryTimestamp`: `number` | `null`; `id`: `number`; `isApproved`: `boolean`; `metadata`: `Record`<`string`, `unknown`> | `null`; `networkWeight`: `string`; `numTransactions`: `number`; `proposer`: `string`; `stage`: `number`; `stageName`: `"Approval"` | `"None"` | `"Queued"` | `"Referendum"` | `"Execution"` | `"Executed"` | `"Expiration"` | `"Rejected"` | `"Withdrawn"`; `timestamp`: `number`; `upvotes`: `number`; `url`: `string`; `votes`: { `abstain`: `string`; `no`: `string`; `yes`: `string`; }; }; }>

Proposal record, CGP content, or `{ proposal: null, error }` if missing


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://andrewkimjoseph.gitbook.io/celina-sdk/services/governanceservice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
