Package org.stellar.sdk
Class CreateAccountOperation.Builder
java.lang.Object
org.stellar.sdk.CreateAccountOperation.Builder
- Enclosing class:
CreateAccountOperation
Builds CreateAccount operation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an operationsetSourceAccount(String account) Sets the source account for this operation.
-
Constructor Details
-
Builder
Creates a new CreateAccount builder.- Parameters:
destination- The destination keypair (uses only the public key).startingBalance- The initial balance to start with in lumens.- Throws:
ArithmeticException- when startingBalance has more than 7 decimal places.
-
-
Method Details
-
setSourceAccount
Sets the source account for this operation.- Parameters:
account- The operation's source account.- Returns:
- Builder object so you can chain methods.
-
build
Builds an operation
-