Skip to content

Instantly share code, notes, and snippets.

@zapkub
Created January 12, 2019 06:14
Show Gist options
  • Save zapkub/fef79a118c4c500fb9aae2af78150f37 to your computer and use it in GitHub Desktop.
Save zapkub/fef79a118c4c500fb9aae2af78150f37 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/stellar/go/keypair"
"github.com/stellar/go/build"
"net/http"
)
func main (){
fmt.Println("Hello world")
masterAccountKeypair, _ := keypair.Random()
{
url := fmt.Sprintf("https://friendbot.stellar.org?addr=%s", masterAccountKeypair.Address())
resp, err := http.Get(url)
if err != nil {
panic(err)
}
if resp.StatusCode == http.StatusOK {
fmt.Printf("Account has been created ! %s ", masterAccountKeypair.Address())
}
}
lisaWalletKeypair, _ := keypair.Random()
jennieWalletKeypair, _ := keypair.Random()
tx, err := build.Transaction()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment