Skip to main content
Version: testnet (v0.71)

Get Stake

Get staking information for a given party

Path Parameters
    partyId string required

    Party ID for which the stake information is requested.

Query Parameters
    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Newest records first, older records last, default is true.

Responses

A successful response.


Schema
    currentStakeAvailable string
    stakeLinkings object

    Paged list of stake data with corresponding page information.

    edges object[]

    Page of stake data and their corresponding cursors.

    cursor string
    node object

    Stake linking represent the intent from a party to deposit.

    amount Amount of stake deposited or removed
    blockHeight uint64
    blockTime int64
    ethereumAddress Ethereum address from which the stake link was initiated
    finalizedAt int64
    id Internal ID for this staking event
    logIndex uint64
    party string
    status Status of the event

    Possible values: [STATUS_UNSPECIFIED, STATUS_PENDING, STATUS_ACCEPTED, STATUS_REJECTED]

    ts int64
    txHash Hash of the transaction from which the events happen
    type - TYPE_UNSPECIFIED: Default value - TYPE_LINK: Indicate of a stake deposit instruction - TYPE_UNLINK: Indicate of a stake remove instruction

    Possible values: [TYPE_UNSPECIFIED, TYPE_LINK, TYPE_UNLINK]

    pageInfo object

    Page information that is used for fetching further pages.

    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
    startCursor string
Loading...