Skip to main content
9 votes

How is a block defined in solana terminology

A slot is a period of time where the predetermined leader may propose a bundle of transactions that it attests to being valid as per consensus. Whether that bundle ends up being a block depends upon ...
trent.sol's user avatar
  • 4,405
6 votes
Accepted

What are slots used for?

Slots and Epoch are simply units of time on Solana. A slot is the smallest unit, and 432000 of it makes an Epoch. A slot can then either contain a block or not (skipped slot). A slot refers to the ...
Ademola's user avatar
  • 3,813
4 votes
Accepted

Why is the amount of slots doesn't match the amount of blocks on mainnet

Slots are a unit of time during which a validator may act as leader and produce a block. There are a variety of circumstances that can lead to this not actually happening, leading to a skipped slot. ...
trent.sol's user avatar
  • 4,405
4 votes
Accepted

Convert slot to timestamp in Geyser

Stream blocks too, they have a block_time field. From that you can link the block_time to account update slots. It may be necessary to backfill via RPC for account updates that occurred prior to the ...
trent.sol's user avatar
  • 4,405
2 votes

Missing slots with getBlock

So long as a copy of a ledger that contains those shreds exists they can be recovered. It seems that these should have those blocks: https://storage.googleapis.com/mainnet-beta-ledger-us-ny5/1595200/...
Joe Abanto's user avatar
2 votes

Are there any downsides to using unix_timestamp vs slot to time lock programs?

The two approaches are roughly equivalent in an ideal world, however, unix_timestamp is based on stake weighted median vote timestamps with drift capped by slot time estimate from ...
Barebox's user avatar
  • 176
2 votes
Accepted

How to subscribe to slot with Rust?

use wss://api.devnet.solana.com as endpoint
vicyyn's user avatar
  • 4,043
2 votes
Accepted

what is the average total prioritization fee per slot currently

There's an analytics dashboard that shows how prioritization fees are being used on the network: https://dune.com/crypto_notte/solana-additional-fee-analysis
Jon C's user avatar
  • 14.6k
1 vote
Accepted

Error fetching block: ReferenceError: GetBlockConfig is not defined

This looks like a syntax error in JavaScript. Try defining the object separately as: const GetBlockConfig = { commitment: 'finalized', maxSupportedTransactionVersion: 0, rewards: false, ...
Jon C's user avatar
  • 14.6k
1 vote
Accepted

Is it possible to use the latest blockhash to get transaction data for the block its for?

The getBlock RPC method takes in a slot number, so you can't use the blockhash as an input. You'll need to get the current confirmed slot using getSlot https://solana.com/docs/rpc/http/getslot, ie: $ ...
Jon C's user avatar
  • 14.6k
1 vote

Listening to all transactions on the blockchian

You have the main ways right, through blockSubscribe and through polling with getBlocks. If you have a validator running, then you can also setup a Geyser plugin to stream all blocks directly to some ...
Jon C's user avatar
  • 14.6k
1 vote

Mainnet node lags behind after migration to v1.16.17

There could be several reasons for this. v1.16.17 has been problematic for servers with lower memory, but this doesn't seem to apply to you. The 1st thing to do is to make sure you are following the ...
Serban's user avatar
  • 1,271
1 vote

Meaning of slotSubscribe

Subscribe to receive notification anytime a slot is processed by the validator Parameters: None Results: integer - subscription id (needed to unsubscribe) Request: { "jsonrpc": "2.0&...
vicyyn's user avatar
  • 4,043
1 vote

Missing slots with getBlock

Joe had it mostly covered but to be explicit: Were these slots lost, so nothing can be done to recover them? No, they were not lost. They just weren't loaded into our bigtable instance. Will these ...
steviez's user avatar
  • 576
1 vote

How are blocks validated long before they are added to the chain?

The tldr of it is that the VDF is used as a proof of history mechanism. Assuming a particular validator, leader or not, has the same starting state and receives the same transactions as input, they ...
zfedoran's user avatar
  • 761
1 vote
Accepted

TransactionExpiredBlockheightExceededError - how should we handle this on the front-end

This is a known bug that you can follow along with here: https://github.com/solana-labs/solana/issues/25955
steveluscher's user avatar
  • 2,405
1 vote

TransactionExpiredBlockheightExceededError - how should we handle this on the front-end

This is a bug. I'd suggest you make your experience known in the Github issue
trent.sol's user avatar
  • 4,405
1 vote

Confirmations vs commitment .how to to understand RpcResponse from a confirmation

Reasons that confirmTransaction might throw a block height exceeded error when, in fact, the transaction was confirmed: the signature is so old that it’s fallen out of the status cache. The confirm ...
steveluscher's user avatar
  • 2,405
1 vote

How do I get Onchain, the timestamp in milliseconds at which a specific slot was finalized

You can't. The highest resolution on-chain wall timestamp available today is one second and available in the unix_timestamp field of the Clock sysvar. Sampling theory states, via Nyquist, that there ...
trent.sol's user avatar
  • 4,405

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