public static class CreatePassiveOfferOperation.Builder
extends java.lang.Object
CreatePassiveOfferOperation
Constructor and Description |
---|
Builder(Asset selling,
Asset buying,
java.lang.String amount,
java.lang.String price)
Creates a new CreatePassiveOffer builder.
|
Modifier and Type | Method and Description |
---|---|
CreatePassiveOfferOperation |
build()
Builds an operation
|
CreatePassiveOfferOperation.Builder |
setSourceAccount(KeyPair sourceAccount)
Sets the source account for this operation.
|
public Builder(Asset selling, Asset buying, java.lang.String amount, java.lang.String price)
selling
- The asset being sold in this operationbuying
- The asset being bought in this operationamount
- Amount of selling being sold.price
- Price of 1 unit of selling in terms of buying.java.lang.ArithmeticException
- when amount has more than 7 decimal places.public CreatePassiveOfferOperation.Builder setSourceAccount(KeyPair sourceAccount)
sourceAccount
- The operation's source account.public CreatePassiveOfferOperation build()