Class ManageSellOfferOperation.Builder
Inheritance
System.Object
ManageSellOfferOperation.Builder
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class Builder : object
Constructors
Builder(Asset, Asset, String, String)
Creates a new ManageSellOffer builder. If you want to update existing offer use SetOfferId(Int64).
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(ManageSellOfferOp)
Construct a new CreateAccount builder from a CreateAccountOp XDR.
Declaration
public Builder(ManageSellOfferOp op)
Parameters
Type | Name | Description |
---|---|---|
stellar_dotnet_sdk.xdr.ManageSellOfferOp | op |
Methods
Build()
Builds an operation
Declaration
public ManageSellOfferOperation Build()
Returns
ManageSellOfferOperation
|
SetOfferId(Int64)
Declaration
public ManageSellOfferOperation.Builder SetOfferId(long offerId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offerId |
Returns
ManageSellOfferOperation.Builder
|
SetSourceAccount(KeyPair)
Sets the source account for this operation.
Declaration
public ManageSellOfferOperation.Builder SetSourceAccount(KeyPair sourceAccount)
Parameters
Type | Name | Description |
---|---|---|
KeyPair | sourceAccount | The operation's source account. |
Returns
ManageSellOfferOperation.Builder
Builder object so you can chain methods. |