Class PaymentOperation.Builder
Builds Payment operation.
Inheritance
System.Object
PaymentOperation.Builder
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class Builder : object
Constructors
Builder(IAccountId, Asset, String)
Creates a new PaymentOperation builder.
Declaration
public Builder(IAccountId destination, Asset asset, string amount)
Parameters
Type | Name | Description |
---|---|---|
IAccountId | destination | The destination keypair (uses only the public key). |
Asset | asset | The asset to send. |
System.String | amount | The amount to send in lumens. |
Builder(PaymentOp)
Construct a new PaymentOperation builder from a PaymentOp XDR.
Declaration
public Builder(PaymentOp op)
Parameters
Type | Name | Description |
---|---|---|
stellar_dotnet_sdk.xdr.PaymentOp | op | stellar_dotnet_sdk.xdr.PaymentOp |
Methods
Build()
SetSourceAccount(IAccountId)
Sets the source account for this operation.
Declaration
public PaymentOperation.Builder SetSourceAccount(IAccountId account)
Parameters
Type | Name | Description |
---|---|---|
IAccountId | account | The operation's source account. |
Returns
PaymentOperation.Builder
Builder object so you can chain methods. |