public static class AllowTrustOperation.Builder
extends java.lang.Object
AllowTrustOperation| Constructor and Description |
|---|
Builder(KeyPair trustor,
java.lang.String assetCode,
boolean authorize)
Creates a new AllowTrust builder.
|
| Modifier and Type | Method and Description |
|---|---|
AllowTrustOperation |
build()
Builds an operation
|
AllowTrustOperation.Builder |
setSourceAccount(KeyPair sourceAccount)
Set source account of this operation
|
public Builder(KeyPair trustor, java.lang.String assetCode, boolean authorize)
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.public AllowTrustOperation.Builder setSourceAccount(KeyPair sourceAccount)
sourceAccount - Source accountpublic AllowTrustOperation build()