eth

package
v0.0.0-...-789e074 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchDepositMethod = "deposit"
)

Variables

This section is empty.

Functions

func BroadcastSignedTx

func BroadcastSignedTx(ctx context.Context, evmAddr string, signedTransaction string, isWaitResult bool) (common.Hash, error)

BroadcastSignedTx Broadcast signature transactions @param evmAddr eth endpoints @param signedTransaction @see `SignTx`

func CreateEth1Key

func CreateEth1Key() (string, string, error)

func SignTx

func SignTx(ctx context.Context, evmAddr string, txParams TxParams, privateKeyHex string) (string, error)

Types

type TxParams

type TxParams struct {
	From             string `json:"from"`
	To               string `json:"to"`
	AmountWei        string `json:"amount_wei"`
	ContractCallData string `json:"contract_call_data"`
}

Jump to

Keyboard shortcuts

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