eth

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchErc20TokenMeta added in v1.0.36

func FetchErc20TokenMeta(urls []string, token string) (decimal int, symbol string, name string, err error)

func FetchPoolPrice added in v1.0.36

func FetchPoolPrice(urls []string, base string, baseDecimal int, quote string, quoteDecimal int, pool string) (price float64, err error)

func GetBalance added in v1.0.35

func GetBalance(urls []string, addr string) (*big.Int, error)

func GetTokenBalance added in v1.0.36

func GetTokenBalance(urls []string, token string, addr string) (amount *big.Int, err error)

func Parse added in v1.0.35

func Parse(urls []string, hash string, addr string) (*big.Int, error)

func TransferETH added in v1.0.35

func TransferETH(urls []string, fromKey string, to string, amount *big.Int) (string, error)

func TransferErc20Token added in v1.0.36

func TransferErc20Token(urls []string, fromKey string, to string, amount *big.Int, token string, chainid uint64) (hash string, succeed bool, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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