Class CryptoAllowanceData
Allowance information retrieved from a mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class CryptoAllowanceData
Properties
| Edit this page View SourceAmount
The remaining amount of hBar (in tinybars) the allowed spender may spend from the owner account.
Declaration
[JsonPropertyName("amount")]
[JsonConverter(typeof(LongMirrorConverter))]
public long Amount { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Remarks
Before 3.0.0 this property held the amount originally granted, now AmountGranted; it now matches Amount.
AmountGranted
The amount of hBar (in tinybars) the allowed spender was originally granted.
Declaration
[JsonPropertyName("amount_granted")]
[JsonConverter(typeof(LongMirrorConverter))]
public long AmountGranted { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Owner
ID of the allowance owner.
Declaration
[JsonPropertyName("owner")]
public EntityId Owner { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Spender
ID of the account allowed to spend hBar from the owner's account.
Declaration
[JsonPropertyName("spender")]
public EntityId Spender { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Timestamp
The consensus-timestamp range during which this allowance record is valid.
Declaration
[JsonPropertyName("timestamp")]
public TimestampRangeData? Timestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| TimestampRangeData |