Stakes API
GET
/stakes
List stake accounts.
Query:
owner, agent_pda, limit, offset
GET
/stakes/:pda
Get a single stake account by PDA.
Example Responses
GET /stakes
Response
{
"total": 89,
"limit": 50,
"offset": 0,
"stakes": [
{
"pda": "StakePDA...",
"agent_pda": "BKq8rN4EwJQG3R9FnLhSGqJ2tNkh8cVRxvNApj7hbfQM",
"owner": "7xKXtg2CW87d97TXJSDpHD4vMvnQ1985FchZRgCd9oPr",
"deposited_amount": 1000000000,
"locked_amount": 0,
"pending_withdrawal": 0
}
]
}
GET /stakes/:pda
Response
{
"pda": "StakePDA...",
"agent_pda": "BKq8rN4EwJQG3R9FnLhSGqJ2tNkh8cVRxvNApj7hbfQM",
"owner": "7xKXtg2CW87d97TXJSDpHD4vMvnQ1985FchZRgCd9oPr",
"deposited_amount": 1000000000,
"locked_amount": 0,
"pending_withdrawal": 0
}