Documentation ¶
Index ¶
- Constants
- func FaucetFundAccount(address string, amount uint64) (err error)
- func GetAddress(account *aptosaccount.Account) string
- func GetChain() *aptos.Chain
- func GetClient() *aptosclient.RestClient
- func GetEnvAccount() (*aptosaccount.Account, error)
- func GetEnvAptosAccount() (*aptos.Account, error)
- func PanicError(err error)
- func RandomAccount() *aptosaccount.Account
- func SignAndSendEntryFunction(account *aptosaccount.Account, ...) *aptostypes.Transaction
- func Transfer(account *aptosaccount.Account, toAddress string, amount uint64, ...) *aptostypes.Transaction
- func WaitTxSuccess(txHash string)
Constants ¶
View Source
const ( TestNetUrl = "https://fullnode.testnet.aptoslabs.com" AptosCoinType = "0x1::aptos_coin::AptosCoin" )
Variables ¶
This section is empty.
Functions ¶
func FaucetFundAccount ¶
func GetAddress ¶
func GetAddress(account *aptosaccount.Account) string
func GetClient ¶
func GetClient() *aptosclient.RestClient
func GetEnvAccount ¶
func GetEnvAccount() (*aptosaccount.Account, error)
func GetEnvAptosAccount ¶
func PanicError ¶
func PanicError(err error)
func RandomAccount ¶
func RandomAccount() *aptosaccount.Account
func SignAndSendEntryFunction ¶
func SignAndSendEntryFunction(account *aptosaccount.Account, payload txBuilder.TransactionPayloadEntryFunction) *aptostypes.Transaction
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.
Click to show internal directories.
Click to hide internal directories.