pub enum Reference {
Optimistic,
NearFinal,
Final,
AtBlock(u64),
AtBlockHash(CryptoHash),
}Expand description
A reference to a specific block. This type is used to specify the block for most queries.
It represents the finality of a transaction or block in which transaction is included in. For more info go to the NEAR finality docs.
Variants§
Optimistic
Optimistic finality. The latest block recorded on the node that responded to our query (<1 second delay after the transaction is submitted).
NearFinal
Near-final finality. Similarly to Final finality, but delay should be roughly 1 second.
Final
Final finality. The block that has been validated on at least 66% of the nodes in the network. (At max, should be 2 second delay after the transaction is submitted.)
AtBlock(u64)
Reference to a specific block.
AtBlockHash(CryptoHash)
Reference to a specific block hash.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more