broadcasting

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for broadcasting API

func (*Client) EthSendRawTransaction

func (a *Client) EthSendRawTransaction(params *EthSendRawTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EthSendRawTransactionOK, error)

EthSendRawTransaction submits a raw transaction for broadcasting

Submit a raw transaction (serialized and signed) for broadcasting to the network.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	EthSendRawTransaction(params *EthSendRawTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EthSendRawTransactionOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new broadcasting API client.

type EthSendRawTransactionOK

type EthSendRawTransactionOK struct {
	Payload *models.ActivityResponse
}

EthSendRawTransactionOK describes a response with status code 200, with default header values.

A successful response.

func NewEthSendRawTransactionOK

func NewEthSendRawTransactionOK() *EthSendRawTransactionOK

NewEthSendRawTransactionOK creates a EthSendRawTransactionOK with default headers values

func (*EthSendRawTransactionOK) Code

func (o *EthSendRawTransactionOK) Code() int

Code gets the status code for the eth send raw transaction o k response

func (*EthSendRawTransactionOK) Error

func (o *EthSendRawTransactionOK) Error() string

func (*EthSendRawTransactionOK) GetPayload

func (*EthSendRawTransactionOK) IsClientError

func (o *EthSendRawTransactionOK) IsClientError() bool

IsClientError returns true when this eth send raw transaction o k response has a 4xx status code

func (*EthSendRawTransactionOK) IsCode

func (o *EthSendRawTransactionOK) IsCode(code int) bool

IsCode returns true when this eth send raw transaction o k response a status code equal to that given

func (*EthSendRawTransactionOK) IsRedirect

func (o *EthSendRawTransactionOK) IsRedirect() bool

IsRedirect returns true when this eth send raw transaction o k response has a 3xx status code

func (*EthSendRawTransactionOK) IsServerError

func (o *EthSendRawTransactionOK) IsServerError() bool

IsServerError returns true when this eth send raw transaction o k response has a 5xx status code

func (*EthSendRawTransactionOK) IsSuccess

func (o *EthSendRawTransactionOK) IsSuccess() bool

IsSuccess returns true when this eth send raw transaction o k response has a 2xx status code

func (*EthSendRawTransactionOK) String

func (o *EthSendRawTransactionOK) String() string

type EthSendRawTransactionParams

type EthSendRawTransactionParams struct {

	// Body.
	Body *models.EthSendRawTransactionRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EthSendRawTransactionParams contains all the parameters to send to the API endpoint

for the eth send raw transaction operation.

Typically these are written to a http.Request.

func NewEthSendRawTransactionParams

func NewEthSendRawTransactionParams() *EthSendRawTransactionParams

NewEthSendRawTransactionParams creates a new EthSendRawTransactionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewEthSendRawTransactionParamsWithContext

func NewEthSendRawTransactionParamsWithContext(ctx context.Context) *EthSendRawTransactionParams

NewEthSendRawTransactionParamsWithContext creates a new EthSendRawTransactionParams object with the ability to set a context for a request.

func NewEthSendRawTransactionParamsWithHTTPClient

func NewEthSendRawTransactionParamsWithHTTPClient(client *http.Client) *EthSendRawTransactionParams

NewEthSendRawTransactionParamsWithHTTPClient creates a new EthSendRawTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewEthSendRawTransactionParamsWithTimeout

func NewEthSendRawTransactionParamsWithTimeout(timeout time.Duration) *EthSendRawTransactionParams

NewEthSendRawTransactionParamsWithTimeout creates a new EthSendRawTransactionParams object with the ability to set a timeout on a request.

func (*EthSendRawTransactionParams) SetBody

SetBody adds the body to the eth send raw transaction params

func (*EthSendRawTransactionParams) SetContext

func (o *EthSendRawTransactionParams) SetContext(ctx context.Context)

SetContext adds the context to the eth send raw transaction params

func (*EthSendRawTransactionParams) SetDefaults

func (o *EthSendRawTransactionParams) SetDefaults()

SetDefaults hydrates default values in the eth send raw transaction params (not the query body).

All values with no default are reset to their zero value.

func (*EthSendRawTransactionParams) SetHTTPClient

func (o *EthSendRawTransactionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the eth send raw transaction params

func (*EthSendRawTransactionParams) SetTimeout

func (o *EthSendRawTransactionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the eth send raw transaction params

func (*EthSendRawTransactionParams) WithBody

WithBody adds the body to the eth send raw transaction params

func (*EthSendRawTransactionParams) WithContext

WithContext adds the context to the eth send raw transaction params

func (*EthSendRawTransactionParams) WithDefaults

WithDefaults hydrates default values in the eth send raw transaction params (not the query body).

All values with no default are reset to their zero value.

func (*EthSendRawTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the eth send raw transaction params

func (*EthSendRawTransactionParams) WithTimeout

WithTimeout adds the timeout to the eth send raw transaction params

func (*EthSendRawTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EthSendRawTransactionReader

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

EthSendRawTransactionReader is a Reader for the EthSendRawTransaction structure.

func (*EthSendRawTransactionReader) ReadResponse

func (o *EthSendRawTransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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