broadcasting

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 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) EthSendTransaction

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

EthSendTransaction broadcasts e VM transaction

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

func (*Client) GetGasUsage

func (a *Client) GetGasUsage(params *GetGasUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGasUsageOK, error)

GetGasUsage gets gas usage

Get gas usage and gas limits for either the parent organization or a sub-organization.

func (*Client) GetNonces

func (a *Client) GetNonces(params *GetNoncesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNoncesOK, error)

GetNonces gets nonces

Get nonce values for an address on a given network. Can fetch the standard on-chain nonce and/or the gas station nonce used for sponsored transactions.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SolSendTransaction

func (a *Client) SolSendTransaction(params *SolSendTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SolSendTransactionOK, error)

SolSendTransaction broadcasts s VM transaction

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

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	EthSendTransaction(params *EthSendTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EthSendTransactionOK, error)

	GetGasUsage(params *GetGasUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGasUsageOK, error)

	GetNonces(params *GetNoncesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNoncesOK, error)

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

type EthSendTransactionOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewEthSendTransactionOK

func NewEthSendTransactionOK() *EthSendTransactionOK

NewEthSendTransactionOK creates a EthSendTransactionOK with default headers values

func (*EthSendTransactionOK) Code

func (o *EthSendTransactionOK) Code() int

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

func (*EthSendTransactionOK) Error

func (o *EthSendTransactionOK) Error() string

func (*EthSendTransactionOK) GetPayload

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

func (*EthSendTransactionOK) IsClientError

func (o *EthSendTransactionOK) IsClientError() bool

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

func (*EthSendTransactionOK) IsCode

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

func (o *EthSendTransactionOK) IsRedirect() bool

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

func (*EthSendTransactionOK) IsServerError

func (o *EthSendTransactionOK) IsServerError() bool

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

func (*EthSendTransactionOK) IsSuccess

func (o *EthSendTransactionOK) IsSuccess() bool

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

func (*EthSendTransactionOK) String

func (o *EthSendTransactionOK) String() string

type EthSendTransactionParams

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

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

func NewEthSendTransactionParamsWithContext(ctx context.Context) *EthSendTransactionParams

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

func NewEthSendTransactionParamsWithHTTPClient

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

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

SetBody adds the body to the eth send transaction params

func (*EthSendTransactionParams) SetContext

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

SetContext adds the context to the eth send transaction params

