Documentation ¶
Overview ¶
Package demo is an interactive demonstration of the Go SDK using the Stellar TestNet.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialise ¶
func Initialise(client *horizonclient.Client, keys []Account)
Initialise is a command that funds an initial set of accounts for use with other demo operations. The first account is funded from Friendbot; subseqeuent accounts are created and funded from this first account.
func Reset ¶
func Reset(client *horizonclient.Client, keys []Account)
Reset is a command that removes all test accounts created by this demo. All funds are transferred back to Friendbot using the account merge operation.
func TXError ¶
func TXError(client *horizonclient.Client, keys []Account)
TXError is a command that deliberately creates a bad transaction to trigger an error response from Horizon. This code demonstrates how to retrieve and inspect the error.
Types ¶
Click to show internal directories.
Click to hide internal directories.