getproposalbyid - Tron

getproposalbyid. Returns the details and vote status of a specific network parameter proposal.

getproposalbyid - tron [Value: 20CU]
Returns the details and vote status of a specific network parameter proposal.
Use cases

Use cases

  • Also available as GET
  • Check a specific proposal's current approval count and status
Constraints

Constraints

  • Returns an empty object if no proposal with that id exists
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://lb.drpc.live/tron/{API-KEY}/wallet/getproposalbyid \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"id": 1}'
Copy
Response
200
{
  "proposal_id": 70,
  "proposer_address": "412e9d9ea27e51b0307afc7ce64654cf9359b74cec",
  "parameters": [
    { "key": 1, "value": 9997000000 }
  ],
  "expiration_time": 1582381800000,
  "create_time": 1582381197000,
  "state": "DISAPPROVED"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
idinteger
[Required] The proposal's numeric ID
visibleboolean
Address format

Response

200
Returns the details and vote status of a specific network parameter proposal.

Response params

object
proposal_idinteger
The numeric identifier of this proposal.
proposer_addressstring
The address of the witness who created this proposal, in hex format.
parametersarray_of_objects
The list of chain parameters this proposal seeks to change, each identified by a numeric key and its proposed value.
object
keyinteger
The numeric identifier of the chain parameter being changed.
valueinteger
The proposed new value for this chain parameter.
expiration_timeinteger
Unix timestamp, in ms, after which this proposal is no longer eligible to take effect.
create_timeinteger
Unix timestamp, in ms, at which this proposal was created.
statestring
The current status of this proposal in its lifecycle (e.g. PENDING, APPROVED, DISAPPROVED, CANCELED).