Documentation ¶
Index ¶
- func Approve(urls []string, chainid uint64, token string, ownerkey string, spender string, ...) (hash string, succeed bool, err error)
- func FetchErc20TokenMeta(urls []string, token string) (decimal int, symbol string, name string, err error)
- func FetchPoolPrice(urls []string, base string, baseDecimal int, quote string, quoteDecimal int, ...) (price float64, err error)
- func GetAllowance(urls []string, token string, owner string, spender string) (amount *big.Int, err error)
- func GetBalance(urls []string, addr string) (*big.Int, error)
- func GetTokenBalance(urls []string, token string, addr string) (amount *big.Int, err error)
- func Parse(urls []string, hash string, addr string) (*types.Transaction, *big.Int, error)
- func TransferETH(urls []string, fromKey string, to string, amount *big.Int) (string, error)
- func TransferErc20Token(urls []string, fromKey string, to string, amount *big.Int, token string, ...) (hash string, succeed bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchErc20TokenMeta ¶ added in v1.0.36
func FetchPoolPrice ¶ added in v1.0.36
func GetAllowance ¶ added in v1.0.42
func GetTokenBalance ¶ added in v1.0.36
func TransferETH ¶ added in v1.0.35
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.