base

package
v0.0.0-...-96ee8f4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestNetUrl = "https://fullnode.testnet.aptoslabs.com"

	AptosCoinType = "0x1::aptos_coin::AptosCoin"
)

Variables

This section is empty.

Functions

func FaucetFundAccount

func FaucetFundAccount(address string, amount uint64) (err error)

func GetAddress

func GetAddress(account *aptosaccount.Account) string

func GetChain

func GetChain() *aptos.Chain

func GetClient

func GetClient() *aptosclient.RestClient

func GetEnvAccount

func GetEnvAccount() (*aptosaccount.Account, error)

func GetEnvAptosAccount

func GetEnvAptosAccount() (*aptos.Account, error)

func PanicError

func PanicError(err error)

func RandomAccount

func RandomAccount() *aptosaccount.Account

func Transfer

func Transfer(account *aptosaccount.Account, toAddress string, amount uint64, coinType string) *aptostypes.Transaction

func WaitTxSuccess

func WaitTxSuccess(txHash string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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