Show / Hide Table of Contents

Class ManageOfferOperation.Builder

Inheritance
System.Object
ManageOfferOperation.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 ManageOfferOperation Build()
Returns
ManageOfferOperation

SetOfferId(Int64)

Declaration
public ManageOfferOperation.Builder SetOfferId(long offerId)
Parameters
Type Name Description
System.Int64 offerId
Returns
ManageOfferOperation.Builder

SetSourceAccount(KeyPair)

Sets the source account for this operation.

Declaration
public ManageOfferOperation.Builder SetSourceAccount(KeyPair sourceAccount)
Parameters
Type Name Description
KeyPair sourceAccount

The operation's source account.

Returns
ManageOfferOperation.Builder

Builder object so you can chain methods.

Back to top Generated by DocFX