eth

package
v1.0.53 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Approve added in v1.0.42

func Approve(urls []string, chainid uint64, token string, ownerkey string, spender string, spend *big.Int) (hash string, succeed bool, err error)

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 GetAllowance added in v1.0.42

func GetAllowance(urls []string, token string, owner string, spender string) (amount *big.Int, 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) (*types.Transaction, *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