Documentation ¶
Overview ¶
Package txbroadcast provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastRequest ¶
type BroadcastRequest struct { // RawTransaction The raw transaction data RawTransaction string `json:"rawTransaction"` }
BroadcastRequest defines model for BroadcastRequest.
func (*BroadcastRequest) Validate ¶
func (params *BroadcastRequest) Validate() error
type BroadcastResponse ¶
type BroadcastResponse struct { // TransactionHash The transaction hash TransactionHash string `json:"transactionHash"` }
BroadcastResponse defines model for BroadcastResponse.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *Configuration) (*Client, error)
func (*Client) BroadcastPrivateTransaction ¶
func (api *Client) BroadcastPrivateTransaction(ctx context.Context, params BroadcastRequest) (*BroadcastResponse, error)
BroadcastPrivateTransaction Do broadcast EVM transaction to the private mempool, takes the raw transaction data as input and returns the transaction hash
func (*Client) BroadcastPublicTransaction ¶
func (api *Client) BroadcastPublicTransaction(ctx context.Context, params BroadcastRequest) (*BroadcastResponse, error)
BroadcastPublicTransaction Do broadcast EVM transaction to the public mempool, takes the raw transaction data as input and returns the transaction hash
type Configuration ¶
func NewConfiguration ¶
func NewConfiguration(params ConfigurationParams) (*Configuration, error)
type ConfigurationParams ¶
type TxProcessorApiControllerBroadcastFlashbotsTransactionJSONRequestBody ¶
type TxProcessorApiControllerBroadcastFlashbotsTransactionJSONRequestBody = BroadcastRequest
TxProcessorApiControllerBroadcastFlashbotsTransactionJSONRequestBody defines body for TxProcessorApiControllerBroadcastFlashbotsTransaction for application/json ContentType.
type TxProcessorApiControllerBroadcastTransactionJSONRequestBody ¶
type TxProcessorApiControllerBroadcastTransactionJSONRequestBody = BroadcastRequest
TxProcessorApiControllerBroadcastTransactionJSONRequestBody defines body for TxProcessorApiControllerBroadcastTransaction for application/json ContentType.