Show / Hide Table of Contents

Class CryptoAllowance

Represents an allowance allocation permitting a spender account privileges of spending the specified amount of hBars from the owning account.

Inheritance
object
CryptoAllowance
Implements
IEquatable<CryptoAllowance>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record CryptoAllowance : IEquatable<CryptoAllowance>

Constructors

| Edit this page View Source

CryptoAllowance(EntityId, EntityId, long)

Represents an allowance allocation permitting a delegate account privileges of spending the specified amount of hBars from the owning account.

Declaration
public CryptoAllowance(EntityId owner, EntityId spender, long amount)
Parameters
Type Name Description
EntityId owner

The account holding the hBars that may be spent by the delegate spender.

EntityId spender

The account that may spend the allocated allowance of hBars

long amount

The specific amount of hBars that the spender may spend from the owner's account.

Exceptions
Type Condition
ArgumentException

If any of the addresses are null or empty.

ArgumentOutOfRangeException

If the amount of allowance is less than zero.

Properties

| Edit this page View Source

Amount

The specific amount of hBars that the spender may spend from the owner's account.

Declaration
public long Amount { get; }
Property Value
Type Description
long
| Edit this page View Source

Owner

The account holding the hBars that may be spent by the delegate spender.

Declaration
public EntityId Owner { get; }
Property Value
Type Description
EntityId
| Edit this page View Source

Spender

The account that may spend the allocated allowance of hBars

Declaration
public EntityId Spender { get; }
Property Value
Type Description
EntityId

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph