Package org.stellar.sdk
Class PaymentOperation.Builder
java.lang.Object
org.stellar.sdk.PaymentOperation.Builder
- Enclosing class:
PaymentOperation
Builds Payment 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 PaymentOperation builder.- Parameters:
destination- The destination account idasset- The asset to send.amount- The amount to send in lumens.- Throws:
ArithmeticException- when amount 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
-