Created
January 12, 2019 06:14
-
-
Save zapkub/fef79a118c4c500fb9aae2af78150f37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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