hyperion-history-api icon indicating copy to clipboard operation
hyperion-history-api copied to clipboard

/v1/history/get_transaction is not working

Open YuXiaoCoder opened this issue 2 years ago • 0 comments

I try to request the official node to get the data

curl -s -X POST -H 'Content-Type: application/json' -d '{"id": "543e68baf877c5a64efdafe176bcc5fc2923cef5f91314eacb5e6705a5e1db54"}' https://eos.hyperion.eosrio.io/v1/history/get_transaction

But my node returns the following information

curl -s -X POST -H 'Content-Type: application/json' -d '{"id": "543e68baf877c5a64efdafe176bcc5fc2923cef5f91314eacb5e6705a5e1db54"}' http://127.0.0.1:7000/v1/history/get_transaction | jq

{
  "code": 500,
  "message": "Internal Service Error",
  "error": {
    "code": 3040011,
    "name": "tx_not_found",
    "what": "The transaction can not be found",
    "details": [
      {
        "message": "Transaction 543e68baf877c5a64efdafe176bcc5fc2923cef5f91314eacb5e6705a5e1db54 not found in history and no block hint was given",
        "file": "",
        "line_number": 1,
        "method": "get_transaction"
      }
    ]
  },
  "query_time_ms": 2.608
}

who can help me, thanks you

YuXiaoCoder avatar Jan 12 '23 14:01 YuXiaoCoder