func (*EthSendTransactionParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the eth send transaction params

func (*EthSendTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the eth send transaction params

func (*EthSendTransactionParams) WithBody

WithBody adds the body to the eth send transaction params

func (*EthSendTransactionParams) WithContext

WithContext adds the context to the eth send transaction params

func (*EthSendTransactionParams) WithDefaults

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

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

WithHTTPClient adds the HTTPClient to the eth send transaction params

func (*EthSendTransactionParams) WithTimeout

WithTimeout adds the timeout to the eth send transaction params

func (*EthSendTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EthSendTransactionReader

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

EthSendTransactionReader is a Reader for the EthSendTransaction structure.

func (*EthSendTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGasUsageOK

type GetGasUsageOK struct {
	Payload *models.GetGasUsageResponse
}

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

A successful response.

func NewGetGasUsageOK

func NewGetGasUsageOK() *GetGasUsageOK

NewGetGasUsageOK creates a GetGasUsageOK with default headers values

func (*GetGasUsageOK) Code

func (o *GetGasUsageOK) Code() int

Code gets the status code for the get gas usage o k response

func (*GetGasUsageOK) Error

func (o *GetGasUsageOK) Error() string

func (*GetGasUsageOK) GetPayload

func (o *GetGasUsageOK) GetPayload() *models.GetGasUsageResponse

func (*GetGasUsageOK) IsClientError

func (o *GetGasUsageOK) IsClientError() bool

IsClientError returns true when this get gas usage o k response has a 4xx status code

func (*GetGasUsageOK) IsCode

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

IsCode returns true when this get gas usage o k response a status code equal to that given

func (*GetGasUsageOK) IsRedirect

func (o *GetGasUsageOK) IsRedirect() bool

IsRedirect returns true when this get gas usage o k response has a 3xx status code

func (*GetGasUsageOK) IsServerError

func (o *GetGasUsageOK) IsServerError() bool

IsServerError returns true when this get gas usage o k response has a 5xx status code

func (*GetGasUsageOK) IsSuccess

func (o *GetGasUsageOK) IsSuccess() bool

IsSuccess returns true when this get gas usage o k response has a 2xx status code

func (*GetGasUsageOK) String

func (o *GetGasUsageOK) String() string

type GetGasUsageParams

type GetGasUsageParams struct {

	// Body.
	Body *models.GetGasUsageRequest

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

GetGasUsageParams contains all the parameters to send to the API endpoint

for the get gas usage operation.

Typically these are written to a http.Request.

func NewGetGasUsageParams

func NewGetGasUsageParams() *GetGasUsageParams

NewGetGasUsageParams creates a new GetGasUsageParams 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 NewGetGasUsageParamsWithContext

func NewGetGasUsageParamsWithContext(ctx context.Context) *GetGasUsageParams

NewGetGasUsageParamsWithContext creates a new GetGasUsageParams object with the ability to set a context for a request.

func NewGetGasUsageParamsWithHTTPClient

func NewGetGasUsageParamsWithHTTPClient(client *http.Client) *GetGasUsageParams

NewGetGasUsageParamsWithHTTPClient creates a new GetGasUsageParams object with the ability to set a custom HTTPClient for a request.

func NewGetGasUsageParamsWithTimeout

func NewGetGasUsageParamsWithTimeout(timeout time.Duration) *GetGasUsageParams

NewGetGasUsageParamsWithTimeout creates a new GetGasUsageParams object with the ability to set a timeout on a request.

func (*GetGasUsageParams) SetBody

func (o *GetGasUsageParams) SetBody(body *models.GetGasUsageRequest)

SetBody adds the body to the get gas usage params

func (*GetGasUsageParams) SetContext

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

SetContext adds the context to the get gas usage params

func (*GetGasUsageParams) SetDefaults

func (o *GetGasUsageParams) SetDefaults()

SetDefaults hydrates default values in the get gas usage params (not the query body).

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

func (*GetGasUsageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gas usage params

func (*GetGasUsageParams) SetTimeout

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

SetTimeout adds the timeout to the get gas usage params

func (*GetGasUsageParams) WithBody

WithBody adds the body to the get gas usage params

func (*GetGasUsageParams) WithContext

func (o *GetGasUsageParams) WithContext(ctx context.Context) *GetGasUsageParams

WithContext adds the context to the get gas usage params

func (*GetGasUsageParams) WithDefaults

func (o *GetGasUsageParams) WithDefaults() *GetGasUsageParams

WithDefaults hydrates default values in the get gas usage params (not the query body).

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

func (*GetGasUsageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get gas usage params

func (*GetGasUsageParams) WithTimeout

func (o *GetGasUsageParams) WithTimeout(timeout time.Duration) *GetGasUsageParams

WithTimeout adds the timeout to the get gas usage params

func (*GetGasUsageParams) WriteToRequest

func (o *GetGasUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetGasUsageReader

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

GetGasUsageReader is a Reader for the GetGasUsage structure.

func (*GetGasUsageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNoncesOK

type GetNoncesOK struct {
	Payload *models.GetNoncesResponse
}

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

A successful response.

func NewGetNoncesOK

func NewGetNoncesOK() *GetNoncesOK

NewGetNoncesOK creates a GetNoncesOK with default headers values

func (*GetNoncesOK) Code

func (o *GetNoncesOK) Code() int

Code gets the status code for the get nonces o k response

func (*GetNoncesOK) Error

func (o *GetNoncesOK) Error() string

func (*GetNoncesOK) GetPayload

func (o *GetNoncesOK) GetPayload() *models.GetNoncesResponse

func (*GetNoncesOK) IsClientError

func (o *GetNoncesOK) IsClientError() bool

IsClientError returns true when this get nonces o k response has a 4xx status code

func (*GetNoncesOK) IsCode

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

IsCode returns true when this get nonces o k response a status code equal to that given

func (*GetNoncesOK) IsRedirect

func (o *GetNoncesOK) IsRedirect() bool

IsRedirect returns true when this get nonces o k response has a 3xx status code

func (*GetNoncesOK) IsServerError

func (o *GetNoncesOK) IsServerError() bool

IsServerError returns true when this get nonces o k response has a 5xx status code

func (*GetNoncesOK) IsSuccess

func (o *GetNoncesOK) IsSuccess() bool

IsSuccess returns true when this get nonces o k response has a 2xx status code

func (*GetNoncesOK) String

func (o *GetNoncesOK) String() string

type GetNoncesParams

type GetNoncesParams struct {

	// Body.
	Body *models.GetNoncesRequest

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

GetNoncesParams contains all the parameters to send to the API endpoint

for the get nonces operation.

Typically these are written to a http.Request.

func NewGetNoncesParams

func NewGetNoncesParams() *GetNoncesParams

NewGetNoncesParams creates a new GetNoncesParams 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 NewGetNoncesParamsWithContext

func NewGetNoncesParamsWithContext(ctx context.Context) *GetNoncesParams

NewGetNoncesParamsWithContext creates a new GetNoncesParams object with the ability to set a context for a request.

func NewGetNoncesParamsWithHTTPClient

func NewGetNoncesParamsWithHTTPClient(client *http.Client) *GetNoncesParams

NewGetNoncesParamsWithHTTPClient creates a new GetNoncesParams object with the ability to set a custom HTTPClient for a request.

func NewGetNoncesParamsWithTimeout

func NewGetNoncesParamsWithTimeout(timeout time.Duration) *GetNoncesParams

NewGetNoncesParamsWithTimeout creates a new GetNoncesParams object with the ability to set a timeout on a request.

func (*GetNoncesParams) SetBody

func (o *GetNoncesParams) SetBody(body *models.GetNoncesRequest)

SetBody adds the body to the get nonces params

func (*GetNoncesParams) SetContext

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

SetContext adds the context to the get nonces params

func (*GetNoncesParams) SetDefaults

func (o *GetNoncesParams) SetDefaults()

SetDefaults hydrates default values in the get nonces params (not the query body).

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

func (*GetNoncesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nonces params

func (*GetNoncesParams) SetTimeout

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

SetTimeout adds the timeout to the get nonces params

func (*GetNoncesParams) WithBody

WithBody adds the body to the get nonces params

func (*GetNoncesParams) WithContext

func (o *GetNoncesParams) WithContext(ctx context.Context) *GetNoncesParams

WithContext adds the context to the get nonces params

func (*GetNoncesParams) WithDefaults

func (o *GetNoncesParams) WithDefaults() *GetNoncesParams

WithDefaults hydrates default values in the get nonces params (not the query body).

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

func (*GetNoncesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get nonces params

func (*GetNoncesParams) WithTimeout

func (o *GetNoncesParams) WithTimeout(timeout time.Duration) *GetNoncesParams

WithTimeout adds the timeout to the get nonces params

func (*GetNoncesParams) WriteToRequest

func (o *GetNoncesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNoncesReader

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

GetNoncesReader is a Reader for the GetNonces structure.

func (*GetNoncesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SolSendTransactionOK

type SolSendTransactionOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewSolSendTransactionOK

func NewSolSendTransactionOK() *SolSendTransactionOK

NewSolSendTransactionOK creates a SolSendTransactionOK with default headers values

func (*SolSendTransactionOK) Code

func (o *SolSendTransactionOK) Code() int

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

func (*SolSendTransactionOK) Error

func (o *SolSendTransactionOK) Error() string

func (*SolSendTransactionOK) GetPayload

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

func (*SolSendTransactionOK) IsClientError

func (o *SolSendTransactionOK) IsClientError() bool

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

func (*SolSendTransactionOK) IsCode

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

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

func (*SolSendTransactionOK) IsRedirect

func (o *SolSendTransactionOK) IsRedirect() bool

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

func (*SolSendTransactionOK) IsServerError

func (o *SolSendTransactionOK) IsServerError() bool

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

func (*SolSendTransactionOK) IsSuccess

func (o *SolSendTransactionOK) IsSuccess() bool

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

func (*SolSendTransactionOK) String

func (o *SolSendTransactionOK) String() string

type SolSendTransactionParams

type SolSendTransactionParams struct {

	// Body.
	Body *models.SolSendTransactionRequest

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

SolSendTransactionParams contains all the parameters to send to the API endpoint

for the sol send transaction operation.

Typically these are written to a http.Request.

func NewSolSendTransactionParams

func NewSolSendTransactionParams() *SolSendTransactionParams

NewSolSendTransactionParams creates a new SolSendTransactionParams 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 NewSolSendTransactionParamsWithContext

func NewSolSendTransactionParamsWithContext(ctx context.Context) *SolSendTransactionParams

NewSolSendTransactionParamsWithContext creates a new SolSendTransactionParams object with the ability to set a context for a request.

func NewSolSendTransactionParamsWithHTTPClient

func NewSolSendTransactionParamsWithHTTPClient(client *http.Client) *SolSendTransactionParams

NewSolSendTransactionParamsWithHTTPClient creates a new SolSendTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewSolSendTransactionParamsWithTimeout

func NewSolSendTransactionParamsWithTimeout(timeout time.Duration) *SolSendTransactionParams

NewSolSendTransactionParamsWithTimeout creates a new SolSendTransactionParams object with the ability to set a timeout on a request.

func (*SolSendTransactionParams) SetBody

SetBody adds the body to the sol send transaction params

func (*SolSendTransactionParams) SetContext

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

SetContext adds the context to the sol send transaction params

func (*SolSendTransactionParams) SetDefaults

func (o *SolSendTransactionParams) SetDefaults()

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

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

func (*SolSendTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the sol send transaction params

func (*SolSendTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the sol send transaction params

func (*SolSendTransactionParams) WithBody

WithBody adds the body to the sol send transaction params

func (*SolSendTransactionParams) WithContext

WithContext adds the context to the sol send transaction params

func (*SolSendTransactionParams) WithDefaults

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

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

func (*SolSendTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the sol send transaction params

func (*SolSendTransactionParams) WithTimeout

WithTimeout adds the timeout to the sol send transaction params

func (*SolSendTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SolSendTransactionReader

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

SolSendTransactionReader is a Reader for the SolSendTransaction structure.

func (*SolSendTransactionReader) ReadResponse

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