block

package
v0.0.0-...-b9e1d45 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: LGPL-3.0 Imports: 2 Imported by: 4

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 types.BlockHeight) 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
JackTT - Gopher 🇻🇳