Help us shape the future of Go! Take the 2026 Go Developer Survey

aggsenderrpc

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggsenderInterface

type AggsenderInterface interface {
	Info() types.AggsenderInfo
	ForceTriggerCertificate()
}

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

NewAggsenderRPC creates a new AggsenderRPC instance.

func (*AggsenderRPC) GetCertificateBridgeExits added in v0.10.0

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

GetCertificateBridgeExits returns the bridge exits for the certificate at the given height. If height is nil, returns the bridge exits of the last sent certificate.

curl -X POST http://localhost:5576/ -H "Content-Type: application/json" \

-d '{"method":"aggsender_getCertificateBridgeExits", "params":[], "id":1}'

curl -X POST http://localhost:5576/ -H "Content-Type: application/json" \

-d '{"method":"aggsender_getCertificateBridgeExits", "params":[42], "id":1}'

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 "Content-Type: application/json" \
 -d '{"method":"aggsender_getCertificateHeaderPerHeight", "params":[], "id":1}'

specific height:

curl -X POST http://localhost:5576/ -H "Content-Type: 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/ "Content-Type: application/json" \ -d '{"method":"aggsender_status", "params":[], "id":1}'

func (*AggsenderRPC) TriggerCertificate added in v0.10.0

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

TriggerCertificate forces the publication of an epoch event to trigger certificate creation curl -X POST http://localhost:5576/ "Content-Type: application/json" \ -d '{"method":"aggsender_triggerCertificate", "params":[], "id":1}'

type AggsenderStorer

type AggsenderStorer interface {
	GetCertificateByHeight(height uint64) (*types.Certificate, error)
	GetLastSentCertificate() (*types.Certificate, error)
	SaveLastSentCertificate(ctx context.Context, certificate types.Certificate) error
}

Jump to

Keyboard shortcuts

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