Package org.stellar.sdk
Class ChangeTrustOperation.Builder
java.lang.Object
org.stellar.sdk.ChangeTrustOperation.Builder
- Enclosing class:
ChangeTrustOperation
Builds ChangeTrust operation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(@NonNull ChangeTrustAsset asset, @NonNull String limit) Creates a new ChangeTrust builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an operationsetSourceAccount(@NonNull String sourceAccount) Set source account of this operation
-
Constructor Details
-
Builder
Creates a new ChangeTrust builder.- Parameters:
asset- The asset of the trustline. For example, if a gateway extends a trustline of up to 200 USD to a user, the line is USD.limit- The limit of the trustline. For example, if a gateway extends a trustline of up to 200 USD to a user, the limit is 200.- Throws:
ArithmeticException- when limit has more than 7 decimal places.
-
-
Method Details
-
setSourceAccount
Set source account of this operation- Parameters:
sourceAccount- Source account- Returns:
- Builder object so you can chain methods.
-
build
Builds an operation
-