My Stakes List
Token
My Stakes List
Returns a list of user stakes for a given wallet and staking pool id
GET
My Stakes List
Headers
cursor for pagination; not required for the first page; for subsequent pages, use the cursor from the previous response (x-cursor response header)
Path Parameters
unique portal id (provided by Magna)
Query Parameters
wallet address to get allocations for
staking pool id
Response
Ok
unique stake id
number of tokens staked
number of claimable token rewards
number of withdrawable tokens
stake status
Available options:
PENDING, UNSTAKED, ACTIVE, FAILED staking pool id
staking date
Example:
{
"stakes": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"poolId": "123e4567-e89b-12d3-a456-426614174001",
"status": "ACTIVE",
"amount": "100",
"claimable": "100",
"withdrawable": "0",
"createdAt": "2024-01-01T00:00:00Z",
"pendingWithdraws": [
{
"amount": "100",
"unlockAt": "2024-01-01T00:00:00Z",
"type": "CLAIM_REWARDS"
}
]
}
]
}