Get latest algorithm data (code, binarys and advances)
Notes
-
Query parameter <block_id> must be the latest block. Use /get-block endpoint
-
player_details is a map of <player_id> to PlayerDetails
Query parameters
Response
Success
Example response
{
"codes": [
{
"id": "c002_a001",
"details": {
"name": "clarke_wright",
"challenge_id": "c002",
"algorithm_id": "c002_a001",
"fee_paid": "123456789123456789"
},
"block_data": {
"num_qualifiers_by_track_by_player": {
"n=100": {
"0x1234...": 3,
"0x5678...": 5
},
"n=200": {
"0x1234...": 3,
"0x5678...": 4
}
},
"adoption": "123456789123456789",
"reward": "123456789123456789"
}
}
],
"advances": [
{
"id": "c002_a001",
"details": {
"challenge_id": "c002"
},
"state": {
"vote_tally": {
"true": "123456789123456789",
"false": "123456789123456789"
}
},
"block_data": {
"adoption": "123456789123456789",
"reward": "123456789123456789"
}
}
],
"binarys": [
{
"algorithm_id": "c002_a001"
}
]
}Changes
Changed in 10 of the 34 revisions of this API.31623
- ●
removed the optional property
namesfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
player_detailsto the response with the200statusresponse-optional-property-added
- ●
- ●
removed the optional property
codes/items/block_data/num_qualifiers_by_playerfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
codes/items/block_data/num_qualifiers_by_track_by_playerto the response with the200statusresponse-optional-property-added
- ●
- ●
removed the optional property
algorithmsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
binariesfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
binarysto the response with the200statusresponse-optional-property-added
- ○
added the optional property
codesto the response with the200statusresponse-optional-property-added
- ○
the
advances/items/idresponse's property pattern was changed from^c[0-9]{3}_b[0-9]{3}$to^c[0-9]{3}_a[0-9]{3}$for the status200response-property-pattern-changed
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
codes/items/block_data/num_qualifiers_by_player/additionalProperties/response's property type/format changed frominteger/uint32tointeger/uint64for status200response-property-type-changed
- ▲
- ●
removed the optional property
algorithms/items/details/breakthrough_idfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
breakthroughsfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
advancesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
algorithms/items/details/advance_idto the response with the200statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
breakthroughs/items/state/round_votes_talliedto the response with the200statusresponse-optional-property-added
- ○
added the optional property
breakthroughs/items/state/round_voting_startsto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
namesto the response with the200statusresponse-optional-property-added
- ○
- ▲
the
algorithms/items/block_data/adoptionresponse's property type/format changed frominteger/uint256tostring/for status200response-property-type-changed
- ▲
the
algorithms/items/block_data/rewardresponse's property type/format changed frominteger/uint256tostring/for status200response-property-type-changed
- ●
removed the optional property
algorithms/items/block_data/round_earningsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
algorithms/items/codefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
algorithms/items/details/tx_hashfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
block_detailsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
block_idfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
algorithms/items/details/breakthrough_idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
algorithms/items/details/fee_paidto the response with the200statusresponse-optional-property-added
- ○
added the optional property
algorithms/items/details/typeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
algorithms/items/state/round_activeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
binariesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
breakthroughsto the response with the200statusresponse-optional-property-added
- ○
the
algorithms/items/block_data/adoptionresponse's property pattern^[0-9]+$was added for the status200response-property-pattern-added
- ○
the
algorithms/items/block_data/rewardresponse's property pattern^[0-9]+$was added for the status200response-property-pattern-added
- ○
the
algorithms/items/idresponse's property pattern^c[0-9]{3}_a[0-9]{3}$was added for the status200response-property-pattern-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the optional property
wasmsfrom the response with the200statusresponse-optional-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
removed the optional property
advancesfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
binarysfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
codesfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
player_detailsfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
algorithmsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
block_detailsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
block_idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
wasmsto the response with the200statusresponse-optional-property-added
This revision also has 73 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●