Documentation ¶
Index ¶
- func CheckTxFee(gasPrice *big.Int, gas uint64, cap float64) error
- func EthToOLSignedTx(tx *ethtypes.Transaction) (*action.SignedTx, error)
- func GetPendingTx(mem mempool.Mempool, hash common.Hash, chainID *big.Int) (*rpctypes.Transaction, error)
- func GetPendingTxCountByAddress(mem mempool.Mempool, address common.Address) (total uint64)
- func GetPendingTxs(mem mempool.Mempool, chainID *big.Int) ([]*rpctypes.Transaction, error)
- func GetPendingTxsWithCallback(mem mempool.Mempool, chainID *big.Int, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTxFee ¶
checkTxFee is an internal function used to check whether the fee of the given transaction is _reasonable_(under the cap).
func EthToOLSignedTx ¶
func EthToOLSignedTx(tx *ethtypes.Transaction) (*action.SignedTx, error)
func GetPendingTx ¶
func GetPendingTx(mem mempool.Mempool, hash common.Hash, chainID *big.Int) (*rpctypes.Transaction, error)
GetPendingTx search for tx in pool
func GetPendingTxCountByAddress ¶
GetPendingTxCountByAddress is used to get pending tx count (nonce) for user address NOTE: Working right now only with legacy tx
func GetPendingTxs ¶
GetPendingTransactions search for txs in pool
func GetPendingTxsWithCallback ¶
func GetPendingTxsWithCallback(mem mempool.Mempool, chainID *big.Int, callback func(tx *rpctypes.Transaction) bool) error
GetPendingTxsWithCallback search for txs in pool and return in callback form
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.