Get Stake
Get staking information for a given party
Path Parameters
Party ID for which the stake information is requested.
Query Parameters
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
- 200
- 500
- default
A successful response.
Schema
stakeLinkings object
Paged list of stake data with corresponding page information.
edges object[]
Page of stake data and their corresponding cursors.
node object
Stake linking represent the intent from a party to deposit.
Possible values: [STATUS_UNSPECIFIED
, STATUS_PENDING
, STATUS_ACCEPTED
, STATUS_REJECTED
]
Possible values: [TYPE_UNSPECIFIED
, TYPE_LINK
, TYPE_UNLINK
]
pageInfo object
Page information that is used for fetching further pages.
{
"currentStakeAvailable": "string",
"stakeLinkings": {
"edges": [
{
"cursor": "string",
"node": {
"amount": "string",
"blockHeight": "string",
"blockTime": "string",
"ethereumAddress": "string",
"finalizedAt": "string",
"id": "string",
"logIndex": "string",
"party": "string",
"status": "STATUS_UNSPECIFIED",
"ts": "string",
"txHash": "string",
"type": "TYPE_UNSPECIFIED"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}