broadcasting

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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) EthSendTransaction added in v0.12.0

func (a *Client) EthSendTransaction(params *EthSendTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EthSendTransactionOK, error)

EthSendTransaction submits a transaction intent for broadcasting

Submit a transaction intent describing a transaction you would like to broadcast.

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)

	EthSendTransaction(params *EthSendTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EthSendTransactionOK, 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.

type EthSendTransactionOK added in v0.12.0

type EthSendTransactionOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewEthSendTransactionOK added in v0.12.0

func NewEthSendTransactionOK() *EthSendTransactionOK

NewEthSendTransactionOK creates a EthSendTransactionOK with default headers values

func (*EthSendTransactionOK) Code added in v0.12.0

func (o *EthSendTransactionOK) Code() int

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

func (*EthSendTransactionOK) Error added in v0.12.0

func (o *EthSendTransactionOK) Error() string

func (*EthSendTransactionOK) GetPayload added in v0.12.0

func (o *EthSendTransactionOK) GetPayload() *models.ActivityResponse

func (*EthSendTransactionOK) IsClientError added in v0.12.0

func (o *EthSendTransactionOK) IsClientError() bool

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

func (*EthSendTransactionOK) IsCode added in v0.12.0

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

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

func (*EthSendTransactionOK) IsRedirect added in v0.12.0

func (o *EthSendTransactionOK) IsRedirect() bool

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

func (*EthSendTransactionOK) IsServerError added in v0.12.0

func (o *EthSendTransactionOK) IsServerError() bool

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

func (*EthSendTransactionOK) IsSuccess added in v0.12.0

func (o *EthSendTransactionOK) IsSuccess() bool

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

func (*EthSendTransactionOK) String added in v0.12.0

func (o *EthSendTransactionOK) String() string

type EthSendTransactionParams added in v0.12.0

type EthSendTransactionParams struct {

	// Body.
	Body *models.EthSendTransactionRequest

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

EthSendTransactionParams contains all the parameters to send to the API endpoint

for the eth send transaction operation.

Typically these are written to a http.Request.

func NewEthSendTransactionParams added in v0.12.0

func NewEthSendTransactionParams() *EthSendTransactionParams

NewEthSendTransactionParams creates a new EthSendTransactionParams 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 NewEthSendTransactionParamsWithContext added in v0.12.0

func NewEthSendTransactionParamsWithContext(ctx context.Context) *EthSendTransactionParams

NewEthSendTransactionParamsWithContext creates a new EthSendTransactionParams object with the ability to set a context for a request.

func NewEthSendTransactionParamsWithHTTPClient added in v0.12.0

func NewEthSendTransactionParamsWithHTTPClient(client *http.Client) *EthSendTransactionParams

NewEthSendTransactionParamsWithHTTPClient creates a new EthSendTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewEthSendTransactionParamsWithTimeout added in v0.12.0

func NewEthSendTransactionParamsWithTimeout(timeout time.Duration) *EthSendTransactionParams

NewEthSendTransactionParamsWithTimeout creates a new EthSendTransactionParams object with the ability to set a timeout on a request.

func (*EthSendTransactionParams) SetBody added in v0.12.0

SetBody adds the body to the eth send transaction params

func (*EthSendTransactionParams) SetContext added in v0.12.0

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

SetContext adds the context to the eth send transaction params

func (*EthSendTransactionParams) SetDefaults added in v0.12.0

func (o *EthSendTransactionParams) SetDefaults()

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

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

func (*EthSendTransactionParams) SetHTTPClient added in v0.12.0

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

SetHTTPClient adds the HTTPClient to the eth send transaction params

func (*EthSendTransactionParams) SetTimeout added in v0.12.0

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

SetTimeout adds the timeout to the eth send transaction params

func (*EthSendTransactionParams) WithBody added in v0.12.0

WithBody adds the body to the eth send transaction params

func (*EthSendTransactionParams) WithContext added in v0.12.0

WithContext adds the context to the eth send transaction params

func (*EthSendTransactionParams) WithDefaults added in v0.12.0

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

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

func (*EthSendTransactionParams) WithHTTPClient added in v0.12.0

func (o *EthSendTransactionParams) WithHTTPClient(client *http.Client) *EthSendTransactionParams

WithHTTPClient adds the HTTPClient to the eth send transaction params

func (*EthSendTransactionParams) WithTimeout added in v0.12.0

WithTimeout adds the timeout to the eth send transaction params

func (*EthSendTransactionParams) WriteToRequest added in v0.12.0

WriteToRequest writes these params to a swagger request

type EthSendTransactionReader added in v0.12.0

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

EthSendTransactionReader is a Reader for the EthSendTransaction structure.

func (*EthSendTransactionReader) ReadResponse added in v0.12.0

func (o *EthSendTransactionReader) 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