public static class PaymentOperation.Builder
extends java.lang.Object
PathPaymentOperation| Constructor and Description |
|---|
Builder(KeyPair destination,
Asset asset,
java.lang.String amount)
Creates a new PaymentOperation builder.
|
| Modifier and Type | Method and Description |
|---|---|
PaymentOperation |
build()
Builds an operation
|
PaymentOperation.Builder |
setSourceAccount(KeyPair account)
Sets the source account for this operation.
|
public Builder(KeyPair destination, Asset asset, java.lang.String amount)
destination - The destination keypair (uses only the public key).asset - The asset to send.amount - The amount to send in lumens.java.lang.ArithmeticException - when amount has more than 7 decimal places.public PaymentOperation.Builder setSourceAccount(KeyPair account)
account - The operation's source account.public PaymentOperation build()