createAccount

fun createAccount(newAccount: AccountKeyPair, startingBalance: ULong): TransactionBuilder

Create an account in the network.

Parameters

newAccount

Key pair of an account to be created.

startingBalance

optional Starting account balance in XLM. Minimum for non-sponsored accounts is 1 XLM. Default value is 1.

Throws