chainkit

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MPL-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chainkit

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

func New

func New(config schema.Config) *Chainkit

func (*Chainkit) AssignmentHandler

func (c *Chainkit) AssignmentHandler(assignmentResult nodeSchema.AssignmentResult)

func (*Chainkit) Close

func (c *Chainkit) Close()

func (*Chainkit) DownloadByPid

func (c *Chainkit) DownloadByPid(pid string, beginNonce, endNonce int64) (results []*schema.DownloadResult, err error)

Download all transactions of a process, from specified Nonce to latest transaction

func (*Chainkit) DownloadByTxid

func (c *Chainkit) DownloadByTxid(txid string) (*goarSchema.BundleItem, error)

Download a transaction

func (*Chainkit) Query

func (c *Chainkit) Query(query string) ([]byte, error)

Execute a GraphQL query

func (*Chainkit) Run

func (c *Chainkit) Run()

func (*Chainkit) Upload

func (c *Chainkit) Upload(tx goarSchema.BundleItem) error

Upload a BundleItem transaction. This function doesn't actually upload the transaction, but adds it to the upload queue and waits for batch processing before uploading

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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