account

package
v0.0.0-...-08d3913 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGetAuthAddrFailed        = ulid.MustParse("01HGB4K37WVFBQFPM0RND212YS")
	ErrAccountAlreadyRekeyed    = ulid.MustParse("01HGB4MAW16F6GXHCKC3399BZ1")
	ErrGetSuggestedParamsFailed = ulid.MustParse("01HGTE11YD3XAX2KGZVGWZFWRY")
	ErrMakePaymentTxn           = ulid.MustParse("01HGTEPA5PWKCTXM682GRBJCVB")
	ErrSignTransactions         = ulid.MustParse("01HGTETWSHXMFNSTFWMS5JDZRZ")
	ErrSettingRekeyTo           = ulid.MustParse("01HGTF3KG43JWPT8SBCF7W67WX")
)

Functions

func MakeRekeyTransaction

func MakeRekeyTransaction(algodClient *algod.Client, from, to Address) (types.Transaction, error)

MakeRekeyTransaction constructs a transaction to rekey the account from the specified address to the specified address

Types

type Address

type Address string

Address is the human-readable Algorand account [address] which maps to the account's public key

[address] = https://developer.algorand.org/docs/get-details/accounts/#transformation-public-key-to-algorand-address

func GetAuthAddr

func GetAuthAddr(algodClient *algod.Client, address Address) (authAddr Address, err error)

GetAuthAddr looks up the authorized signing account for the specified account address.

If the account is not rekeyed, then the authorized account is itself.

Jump to

Keyboard shortcuts

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