Show / Hide Table of Contents

Class CryptoTransfer

Represents a crypto transfer (Address, Amount)

Inheritance
object
CryptoTransfer
Implements
IEquatable<CryptoTransfer>
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 CryptoTransfer : IEquatable<CryptoTransfer>

Constructors

| Edit this page View Source

CryptoTransfer(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
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

.

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 Source

Address

The account receiving or sending the crypto.

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

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
| Edit this page View Source

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
| Edit this page View Source

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

Implements

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