public static class ChangeTrustOperation.Builder
extends java.lang.Object
ChangeTrustOperation
Constructor and Description |
---|
Builder(Asset asset,
java.lang.String limit)
Creates a new ChangeTrust builder.
|
Modifier and Type | Method and Description |
---|---|
ChangeTrustOperation |
build()
Builds an operation
|
ChangeTrustOperation.Builder |
setSourceAccount(KeyPair sourceAccount)
Set source account of this operation
|
public Builder(Asset asset, java.lang.String limit)
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.java.lang.ArithmeticException
- when limit has more than 7 decimal places.public ChangeTrustOperation.Builder setSourceAccount(KeyPair sourceAccount)
sourceAccount
- Source accountpublic ChangeTrustOperation build()