polygon

package
v0.0.0-...-32dec47 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSignatureNotValid = errors.New("signature is not valid")
)

Functions

func ApproveERC721

func ApproveERC721(mnemonic string, toAddress common.Address, contractAddr common.Address, tokenId big.Int) (string, error)

func ERC721IsOwner

func ERC721IsOwner(mnemonic string, contractAddr common.Address, tokenId *big.Int) (bool, error)

func GetBalance

func GetBalance(mnemonic string) (*big.Int, error)

func GetChainId

func GetChainId() (int, error)

func GetERC20Balance

func GetERC20Balance(mnemonic string, contractAddr common.Address) (*big.Int, error)

func GetERC721Balance

func GetERC721Balance(mnemonic string, contractAddr common.Address) (*big.Int, error)

func GetNetworkInfo

func GetNetworkInfo() (*networkInfo, error)

func GetPath

func GetPath() string

func GetRpcUrl

func GetRpcUrl() string

func GetWalletAddres

func GetWalletAddres(mnemonic string) (string, error)

func SetAprovalForAllErc721

func SetAprovalForAllErc721(mnemonic string, operatorAddr common.Address, contractAddr common.Address, approved bool) (string, error)

func SignMessage

func SignMessage(mnemonic string, message string) (string, error)

func Transfer

func Transfer(mnemonic string, to common.Address, value big.Int) (string, error)

func TransferERC20

func TransferERC20(mnemonic string, toAddress common.Address, contractAddr common.Address, amount big.Int) (string, error)

func TransferERC721

func TransferERC721(mnemonic string, toAddress common.Address, contractAddr common.Address, tokenId big.Int) (string, error)

func VerifySignature

func VerifySignature(mnemonic string, message string, signature string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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