7
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 ...
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) ...
6
votes
Accepted
Genesis Balances
1) Here they are
$ ./tezos-client rpc get /chains/main/blocks/1/context/contracts | grep KT1
"KT1WPEis2WhAc2FciM2tZVn8qe6pCBe9HkDp",
"KT1W148mcjmfvr9J2RvWcGHxsAFApq9mcfgT",
"...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
"...
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:...
1
vote
Choosing to validate a block or not & block hash ceation
I have block A, block B and block C. A baker is elected to bake the block B and C.
You first have the bakers who are supposed to bake at given levels and rounds, and then later you may have or not ...
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.
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 ...
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
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 ...
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). ...
Only top scored, non community-wiki answers of a minimum length are eligible