Partnership
Get aggregated information about staking for specific user. Requires associated x-api-key.
get/v1/partnership/staking/{master_address}/{address}
Request
- Base URLhttps://backend.swap.coffee
- Auth
- none
- or API key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
master_addressstring required
Example:EQCMtrnKhK82Yw6xHrLm_rJLkMYxeYIilhdmn6BnVGZ1PnBM
addressstring required
Example:UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
Response
Aggregated staking info
Example response
{
"locked_tokens": [
{
"token_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH"
}
],
"paid_rewards": [
{
"token_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH"
}
],
"positions": [
{
"locked_asset_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH",
"earned_rewards": [
{
"token_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH"
}
]
}
]
}Changes
No recorded changes to this operation across all 7 revisions of this API.