Hot answers tagged

7 votes

How is the hash code of blocks generated?

Take a byte representation of a particular block header: http://rpc.tzkt.io/mainnet/chains/main/blocks/head/header/raw. The format of the block header is described in the docs. Get a BLAKE2b (32bit) ...
user avatar
6 votes
Accepted

Genesis Balances

1) Here they are $ ./tezos-client rpc get /chains/main/blocks/1/context/contracts | grep KT1 "KT1WPEis2WhAc2FciM2tZVn8qe6pCBe9HkDp", "KT1W148mcjmfvr9J2RvWcGHxsAFApq9mcfgT", "...
user avatar
  • 4,399
6 votes
Accepted

How to convert bytes to an address

Those 22 bytes are: 2 bytes - encoded prefix (tz1, tz2, tz3, KT1); 20 bytes - depending on the address type: for tz-addresses it's public key hash; for KT-addresses it's hash of the origination ...
user avatar
  • 2,252
4 votes

Why did my baker lose a block?

The priority 1 baker (Foundation Baker 5) stole this baking right from you due to its higher fitness (i.e. their block received 2 more endorsements than yours, 33 to 31), as you can see here. ...
user avatar
  • 893
4 votes
Accepted

"estimated_time" on baking right is not constant

This happens when the network is running late. This estimated_time is computed on the "every baker at priority 0 will bake" hypothesis. Each time a block is baked by the baker of priority 1, it is ...
user avatar
4 votes
Accepted

Current level of block-chain

You can request the current head of your node using ./tezos-client rpc get /chains/main/blocks/head (and look for the level and hash information). Then, use your favorite block explorer to know the ...
user avatar
  • 691
3 votes

How to convert bytes to an address

Something to note from the accepted answer is that the KT1 addresses do not have a "public key hash". The hash used there is the blake2b 20 byte digest hash of the operation group hash and ...
user avatar
2 votes
Accepted

How to monitor RPC block responses for token transfers?

An example of a token I may want to track is tzBTC, which does call transfer internally - and it does show up in the RPC response. That is the answer, isn't that? :) So, you need to iterate over ...
user avatar
  • 2,252
2 votes
Accepted

Number of blocks to be considered confirmed

This depends on what assumptions one makes on the stake an attacker trying to revert a transaction/block has, on the exact question one asks, on the degree of confidence one would like to have, and on ...
user avatar
  • 883
2 votes
Accepted

Block confirmation

In 005-Babylon, fitness became a monotonically increasing number, simply representing the height of the block. Fitness is no longer calculated based on the number of endorsements within the block. "...
user avatar
  • 3,334
1 vote

Current level of block-chain

Here's my goto command. tezos-client rpc get /chains/main/blocks/head/ | jq -r '.header.level, .header.timestamp';date --iso-8601=seconds The output will look something like: 544640 2019-07-31T10:...
user avatar
1 vote

What limits the number of operations in a block?

In addition to the hard gas limit, there's a limit on the size of the block (in bytes)1. The maximum size of the list of operations in a block is 512kB2.
user avatar
  • 647
1 vote
Accepted

Can I estimate the _next_ block using the `tezos-node` RPC API?

ask tezos-node to tell me the contents of the block it would produce No, because tezos-node does not create blocks. tezos-baker-0XX is responsible for creating blocks and it does not have an RPC ...
user avatar
  • 3,334
1 vote

What are the contents of a block in Tezos?

See also here this section of the documentation: https://tezos.gitlab.io/008/proof_of_stake.html#blocks
user avatar
  • 883
1 vote
Accepted

What are the contents of a block in Tezos?

https://tezos.gitlab.io/008/rpc.html#get-block-id https://mainnet-tezos.giganode.io/chains/main/blocks/head Most fields, IMO, are semi-self-explanatory by their name depending on what you are looking ...
user avatar
  • 3,334
1 vote

How is the hash code of blocks generated?

Part 1 of my question was answered by Michael. What about the second part? Well, I just had a look at it. What I did is: extract the full series of hash codes, from block 1 to the latest (VERY LONG). ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible