receiverapi

package
v0.0.0-...-28ca4d1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package receiverapi contains the logic to receive preconfirmation callbacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONRPCRequest

type JSONRPCRequest struct {
	ID      interface{} `json:"id"`
	Method  string      `json:"method"`
	Params  []ReceiveTx `json:"params"`
	Version string      `json:"jsonrpc,omitempty"`
}

type ReceiveAPI

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

func NewReceiveAPI

func NewReceiveAPI(IPPortAddr string, logger logging.Logger, client eth.EthClient) *ReceiveAPI

func (*ReceiveAPI) Start

func (api *ReceiveAPI) Start() <-chan error

Start starts the receiver api server in a goroutine

type ReceiveResponse

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

type ReceiveTx

type ReceiveTx struct {
	Tx *hexutil.Bytes `json:"tx,omitempty"`
}

Jump to

Keyboard shortcuts

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