Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallMsgFromTx ¶
func CallMsgFromTx(tx *coretypes.Transaction) *ethereum.CallMsg
CallMsgFromTx creates a new ethereum.CallMsg from a coretypes.Transaction.
Types ¶
type Packer ¶
Packer struct for packing metadata.
func (*Packer) CreateRequest ¶
func (p *Packer) CreateRequest( msgID string, to common.Address, value *big.Int, gasTipCap *big.Int, gasFeeCap *big.Int, gasLimit uint64, method string, args ...any, ) (*Request, error)
CreateRequest function for creating transaction request.
func (*Packer) GetCallResult ¶
GetCallResult function for unpacking the return data from a call result.
type PreconfirmedState ¶
type PreconfirmedState uint8
PreconfirmedStates are used for messages before the tx status is confirmed by the chain.
const ( // The message is not being tracked by the transactor. StateUnknown PreconfirmedState = iota // The message is sitting in the queue, waiting to be acquired into a tx. StateQueued // The message is being built into a tx. StateBuilding // The tx containing the message is sending (or retrying) -- noncer marked as "acquired". StateSending // The tx containing the message has been sent -- noncer marked as "inFlight". StateInFlight )
type Request ¶
type Request struct { // CallMsg is used to provide the basic tx data. The From field is ignored for txs, only used // for eth calls. *ethereum.CallMsg // MsgID is the (optional) user-provided string id for this tx request. MsgID string // contains filtered or unexported fields }
Request is a transaction request, using the go-ethereum call msg.
func NewRequest ¶
func NewRequest( to common.Address, gasLimit uint64, gasFeeCap, gasTipCap, value *big.Int, data []byte, msgID ...string, ) *Request
NewRequest returns a new transaction request with the given input data. The ID is optional, but at most 1 is allowed per tx request.
Click to show internal directories.
Click to hide internal directories.