Skip to content

Instantly share code, notes, and snippets.

@echa
Created August 6, 2019 11:49
Show Gist options
  • Save echa/fae203475c9f00280167fcb4b8a5c0e7 to your computer and use it in GitHub Desktop.
Save echa/fae203475c9f00280167fcb4b8a5c0e7 to your computer and use it in GitHub Desktop.
Tezos successful delegate registration by origination

Account tz1WUVANirUcv3rSNNWxcv8GwMUAnH9mDnjn tzscan

History

  • activated by origination + delegation in block 16,861 link
  • was active in cycles 6-17, grace period 17
  • has baking/endorsing rights in cycles 13-24
  • was explicitly deactivated in blocks 73728 (17), 77824, 81920, 86016, 90112, 94208, 98304, 102400, 106496, 110592, 114688, 118784, 122880, 126976, 131072, 135168, 139264, 143360, 147456, 151552, 155648, 159744, 163840, 167936, 172032, 176128, 180224, 184320, 188416, 192512 (46)
  • was inactive in cycles 18-46
  • has sent tx in cycles 5, 8, 12, 13, 16, 21, 23, 24, 27, 29, 34, 35, 43, 47, 49, 68, 83, 85, 97, 99, 106, 113, 115, 118
  • has received tx in cycles 4, 6, 47
  • was reactivated in block 195,097 (47) by receiving a tx
  • was active in cycles 47-58, grace period 58
  • has baking/endorsing rights in cycles 54-65
  • was explicitly deactivated in block 241,664 (58)

Useful API Calls

Use the Blockwatch/TzStats API to fetch and filter on-chain data. We store all data in tables that are indexed/filterable by every field. Docu is at https://blockwatch.cc/docs/api

Hints for using the API

  • default limit for results is 500, to increase append limit=N as query arg (max is 50,000)
  • some results can be huge, so you may want to filter and pick only columns you need with columns=a,b,c
  • default is unkeyed JSON arrays, to insert field names add verbose=1
  • replace .json with .csv to download a CSV file
# fetch all operations sent by an account
https://api.tzstats.com/tables/op.json?sender=tz1WUVANirUcv3rSNNWxcv8GwMUAnH9mDnjn&limit=10000

# fetch all baking/endorsing rights for the account
https://api.tzstats.com/tables/rights.json?delegate=tz1WUVANirUcv3rSNNWxcv8GwMUAnH9mDnjn&limit=10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment