Search Results for

    Show / Hide Table of Contents

    Struct MinBalance

    The minimum balance in micro algos required for a given amount of data associated with an account.

    Namespace: Algorand.Unity
    Assembly: cs.temp.dll.dll
    Syntax
    public struct MinBalance

    Constructors

    MinBalance(AlgodAccount)

    Get the minimum balance of an account.

    Declaration
    public MinBalance(AlgodAccount accountInfo)
    Parameters
    Type Name Description
    AlgodAccount accountInfo

    The Account to obtain the minimum balance.

    MinBalance(IndexerAccount)

    Get the minimum balance of an account.

    Declaration
    public MinBalance(IndexerAccount accountInfo)
    Parameters
    Type Name Description
    IndexerAccount accountInfo

    The Account to obtain the minimum balance.

    MinBalance(UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64)

    Get the minimum balance from explicit data.

    Declaration
    public MinBalance(ulong assets = 0UL, ulong applicationsOptedIn = 0UL, ulong applicationsCreated = 0UL, ulong applicationExtraPages = 0UL, ulong applicationSchemaUints = 0UL, ulong applicationSchemaByteSlices = 0UL, ulong boxes = 0UL, ulong boxBytes = 0UL)
    Parameters
    Type Name Description
    UInt64 assets

    The number of assets opted in and created.

    UInt64 applicationsOptedIn

    The number of applications opted in.

    UInt64 applicationsCreated

    The number of applications created.

    UInt64 applicationExtraPages

    The total number of extra application pages.

    UInt64 applicationSchemaUints

    The total number of application schema uints.

    UInt64 applicationSchemaByteSlices

    The total number of application schema byte slices.

    UInt64 boxes

    The total number of boxes associated with the account.

    UInt64 boxBytes

    The total number of bytes associated with the boxes in the account.

    Fields

    ApplicationCreatedCost

    The minimum balance required per application created.

    Declaration
    public const ulong ApplicationCreatedCost = 100000UL
    Field Value
    Type Description
    UInt64

    ApplicationExtraPageCost

    The minimum balance required per extra application page.

    Declaration
    public const ulong ApplicationExtraPageCost = 100000UL
    Field Value
    Type Description
    UInt64

    ApplicationExtraPages

    The total number of application extra pages.

    Declaration
    public readonly ulong ApplicationExtraPages
    Field Value
    Type Description
    UInt64

    ApplicationOptedInCost

    The minimum balance required per application opted in.

    Declaration
    public const ulong ApplicationOptedInCost = 100000UL
    Field Value
    Type Description
    UInt64

    ApplicationSchemaByteSlices

    The total number of byte slices in application schema.

    Declaration
    public readonly ulong ApplicationSchemaByteSlices
    Field Value
    Type Description
    UInt64

    ApplicationSchemaUints

    The total number of uints in application schema.

    Declaration
    public readonly ulong ApplicationSchemaUints
    Field Value
    Type Description
    UInt64

    ApplicationsCreated

    The number of applications created.

    Declaration
    public readonly ulong ApplicationsCreated
    Field Value
    Type Description
    UInt64

    ApplicationsOptedIn

    The number of applications opted in.

    Declaration
    public readonly ulong ApplicationsOptedIn
    Field Value
    Type Description
    UInt64

    AssetCost

    The minimum balance required per Asset created or opted in.

    Declaration
    public const ulong AssetCost = 100000UL
    Field Value
    Type Description
    UInt64

    Assets

    The number of assets opted in and created.

    Declaration
    public readonly ulong Assets
    Field Value
    Type Description
    UInt64

    BoxByteCost

    The minimum balance required per box byte.

    Declaration
    public const ulong BoxByteCost = 400UL
    Field Value
    Type Description
    UInt64

    BoxBytes

    The total number of bytes associated with the boxes in the account.

    Declaration
    public readonly ulong BoxBytes
    Field Value
    Type Description
    UInt64

    BoxCost

    The minimum balance required per box.

    Declaration
    public const ulong BoxCost = 2500UL
    Field Value
    Type Description
    UInt64

    Boxes

    The total number of boxes associated with the account.

    Declaration
    public readonly ulong Boxes
    Field Value
    Type Description
    UInt64

    ByteSliceCost

    The minimum balance required per byteslice in application schema.

    Declaration
    public const ulong ByteSliceCost = 50000UL
    Field Value
    Type Description
    UInt64

    UintCost

    The minimum balance required per uint in application schema.

    Declaration
    public const ulong UintCost = 28500UL
    Field Value
    Type Description
    UInt64

    Methods

    Estimate()

    Estimate the min balance with its current parameters.

    Declaration
    public ulong Estimate()
    Returns
    Type Description
    UInt64

    An estimate of the min balance in Micro Algos.

    With(Optional<UInt64>, Optional<UInt64>, Optional<UInt64>, Optional<UInt64>, Optional<UInt64>, Optional<UInt64>, Optional<UInt64>, Optional<UInt64>)

    Modify this min balance with a different amount of data.

    Declaration
    public MinBalance With(Optional<ulong> assets = default(Optional<ulong>), Optional<ulong> applicationsOptedIn = default(Optional<ulong>), Optional<ulong> applicationsCreated = default(Optional<ulong>), Optional<ulong> applicationExtraPages = default(Optional<ulong>), Optional<ulong> applicationSchemaUints = default(Optional<ulong>), Optional<ulong> applicationSchemaByteSlices = default(Optional<ulong>), Optional<ulong> boxes = default(Optional<ulong>), Optional<ulong> boxBytes = default(Optional<ulong>))
    Parameters
    Type Name Description
    Optional<UInt64> assets

    The number of assets opted in and created.

    Optional<UInt64> applicationsOptedIn

    The number of applications opted in.

    Optional<UInt64> applicationsCreated

    The number of applications created.

    Optional<UInt64> applicationExtraPages

    The total number of extra application pages.

    Optional<UInt64> applicationSchemaUints

    The total number of application schema uints.

    Optional<UInt64> applicationSchemaByteSlices

    The total number of application schema byte slices.

    Optional<UInt64> boxes

    The total number of boxes associated with the account.

    Optional<UInt64> boxBytes

    The total number of bytes associated with the boxes in the account.

    Returns
    Type Description
    MinBalance

    A MinBalance with given parameters replaced.

    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