Created
February 17, 2016 17:12
-
-
Save nullstyle/be399955f4f7fad021d6 to your computer and use it in GitHub Desktop.
This file contains 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
var S = require('stellar-sdk'); | |
var kp = S.Keypair.random(); | |
var account = new S.Account(kp.accountId(), "1"); | |
var transaction = new S.TransactionBuilder(account).addOperation(S.Operation.createAccount({ | |
destination: kp.accountId(), | |
startingBalance: "100.00", | |
})).build(); | |
transaction.sign(kp); | |
console.log(transaction.toEnvelope().toXDR('base64')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment