GET

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

get/get-algorithms

Query parameters

block_idstring required

Response

Success

player_detailsobject

Map of player_id to PlayerDetails

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 names from the response with the 200 status

      response-optional-property-removed

    • added the optional property player_details to the response with the 200 status

      response-optional-property-added

    • removed the optional property codes/items/block_data/num_qualifiers_by_player from the response with the 200 status

      response-optional-property-removed

    • added the optional property codes/items/block_data/num_qualifiers_by_track_by_player to the response with the 200 status

      response-optional-property-added

  • 1b7c2b8a974d23See the full diff
    • removed the optional property algorithms from the response with the 200 status

      response-optional-property-removed

    • removed the optional property binaries from the response with the 200 status

      response-optional-property-removed

    • added the optional property binarys to the response with the 200 status

      response-optional-property-added

    • added the optional property codes to the response with the 200 status

      response-optional-property-added

    • the advances/items/id response'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 status 200

      response-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 from integer/uint32 to integer/uint64 for status 200

      response-property-type-changed

    • removed the optional property algorithms/items/details/breakthrough_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property breakthroughs from the response with the 200 status

      response-optional-property-removed

    • added the optional property advances to the response with the 200 status

      response-optional-property-added

    • added the optional property algorithms/items/details/advance_id to the response with the 200 status

      response-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_tallied to the response with the 200 status

      response-optional-property-added

    • added the optional property breakthroughs/items/state/round_voting_starts to the response with the 200 status

      response-optional-property-added

    • added the optional property names to the response with the 200 status

      response-optional-property-added

  • f857f902a23c259See the full diff
    • the algorithms/items/block_data/adoption response's property type/format changed from integer/uint256 to string/ for status 200

      response-property-type-changed

    • the algorithms/items/block_data/reward response's property type/format changed from integer/uint256 to string/ for status 200

      response-property-type-changed

    • removed the optional property algorithms/items/block_data/round_earnings from the response with the 200 status

      response-optional-property-removed

    • removed the optional property algorithms/items/code from the response with the 200 status

      response-optional-property-removed

    • removed the optional property algorithms/items/details/tx_hash from the response with the 200 status

      response-optional-property-removed

    • removed the optional property block_details from the response with the 200 status

      response-optional-property-removed

    • removed the optional property block_id from the response with the 200 status

      response-optional-property-removed

    • added the optional property algorithms/items/details/breakthrough_id to the response with the 200 status

      response-optional-property-added

    • added the optional property algorithms/items/details/fee_paid to the response with the 200 status

      response-optional-property-added

    • added the optional property algorithms/items/details/type to the response with the 200 status

      response-optional-property-added

    • added the optional property algorithms/items/state/round_active to the response with the 200 status

      response-optional-property-added

    • added the optional property binaries to the response with the 200 status

      response-optional-property-added

    • added the optional property breakthroughs to the response with the 200 status

      response-optional-property-added

    • the algorithms/items/block_data/adoption response's property pattern ^[0-9]+$ was added for the status 200

      response-property-pattern-added

    • the algorithms/items/block_data/reward response's property pattern ^[0-9]+$ was added for the status 200

      response-property-pattern-added

    • the algorithms/items/id response's property pattern ^c[0-9]{3}_a[0-9]{3}$ was added for the status 200

      response-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 wasms from the response with the 200 status

      response-optional-property-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 5523952546dd44See the full diff
    • removed the optional property advances from the response with the 200 status

      response-optional-property-removed

    • removed the optional property binarys from the response with the 200 status

      response-optional-property-removed

    • removed the optional property codes from the response with the 200 status

      response-optional-property-removed

    • removed the optional property player_details from the response with the 200 status

      response-optional-property-removed

    • added the optional property algorithms to the response with the 200 status

      response-optional-property-added

    • added the optional property block_details to the response with the 200 status

      response-optional-property-added

    • added the optional property block_id to the response with the 200 status

      response-optional-property-added

    • added the optional property wasms to the response with the 200 status

      response-optional-property-added

    This revision also has 73 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog