blocklytics

package
v0.0.0-...-c1ed682 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	ID               graphql.String
	ParentHash       graphql.String
	UnclesHash       graphql.String
	StateRoot        graphql.String
	ReceiptsRoot     graphql.String
	TransactionsRoot graphql.String
	Number           graphql.BigInt
	Timestamp        graphql.BigInt
	Author           graphql.String
	Difficulty       graphql.BigInt
	TotalDifficulty  graphql.BigInt
	GasUsed          graphql.BigInt
	GasLimit         graphql.BigInt
	Size             graphql.BigInt
}

Block represents graphql model of block

type BlocklyticsClient

type BlocklyticsClient struct {
	// contains filtered or unexported fields
}

func NewBlocklyticsClient

func NewBlocklyticsClient(token string) (bl BlocklyticsClient)

NewBlocklyticsClient returns Blocklytics

func (*BlocklyticsClient) Blocks

func (bl *BlocklyticsClient) Blocks(ctx context.Context, count, skip, bn int, order string) (blocks []Block, err error)

Blocks query of blocks by given query, the order should looks like [column asc|desc]

func (*BlocklyticsClient) BlocksByTimestamp

func (bl *BlocklyticsClient) BlocksByTimestamp(ctx context.Context, count, skip, timestamp int, order string) (blocks []Block, err error)

BlocksByTimestamp query of blocks by given query, the order should looks like [column asc|desc]

Jump to

Keyboard shortcuts

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