Hot answers tagged

14

The two test networks move at different speeds. Zeronet is much faster than alphanet. This makes a difference in how quickly you can test different scenarios like baking. In zeronet, each cycle is 128 blocks, and each block has a target time of 20 seconds. So, each cycle should complete in roughly 42.66 minutes, although they may take longer if bakers miss ...


14

Unfortunately there is no way to directly query just the delegator's reward from TzScan API. But you can easily use this API call with some extra calculations: //This is what the baker got var total_reward = rewards + extra_rewards - losses; //This is the delegator's share in the staking balance var share = balance / staking_balance; //This is the ...


12

TzScan has a service for that, but only for the current value: https://api1.tzscan.io/v1/supply returns { "dls":"76431859801260", "foundation":"76431859801260", "early_bakers":"3156502294100", "contributors":"608297709519372", "unfrozen_rewards":"19546676770764", "missing_revelation":0, "revelation_rewards":968500000, "...


7

After inspecting TzScan's alphanet frontend, i've been able to extract the following curl request: curl 'https://api.alphanet.tzscan.io/v1/operation/ooZXgbKsbHDwMof1mfRxgWXDsjGVZ4FMbwoJdVDyB3nzEAJVsBh' -H 'Pragma: no-cache' -H 'Origin: https://alphanet.tzscan.io' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H '...


6

You are sending your query to the wrong address - it should be (note you are missing "chain/main/"): https://alphanet-node.tzscan.io/chains/main/blocks/head/context/contracts/<contract_id>/big_map_get I recommend using the https version too. I have successfully queried this endpoint with a smart contract of my own and verified the response: eztz....


6

The current protocol does not keep track of a tally of all tez on the network. It would be a good idea to do so, as it permits computing proportional reward, it can serve as a canari against money printing bugs, and it can be used to refine the governance model. Since the protocol doesn't keep track of it, there's no node RPC that will give you that ...


6

When you originate a KT1, you can set a delegate. That is why we split the delegation tab in two sections : a delegation operation a delegation through an origination


6

Alphanet is the test network for tezos users and developers on the chain. It runs the exact code of mainnet. It only differs by a few constants to run faster. Currently: time_between_block/2, blocks_per_cycle/2, blocks_per_voting_period/4, ... This is also meant to enforce Do not hardwire constants in your code, they may change! :-) Zeronet is the test ...


5

I think this will help you find what you're looking for. https://tzstats.com/docs/api/index.html#introduction. I've searched this resource and found numerous endpoints related to delegates, rewards, account hashes, delegation, etc. EDIT: Yesterday, they've also announced plans to go open-source. https://tzstats.com/blog/next-gen-blockchain-indexing-for-...


4

You can use the operations endpoint, filtering for transactions: https://api1.tzscan.io/v1/operations/$address?type=Transaction Obviously swap address for the address in question. You can retreive the amount, destination, source, fee, gas limit, storage limit, if the tx was internal and also if the tx failed or not.


4

Here is my attempt to explain why it is not surprising that we would see many more double bakes than endorsements: Under very nice conditions, with a deterministic signature scheme (like ed25519), you will not double endorse. Even if you fail to protect against double endorsements, if you sign endorsements for the same block twice, they are the very same ...


3

I would say (99.99% sure) that double endorsement didn't happen until now. But, I may be wrong !


3

This is how delegator rewards work - when you are looking at the delegator rewards for a given cycle (e.g. cycle 79), the balance displayed is that from the snapshot, which occurred 7 cycles prior. This is because that is the balance used when calculating the bakers stake which produced the rewards (so it makes it easier for bakers to calculate % rewards of ...


3

This request is using the balance updates that we have disabled on alphanet. I would recommend to use the node rpc: https://alphanet-node.tzscan.io/chains/main/blocks/head/context/contracts/tz1XgTzqC9JJNds5isd95VPaRHpVHpFX8zs2/balance But this also gives 0 so your balance is actually of 0.


3

The Testnet formerly known as "Alphanet" is now called "Babylonnet". Public node address: https://rpcalpha.tzbeta.net/ Future Testnets will get the name of the actual protocol. More Infos here


3

Maybe this tutorial can help? http://www.ocamlpro.com/2018/11/15/an-introduction-to-tezos-rpcs-a-basic-wallet/


2

For generating tz1 address you don't need node. Moreover, you don't need internet connection for generating address) You need only some library such as eztz, sotez or ConseilJS You can find address generation example (for eztz) here


2

The original TzScan OS available at https://gitlab.com/tzscan/tzscan does not compile easily for the moment unfortunately. You could ask help there. Otherwise, you can also try an installer script of TzScan OS, available at https://gitlab.com/tezos-southeast-asia/tzscaninstaller . Note that this uses a fork of TzScan OS, available at https://gitlab.com/...


2

Thanks to our friend Klassare, who helped me in Riot channel, we've got an answer: https://api3.tzscan.io/v3/delegated_contracts/[account]?p=0&number=50


2

That should help you (Example TzScan API): https://api6.tzscan.io/v3/delegator_rewards_with_details/KT1BNVf6f359fNbokCKMXuKNmpzUy3Nwugyj Just put in one of the KT1 adresses and it will show you the total rewards per cycle, for the associated tz1 address.


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