Casper.Network.SDK
Show / Hide Table of Contents

Class Transfer

Represents a version 2 transfer from one purse to another

Inheritance
object
Transfer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
[JsonConverter(typeof(Transfer.TransferConverter))]
public class Transfer

Constructors

| Edit this page View Source

Transfer()

Declaration
public Transfer()

Fields

| Edit this page View Source

_transferV1

Declaration
protected TransferV1 _transferV1
Field Value
Type Description
TransferV1
| Edit this page View Source

_version

Declaration
protected int _version
Field Value
Type Description
int

Properties

| Edit this page View Source

Amount

Transfer amount

Declaration
[JsonPropertyName("amount")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger Amount { get; init; }
Property Value
Type Description
BigInteger
| Edit this page View Source

From

Entity from which transfer was executed

Declaration
[JsonPropertyName("from")]
public InitiatorAddr From { get; init; }
Property Value
Type Description
InitiatorAddr
| Edit this page View Source

Gas

Gas

Declaration
[JsonPropertyName("gas")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger Gas { get; init; }
Property Value
Type Description
BigInteger
| Edit this page View Source

Id

User-defined id

Declaration
[JsonPropertyName("id")]
public ulong? Id { get; init; }
Property Value
Type Description
ulong?
| Edit this page View Source

Source

Source purse

Declaration
[JsonPropertyName("source")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef Source { get; init; }
Property Value
Type Description
URef
| Edit this page View Source

Target

Target purse

Declaration
[JsonPropertyName("target")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef Target { get; init; }
Property Value
Type Description
URef
| Edit this page View Source

To

Account to which funds are transferred

Declaration
[JsonPropertyName("to")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public AccountHashKey To { get; init; }
Property Value
Type Description
AccountHashKey
| Edit this page View Source

TransactionHash

Transaction that created the transfer

Declaration
[JsonPropertyName("transaction_hash")]
public TransactionHash TransactionHash { get; init; }
Property Value
Type Description
TransactionHash
| Edit this page View Source

Version

Declaration
[JsonIgnore]
public int Version { get; }
Property Value
Type Description
int

Operators

| Edit this page View Source

explicit operator TransferV1(Transfer)

Declaration
public static explicit operator TransferV1(Transfer transfer)
Parameters
Type Name Description
Transfer transfer
Returns
Type Description
TransferV1
| Edit this page View Source

explicit operator Transfer(TransferV1)

Declaration
public static explicit operator Transfer(TransferV1 transfer)
Parameters
Type Name Description
TransferV1 transfer
Returns
Type Description
Transfer
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC