bnb48

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: BSD-3-Clause Imports: 7 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 {
	General *ethclient.Client
	// contains filtered or unexported fields
}

Client defines typed wrappers for the Ethereum RPC API.

func Dial

func Dial(general, puissant string) (*Client, error)

func DialContext

func DialContext(ctx context.Context, rpcs ...string) (*Client, error)

func NewClient

func NewClient(cs ...*rpc.Client) *Client

func (*Client) Close

func (ec *Client) Close()

func (*Client) SendPrivateRawTransaction

func (ec *Client) SendPrivateRawTransaction(ctx context.Context, tx *types.Transaction) (h common.Hash, err error)

func (*Client) SendPuissant

func (ec *Client) SendPuissant(ctx context.Context, txs []hexutil.Bytes, maxTimestamp uint64, acceptReverting []common.Hash) (res string, err error)

func (*Client) SendPuissantTxs

func (ec *Client) SendPuissantTxs(ctx context.Context, txs []*types.Transaction, maxTimestamp uint64, acceptReverting []*types.Transaction) (res string, err error)

func (*Client) SuggestGasPrice

func (ec *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)

type SendPuissantArgs

type SendPuissantArgs struct {
	Txs             []hexutil.Bytes `json:"txs"`
	MaxTimestamp    uint64          `json:"maxTimestamp"`
	AcceptReverting []common.Hash   `json:"acceptReverting"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL