Package org.stellar.sdk
Class AllowTrustOperation.Builder
java.lang.Object
org.stellar.sdk.AllowTrustOperation.Builder
- Enclosing class:
AllowTrustOperation
Builds AllowTrust operation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an operationsetSourceAccount(String sourceAccount) Set source account of this operation
-
Constructor Details
-
Builder
Creates a new AllowTrust builder.- Parameters:
trustor- The account of the recipient of the trustline.assetCode- The asset of the trustline the source account is authorizing. For example, if a gateway wants to allow another account to hold its USD credit, the type is USD.authorize- Flag indicating whether the trustline is authorized.
-
-
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
-