examples

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 13 Imported by: 1

README

Algorand Go SDK Examples

This directory contains examples of how to use the Algorand Go SDK.

Assuming a sandbox node is running locally, any example can be run with the following command:

go run <example>/main.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ALGOD_ADDRESS = "http://localhost"
	ALGOD_PORT    = "4001"
	ALGOD_URL     = ""
	ALGOD_TOKEN   = strings.Repeat("a", 64)

	INDEXER_ADDRESS = "http://localhost"
	INDEXER_PORT    = "8980"
	INDEXER_TOKEN   = strings.Repeat("a", 64)
	INDEXER_URL     = ""

	KMD_ADDRESS = "http://localhost"
	KMD_PORT    = "4002"
	KMD_TOKEN   = strings.Repeat("a", 64)
	KMD_URL     = ""

	KMD_WALLET_NAME     = "unencrypted-default-wallet"
	KMD_WALLET_PASSWORD = ""
)

Functions

func CompileTeal

func CompileTeal(algodClient *algod.Client, path string) []byte

func DeployApp

func DeployApp(algodClient *algod.Client, creator crypto.Account) uint64

func GetAlgodClient

func GetAlgodClient() *algod.Client

func GetIndexerClient

func GetIndexerClient() *indexer.Client

func GetKmdClient

func GetKmdClient() kmd.Client

func GetSandboxAccounts

func GetSandboxAccounts() ([]crypto.Account, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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