EOS-Nation / bpvalidate

Tools to validate BPs have set up their public configuration correctly
MIT License
20 stars 19 forks source link

Make sure endpoints return content #1

Closed matthewdarwin closed 5 years ago

matthewdarwin commented 6 years ago

All public endpoints should have filters so as to return useful content. Check these filters are enabled.

Example => doesn't return any content

$ curl -d '{"pos":-1,"offset":-20,"account_name": "eosio.ram"}' -X POST https://api.eosn.io/v1/history/get_actions
{"actions":[],"last_irreversible_block":3056616}

Example => returns content

$ curl -d '{"pos":-1,"offset":-20,"account_name": "eosio.ram"}' -X POST http://api.eosnewyork.io/v1/history/get_actions | jq .
{
  "actions": [
    {
      "global_action_seq": 8374113,
      "account_action_seq": 292302,
      "block_num": 3056922,
      "block_time": "2018-06-28T08:51:02.500",
      "action_trace": {
        "receipt": {
          "receiver": "eosio.token",
...
}
matthewdarwin commented 6 years ago

only if the type of node is "full"

matthewdarwin commented 6 years ago

curl http://eos.greymass.com/v1/history/get_transaction -d '{"id":"f8b79a5847e0a0ca30f3602727516d6a6998844cd569ed5eb4691b4c38851b7c"}'

matthewdarwin commented 5 years ago

implemented.