GET
Get latest data for a specific player
Changed onNotes
-
Query parameter <block_id> must be the latest block. Use /get-block endpoint
-
Query parameter <player_id> must be a valid player id
-
Only includes active deposits
get/get-player-data
Request
- Base URLhttps://mainnet-api.tig.foundation
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
block_idstring required
player_idstring required
Id of player
Response
Success
Example response
{
"player": {
"state": {
"total_fees_paid": "123456789123456789",
"available_fee_balance": "123456789123456789"
},
"block_data": {
"reward_by_type": {
"algorithm": "123456789123456789",
"benchmarker": "123456789123456789",
"advance": "123456789123456789",
"delegator": "123456789123456789"
},
"deposit_by_locked_period": [
"123456789123456789"
],
"weighted_deposit": "123456789123456789"
}
},
"deposits": [
{
"details": {
"amount": "123456789123456789"
}
}
],
"topups": [
{
"details": {
"amount": "123456789123456789"
}
}
]
}Changes
- breaking
the response property
//became nullable for the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the
//response's property pattern^0x[a-f0-9]{40}$was removed for the status
- breaking
- warning
removed the optional property
///from the response with the status - info
added the optional property
///to the response with the status
- warning