Class AllowTrustOperation.Builder

java.lang.Object
org.stellar.sdk.AllowTrustOperation.Builder
Enclosing class:
AllowTrustOperation

public static class AllowTrustOperation.Builder extends Object
Builds AllowTrust operation.
See Also:
  • Constructor Details

    • Builder

      public Builder(String trustor, String assetCode, boolean authorize)
      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

      public AllowTrustOperation.Builder setSourceAccount(String sourceAccount)
      Set source account of this operation
      Parameters:
      sourceAccount - Source account
      Returns:
      Builder object so you can chain methods.
    • build

      public AllowTrustOperation build()
      Builds an operation