1

"http://localhost:8732/chains/main/blocks/BL8uS3sAr7UgtNryr4oyY9dJv4Nbds36UzvWbY6HRLvG1EiwoLA/operations" "http://localhost:8732/chains/main/blocks/BLFFLhrVqdTw1HCagqKBbuAoSFQ8dZwyJgWqNCWgFvisbr8h8ff/operations"

Why is the second one not returning results? rpc interface name: GET ..//operations

I suspect that the block before it was too long can not find the data with this interface.

Is there any other interface to query all transactions in a block?

  • 1
    What mode are you using? Full or rolling? – Klassare Aug 3 at 15:40
  • use default,full mode – taozi Aug 29 at 6:38
1

Your node seems to be running in either full mode or rolling mode. Our public node is running in full mode with a snapshot taken at level 532481 and it also does not find the block.

Block explorers need to run an archival node to provide their service. The block in question is found by TzScan and you can see that it was baked at level 51856 - well before the checkpoint of our node.

To answer your second question: you need to either run a node in archival mode, use a block explorer or query an API like the one from TzScan.

  • Is the archival mode better than full mode? Need to resynchronize? – taozi Aug 29 at 6:41
  • It depends on your needs. If you only need the node for baking or posting transactions, then running it in full mode is perfectly fine. – cryptodad Aug 29 at 6:53
  • If you need to regularly query your node for data that goes back in time more than 5 cycles, then yes, you would need running it in archive mode (if you have sufficient disk space). – cryptodad Aug 29 at 7:01
  • “BMGi65PWTKoUbcs5hVm83LciAznJSQsKTrRLZ7HiLBNnoxgsJAs”, I can't find the data for this block.level is 583183,I checked the checkpoint of the node is 565249.Why can't I find it after the checkpoint?Node synchronization is also normal (data yesterday). – taozi Aug 30 at 3:04
  • This is the inquiry yesterday. Command:”tezos-client rpc get /chains/main/blocks/head/header” result: { "protocol": "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd", "chain_id": "NetXdQprcVkpaWU", "hash": "BKuTCRSUMSmGnQZRwwspDHNZBwkPW1S1GzfSkcyUC8XxXsEhoNw", "level": 585257, "proto": 4, "predecessor": "BLzvArdaSwFWaoiA8aqe3BRixELhwW3DyRWCRAgmb1Akpt4s6hk", "timestamp": "2019-08-29T12:28:06Z", "validation_pass": 4, … } – taozi Aug 30 at 3:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.