# README
Algorand
This package implements handlers which can be used to interact with the Algorand blockchain. The Algorand documentation is a good place to start and has instructions that work seamlessly. Once your node is up, you need to wait for it to finish syncing up to the current height and then you're free to experiment with the Go SDK
To start a private network,
cd private/node
to fetch algod.net
and algod.token
and link it with the SDK.
For getting a kmd access token,
cd private
and cat kmd-v0.5/kmd.token
.
# Functions
CreateNewWallet creates a new wallet.
CreateNewWalletAndAddress creates a new wallet and an address.
GenerateBackup gets the seedphrase from the walletName for backup.
GenerateNewAddress generates a new address associated with the given wallet.
GenNewWallet generates a new algorand wallet.
GetAlgo seeds a given wallet with a specific number of algos similar to what friendbot does on stellar.
GetBlock gets the details ofa given block from the algorand blockchain.
GetLatestBlock getst the latest block from the blockchain.
GetStatus gets the status of a given algod client.
Init initializes the algod client and the kmd client.
InitAlgodClient initializes a new algorand daemon client.
InitKmdClient initializes a new key management daemon client.
SendAlgo sends algos to another address from a source account.
SendAlgoToSelf sends algos to another address owned by the same user.
SetConsts sets algorand consts.
# Variables
AlgodAddress is the address of the algod daemon.
AlgodClient is a package-level gloabal variable.
AlgodToken is the auth token needed to call algod's rpc functions.
KmdAddress is the address of the key management daemon.
KmdClient is a package-level gloabal variable.
KmdToken is the auth token needed to call the kmd's rpc functions.