aggsenderrpc

package
v0.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggsenderRPC

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

AggsenderRPC is the RPC interface for the aggsender

func NewAggsenderRPC

func NewAggsenderRPC(
	logger *log.Logger,
	storage aggsenderStorer,
	aggsender aggsenderInterface,
) *AggsenderRPC

func (*AggsenderRPC) GetCertificateHeaderPerHeight

func (b *AggsenderRPC) GetCertificateHeaderPerHeight(height *uint64) (interface{}, rpc.Error)

GetCertificateHeaderPerHeight returns the certificate header for the given height if param is `nil` it returns the last sent certificate latest:

curl -X POST http://localhost:5576/ -H "Con -application/json" \
 -d '{"method":"aggsender_getCertificateHeaderPerHeight", "params":[], "id":1}'

specific height:

curl -X POST http://localhost:5576/ -H "Con -application/json" \ -d '{"method":"aggsender_getCertificateHeaderPerHeight", "params":[$height], "id":1}'

func (*AggsenderRPC) Status

func (b *AggsenderRPC) Status() (interface{}, rpc.Error)

Status returns the status of the aggsender curl -X POST http://localhost:5576/ -H "Con -application/json" \ -d '{"method":"aggsender_status", "params":[], "id":1}'

Jump to

Keyboard shortcuts

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