Strike Docs
  • 📖Strike Documentation
  • ⭐Getting Started
    • 🧑‍🏫Guides
    • 🔬Networks
    • 📒Protocol Math
      • sToken and Underlying Decimals
      • Interpreting Exchange Rates
      • Calculating Accrued Interest
      • Calculating the APY Using Rate Per Block
    • 💹Gas Costs
  • 🎙️STokens
    • Mint
    • Redeem
    • Redeem Underlying
    • Borrow
    • Repay Borrow
    • Repay Borrow Behalf
    • Transfer
    • Liquidate Borrow
    • Key Events
    • Error Codes
    • Failure Info
    • Exchange Rate
    • Get Cash
    • Total Borrow
    • Borrow Balance
    • Borrow Rate
    • Total Supply
    • Underlying Balance
    • Supply Rate
    • Total Reserves
    • Reserve Factor
  • ⚙️Comptroller
    • Enter Markets
    • Exit Market
    • Get Assets In
    • Collateral Factor
    • Get Account Liquidity
    • Close Factor
    • Liquidation Incentive
    • Key Events
    • Error Codes
    • Failure Info
    • STRK Distribution Speeds
    • Claim STRK
    • Market Metadata
  • 👨‍👩‍👦Governance
    • Delegate
    • Delegate By Signature
    • Get Current Votes
    • Get Prior Votes
    • Key Events
    • Governor Alpha
    • Quorum Votes
    • Proposal Threshold
    • Proposal Max Operations
    • Voting Delay
    • Voting Period
    • Propose
    • Queue
    • Execute
    • Cancel
    • Get Actions
    • Get Receipt
    • State
    • Cast Vote
    • Cast Vote By Signature
    • Timelock
    • Pause Guardian
  • 🔡API
    • STokenService
      • GET: /stoken
    • MarketHistoryService
      • GET: /market_history/graph
    • ProposalService
      • GET: /proposals
      • GET: /proposals/:id
      • GET: /proposals/statistics
    • VoterService
      • GET: /voters/accounts
      • GET: /voters/accounts/:address
      • GET: /voters/history/:address
      • GET: /voters/:proposalId
    • GovernanceService
      • GET: /governance/strike
      • GET: /governance/proposals
      • GET: /governance/proposal_vote_receipts
      • GET: /governance/accounts
    • UserHistoryService
      • GET: /user/history
    • LiquidationService
      • GET: /get_liquidators
      • GET: /get_liquidator:account
      • GET: /get_liquidator_detail:account
      • GET: /liquidator
    • Shared Data Types
  • ⌛Strike.js
    • Strike Constructor
    • API Methods
      • Account
      • sToken
      • Market History
      • Governance
    • sToken Methods
      • Supply
      • Redeem
      • Borrow
      • Repay Borrow
    • STRK Methods
      • To Checksum Address
      • Get Strk Balance
      • Get Strk Accrued
      • Claim Strk
      • Delegate
      • Delegate By Sig
      • Create Delegate Signature
    • Comptroller Methods
      • Enter Markets
      • Exit Market
    • Ethereum Methods
      • Read
      • Trx
      • Get Balance
    • Governance Methods
      • Cast Vote
      • Cast Vote By Sig
      • Create Vote Signature
    • Price Feed Methods
      • Get Price
    • Utility Methods
      • Get Address
      • Get ABI
      • Get Network Name With Chain ID
  • 🤑DeFi 3.0 Vault
  • 🍍Revenue Share Staking
  • 🔒Security
    • Formal Verification
    • Bug Bounty Program
    • Immunefi
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. GovernanceService

GET: /governance/proposals

ProposalRequest

The request to the Proposal API can specify a number of filters, such as which ids to retrieve information about or state of proposals.

Type

Key

Description

uint32

proposal_ids

List of ids to filter on, e.g.:?proposal_ids[]=23,25

string

state

The state of the proposal to filter on, (e.g.: "Pending", "Active", "Canceled", "Defeated", "Succeeded", "Queued", "Expired", "Executed")

uint32

offset

Offset of pagination, default is 0

uint32

limit

Number of proposals to include in the response, default is 100

ProposalResponse

The Proposal API returns a list of proposals that match the given filters on the request in descending order by proposal_id.

Type

Key

Description

bool

status

If set false, indicates an error returning data.

uint32

offset

Offset of pagination

uint32

limit

Limit of pagination

uint32

total

Total count of matching proposals

Proposal

data

The list of proposals matching the requested filter

Proposal

Type

Key

Description

uint32

id

Unique id for looking up a proposal

string

description

A description of the actions the proposal will take if successful

bytes

targets

The address to send the calldata to

string

values

The value of ETH to send with the transaction

string

signatures

The function signature of the function to call at the target address

string

calldatas

The encoded argument data for the action

uint32

createdBlock

Created block number

string

createdTxHash

Created transaction hash

uint32

createdTimestamp

Created block timestamp

uint32

startBlock

Started block number

string

startTxHash

Started transaction hash

uint32

startTimestamp

Started block timestamp

uint32

cancelBlock

Canceled block number

string

cancelTxHash

Canceled transaction hash

uint32

cancelTimestamp

Canceled block timestamp

uint32

endBlock

End block number

string

endTxHash

End transaction hash

uint32

endTimestamp

End block timestamp

uint32

queuedBlock

Queued block number

string

queuedTxHash

Queued transaction hash

uint32

queuedTimestamp

Queued block timestamp

uint32

executedBlock

Executed block number

string

executedTxHash

Executed transaction hash

uint32

executedTimestamp

Executed block timestamp

bytes

proposer

Proposer address

uint32

eta

eta

string

forVotes

The number of votes in support of the proposal

string

againstVotes

The number of votes in opposition to this proposal

bool

canceled

Set true if canceled

bool

executed

Set true if executed

string

state

State of "Pending", "Active", "Canceled", "Defeated", "Succeeded", "Queued", "Expired", "Executed"

uint32

voterCount

Voter count

uint32

blockNumber

Last calculated block number

PreviousGET: /governance/strikeNextGET: /governance/proposal_vote_receipts

Last updated 4 years ago

Was this helpful?

🔡