bnb48

package
v0.0.0-...-a0b4a9a Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign48SPMember

func Sign48SPMember(prvKey *ecdsa.PrivateKey, txs []*types.Transaction) (hexutil.Bytes, error)

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, soulPointSignature hexutil.Bytes) (res string, err error)

func (*Client) SendPuissantTxs

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

func (*Client) SuggestGasPrice

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

type SendBundleArgs

type SendBundleArgs struct {
	Txs                []hexutil.Bytes `json:"txs"`
	MaxTimestamp       uint64          `json:"maxTimestamp"`
	AcceptReverting    []common.Hash   `json:"acceptReverting"`
	SoulPointSignature hexutil.Bytes   `json:"48spSign"` // <<<<<<------ This is the 48SP signature
}

Jump to

Keyboard shortcuts

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