Class CryptoTransfer
Represents a crypto transfer (Address, Amount)
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record CryptoTransfer : IEquatable<CryptoTransfer>
Constructors
| Edit this page View SourceCryptoTransfer(EntityId, long, bool, HookCall?)
Public Constructor, a
CryptoTransfer
is immutable after creation.
Declaration
public CryptoTransfer(EntityId address, long amount, bool delegated = false, HookCall? allowanceHook = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | address | The account receiving or sending the crypto. |
| long | amount |
. Positive values indicate an inflow of tinybars to the associated
. |
| bool | delegated | Indicates the parties involved in the transaction are acting as delegates through a granted allowance. |
| HookCall | allowanceHook | Optional allowance hook call for this transfer. |
Properties
| Edit this page View SourceAddress
The account receiving or sending the crypto.
Declaration
public EntityId Address { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
AllowanceHook
Optional allowance hook call for this transfer. The hook's CallMode determines whether it is invoked before the transfer only, or both before and after.
Declaration
public HookCall? AllowanceHook { get; }
Property Value
| Type | Description |
|---|---|
| HookCall |
Amount
The amount of crypto transferred in tinybars. Negative values
indicate an outflow of tinybars from the
Address
. Positive values indicate an inflow of tinybars to the associated
Address
.
Declaration
public long Amount { get; }
Property Value
| Type | Description |
|---|---|
| long |
Delegated
Indicates the parties involved in the transaction are acting as delegates through a granted allowance.
Declaration
public bool Delegated { get; }
Property Value
| Type | Description |
|---|---|
| bool |