Class AllowTrustOperation.Builder
Builds AllowTrust operation.
Inheritance
System.Object
AllowTrustOperation.Builder
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class Builder : object
Constructors
Builder(KeyPair, String, Boolean, Boolean)
Creates a new AllowTrust builder.
Declaration
public Builder(KeyPair trustor, string assetCode, bool authorize, bool authorizeToMaintainLiabilities)
Parameters
Type | Name | Description |
---|---|---|
KeyPair | trustor | The account of the recipient of the trustline. |
System.String | assetCode | The asset of the trustline the source account is authorizing. For example, if a gateway wants to allow another account to hold its USD credit, the type is USD. |
System.Boolean | authorize | Flag indicating whether the trustline is authorized. |
System.Boolean | authorizeToMaintainLiabilities | Flag indicating whether the trustline is authorized to maintain liabilities |
Builder(AllowTrustOp)
Builder to build the AllowTrust Operation given an XDR AllowTrustOp
Declaration
public Builder(AllowTrustOp op)
Parameters
Type | Name | Description |
---|---|---|
stellar_dotnet_sdk.xdr.AllowTrustOp | op |
Methods
Build()
SetSourceAccount(KeyPair)
Set source account of this operation
Declaration
public AllowTrustOperation.Builder SetSourceAccount(KeyPair sourceAccount)
Parameters
Type | Name | Description |
---|---|---|
KeyPair | sourceAccount | Source account |
Returns
AllowTrustOperation.Builder
Builder object so you can chain methods. |