block

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2021 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockCharacteristic

type BlockCharacteristic func(map[string]interface{})

BlockCharacteristic is a function type aiding with specifying a block

func BlockHash

func BlockHash(blockHash hash.CryptoHash) BlockCharacteristic

BlockHash specifies a block hash

func BlockHashRaw

func BlockHashRaw(blockHash string) BlockCharacteristic

BlockHashRaw is a variant of `BlockHash` function accepting a raw block hash (string)

func BlockID

func BlockID(blockID uint) BlockCharacteristic

BlockID specifies a block id/height

func FinalityFinal

func FinalityFinal() BlockCharacteristic

FinalityFinal specifies a block that has been validated on at least 66% of the nodes in the network (usually takes 2 blocks / approx. 2 second delay)

func FinalityOptimistic

func FinalityOptimistic() BlockCharacteristic

FinalityOptimistic specifies the latest block recorded on the node that responded to your query (<1 second delay after the transaction is submitted)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL