Class Transfer
Represents a version 2 transfer from one purse to another
Assembly: Casper.Network.SDK.dll
Syntax
[JsonConverter(typeof(Transfer.TransferConverter))]
public class Transfer
Constructors
|
Edit this page
View Source
Transfer()
Declaration
Fields
|
Edit this page
View Source
_transferV1
Declaration
protected TransferV1 _transferV1
Field Value
|
Edit this page
View Source
_version
Declaration
Field Value
Properties
|
Edit this page
View Source
Amount
Declaration
[JsonPropertyName("amount")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger Amount { get; init; }
Property Value
|
Edit this page
View Source
From
Entity from which transfer was executed
Declaration
[JsonPropertyName("from")]
public InitiatorAddr From { get; init; }
Property Value
|
Edit this page
View Source
Gas
Declaration
[JsonPropertyName("gas")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger Gas { get; init; }
Property Value
|
Edit this page
View Source
Id
Declaration
[JsonPropertyName("id")]
public ulong? Id { get; init; }
Property Value
|
Edit this page
View Source
Source
Declaration
[JsonPropertyName("source")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef Source { get; init; }
Property Value
|
Edit this page
View Source
Target
Declaration
[JsonPropertyName("target")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef Target { get; init; }
Property Value
|
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
|
Edit this page
View Source
TransactionHash
Transaction that created the transfer
Declaration
[JsonPropertyName("transaction_hash")]
public TransactionHash TransactionHash { get; init; }
Property Value
|
Edit this page
View Source
Version
Declaration
[JsonIgnore]
public int Version { get; }
Property Value
Operators
|
Edit this page
View Source
explicit operator TransferV1(Transfer)
Declaration
public static explicit operator TransferV1(Transfer transfer)
Parameters
Returns
|
Edit this page
View Source
explicit operator Transfer(TransferV1)
Declaration
public static explicit operator Transfer(TransferV1 transfer)
Parameters
Returns