- Testing with testnet
- Running your own devnet with CAP-21 and CAP-40
- Experiment with the prototype Starlight Go SDK
- Run the console example application
- Manually inspect or build transactions
The Stellar testnet has protocol 19 implemented:
https://horizon-testnet.stellar.org
To run a standalone network use the branch of the stellar/quickstart
docker image:
docker run --rm -it -p 8000:8000 --name stellar stellar/quickstart:testing --standalone
Test that the network is running by curling the root endpoint:
curl http://localhost:8000
There is a friendbot included in the network that can faucet new accounts.
Alternatively, deploy a standalone network to Digital Ocean to develop and test with:
The network passphrase will be randomly generated in this case, and you can retrieve it from the logs.
Reminder: The DigitalOcean server is publicly accessible on the Internet. Do not put sensitive information on the network that you would not want someone else to know. Anyone with access to the network will be able to use the root account above.
The sdk
directory contains the prototype Starlight Go SDK.
Reference: https://pkg.go.dev/github.com/stellar/starlight/sdk
go get github.com/stellar/starlight/sdk
See the console example application for an example for how to use the Starlight agent.
The examples/console
directory contains an example application that operates a payment channel between two participants over a TCP connection. Requires a network to be running with support for CAP-21 and CAP-40.
See the README for more details.
You can use stc to manually build and inspect transactions at the command line using text files.
Build transactions as you normally would, but for standalone network.
stc -net=standalone -edit tx
stc -net=standalone -sign tx | stc -net=standalone -post -