Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Can't query transaction data #73

Closed
Fraccaman opened this issue Dec 27, 2023 · 1 comment
Closed

Can't query transaction data #73

Fraccaman opened this issue Dec 27, 2023 · 1 comment

Comments

@Fraccaman
Copy link
Contributor

Fraccaman commented Dec 27, 2023

Running the indexer works but querying transaction data via /tx/:hash returns an error. Below the command im running

  • assuming indexer + server is running on testnet 15
    • Using the docker-compose provided (also checked that checksums.json is the correct one)
  • query block 301 curl 0.0.0.0:30303/block/height/301 | jq .
{
  "block_id": "2b1f263011cba260b415518c7ee0f7531ff8134afd728997c459c6392d1e3a42",
  "header": {
    "version": {
      "block": "11",
      "app": "11"
    },
    "chain_id": "public-testnet-15.0dacadb8d663",
    "height": "301",
    "time": "2023-12-18T17:42:00.013614061Z",
    "last_block_id": {
      "hash": "DBCA458B8D935004CF93E7C87EA5E73D0B3B0B122DEF778F8C0A1255DD63FC27",
      "parts": {
        "total": 1,
        "hash": "D9B594C6E86CA270006A486F194B69EFD50A2408AC6C0F5E90E7A07849C46051"
      }
    },
    "last_commit_hash": "AAA55B7D25A22BA351EA668B95D959D29EDE1E7F9455B704A4A0B7985F650FC1",
    "data_hash": "D28018D2B3C0296448315A4547D1350E4DD123DB43E56B98B71CB383DC302FD7",
    "validators_hash": "2544098622D91AD012F0AE0CE26597426C9215BF8543C3BD6DA816F4FFF31CE5",
    "next_validators_hash": "2544098622D91AD012F0AE0CE26597426C9215BF8543C3BD6DA816F4FFF31CE5",
    "consensus_hash": "4B53C13521D2126D4E199E783963D0E8B2729F143EB01A7F3817A1D1E079193F",
    "app_hash": "FCC7E8FC979CFE20243FFC12C8A114BF09B218BA8E7B09FCAF3C1E267602E2D2",
    "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
    "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
    "proposer_address": "4E4519DD9B44D7A0CFB620F226DD215874E517A7"
  },
  "last_commit": {
    "height": "300",
    "round": "0",
    "block_id": {
      "hash": "DBCA458B8D935004CF93E7C87EA5E73D0B3B0B122DEF778F8C0A1255DD63FC27",
      "parts": {
        "total": 1,
        "hash": "D9B594C6E86CA270006A486F194B69EFD50A2408AC6C0F5E90E7A07849C46051"
      }
    }
  },
  "tx_hashes": [
    {
      "tx_type": "Wrapper",
      "hash_id": "297320249d003984a91376a6c95aa1db1cc15f8abfb5b213629ea87ee01ebd41"
    },
    {
      "tx_type": "Wrapper",
      "hash_id": "516d755f7adb1d34adffd5f24ee8f1b806e80f4212af416e7a65b77b76b62c77"
    },
    {
      "tx_type": "Wrapper",
      "hash_id": "b3c5c098ab8edbfd287254b0a57024764312a769a2a4e0c86fcad3f6d664f985"
    },
    {
      "tx_type": "Wrapper",
      "hash_id": "4bb91ab647a11debd744acf5d22a89be3dcd3d924bca9271976c99245f02fd5e"
    }
  ]
}
  • query the first tx in the block curl 0.0.0.0:30303/tx/297320249d003984a91376a6c95aa1db1cc15f8abfb5b213629ea87ee01ebd41 | jq .
{
  "Error": "Invalid Transaction data"
}

The same happen with Decrypted transactions. Any hint on what im doing wrong?

@neithanmo
Copy link
Collaborator

#74 fixes this issue

@rllola rllola closed this as completed Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants