For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetProposalById

Queries proposal based on ID and returns proposal details.

This method will use 30 Compute Units.


Parameters

  • id - int32 - Proposal ID

  • visible - boolean - Optional. Specifies whether the address is in Base58 format (default: false)

Returns

Field
Type
Description

proposal_id

int64

Proposal ID

proposer_address

string

Proposer address

parameters

map<int64, int64>

Chain params

parameters.key

string

Param ID

parameters.value

int64

Param value

expiration_time

int64

Proposal expiration time

create_time

int64

Proposal creation time

approvals

string array

Approvers address

state

enum

State of the proposal, has four enum values: PENDING, DISAPPROVED, APPROVED and CANCELED

// Result
{
  "proposal_id": 1,
  "proposer_address": "TXyZjVcYurrbE43b2MfMtN34uA3tJL85zy",
  "parameters": [
    {
      "key": 11,
      "value": 10
    }
  ],
  "expiration_time": 1575871200000,
  "create_time": 1575606708000,
  "approvals": [
    "TXyZjVcYurrbE43b2MfMtN34uA3tJL85zy"
  ],
  "state": "APPROVED"
}

Last updated

Was this helpful?