api

package
v0.0.0-...-477c745 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetABlock

func GetABlock(keymr string) (interfaces.IAdminBlock, error)

func GetDBlock

func GetDBlock(keymr string) (interfaces.IDirectoryBlock, error)

func GetDBlockByHeight

func GetDBlockByHeight(height uint32) (interfaces.IDirectoryBlock, error)

func GetDBlockHead

func GetDBlockHead() (string, error)

func GetEBlock

func GetEBlock(keymr string) (interfaces.IEntryBlock, error)

func GetECBalance

func GetECBalance(ecPublicKey string) (int64, error)

func GetECBlock

func GetECBlock(keymr string) (interfaces.IEntryCreditBlock, error)

func GetEntry

func GetEntry(hash string) (interfaces.IEBEntry, error)

func GetFBlock

func GetFBlock(keymr string) (interfaces.IFBlock, error)

func GetFactoidBalance

func GetFactoidBalance(factoidPublicKey string) (int64, error)

func GetMerkleRootOfDBlockWindow

func GetMerkleRootOfDBlockWindow(height, size uint32) (interfaces.IHash, error)

TODO: move calculation of the Merkle root for a window of blocks to a new function in factomd/primitives package when creating factomd "anchor" RPC call GetMerkleRootOfDBlockWindow calculates a Merkle root for all Directory Blocks from height to (height - size + 1)

func GetRaw

func GetRaw(keymr string) ([]byte, error)

func SetServer

func SetServer(serverAddress string)

Types

type DBlockHead

type DBlockHead struct {
	KeyMR string
}

type Data

type Data struct {
	Data string
}

Jump to

Keyboard shortcuts

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