Hot answers tagged

2

You must wait for a block height to be lower than the current Last Irreversible Block (also known as LIB) to be considered irreversible. With the quick speed of the network, it is common to see microforks that occur - often when ProducerB starts producing its schedule off of Block 11 of ProducerA's round. This can happen due to latency conditions because of ...


1

Yes, it is possible. You can view the related EOS-JS documentation at the following link: https://github.com/EOSIO/eosjs/blob/e53c0e0bf791c22818ee3c9ea3592bcf1c0877ec/docs/2.-Transaction-Examples.md#create-new-account-multiple-actions Create New Account (multiple actions) const result = await api.transact({ actions: [{ account: 'eosio', name: '...


1

There are several public nodes, since this is a distributed project, there is no single point of failure or central web site that documents them. There are several places where you can get a list of such services and these lists are dynamic in nature. Hopefully in the future this will change less frequently but usually it depends on the top block producers. ...


1

In the EOSIO ecosystem, the CPU, RAM, and NET are all provided to the chain by the block producers. The EOS tokens gives you access to the staking resources (CPU & NET = Bandwidth) which are replenished after an amount of time and then there is RAM (on-chain storage). Keep in mind that developers have to purchase enough RAM to run a smart contract. ...


1

When the blockchain operates normally, you get a new block every half a second. So you can start with any block you want and calculate the diff in seconds times 2 to get the number of blocks to diff from your initial query. Might be off by just a few since tge real world is not mathematically precise, especially when dealing with time and networks.


1

Looks like dfuse comes to the rescue. The /v0/block_id/by_time endpoint can be used as follows (example from the link): curl -H "Authorization: Bearer $TOKEN" \ "https://mainnet.eos.dfuse.io/v0/block_id/by_time?time=2019-03-04T10:36:14.5Z&comparator=gte" Have to convert Unix time to ISO8601 extended format, but that can be automated too.


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