Class CreatePassiveSellOfferOperation.Builder
Builds CreatePassiveOffer operation.
Inheritance
System.Object
CreatePassiveSellOfferOperation.Builder
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class Builder : object
Constructors
Builder(Asset, Asset, String, String)
Creates a new CreatePassiveOffer builder.
Declaration
public Builder(Asset selling, Asset buying, string amount, string price)
Parameters
Type | Name | Description |
---|---|---|
Asset | selling | The asset being sold in this operation |
Asset | buying | The asset being bought in this operation |
System.String | amount | Amount of selling being sold. |
System.String | price | Price of 1 unit of selling in terms of buying. |
Builder(CreatePassiveSellOfferOp)
Construct a new CreatePassiveOffer builder from a CreatePassiveOfferOp XDR.
Declaration
public Builder(CreatePassiveSellOfferOp op)
Parameters
Type | Name | Description |
---|---|---|
stellar_dotnet_sdk.xdr.CreatePassiveSellOfferOp | op |
Methods
Build()
Builds an operation
Declaration
public CreatePassiveSellOfferOperation Build()
Returns
CreatePassiveSellOfferOperation
|
SetSourceAccount(KeyPair)
Sets the source account for this operation.
Declaration
public CreatePassiveSellOfferOperation.Builder SetSourceAccount(KeyPair sourceAccount)
Parameters
Type | Name | Description |
---|---|---|
KeyPair | sourceAccount | The operation's source account. |
Returns
CreatePassiveSellOfferOperation.Builder
Builder object so you can chain methods. |