Class Transaction
A versioned wrapper for a TransactionV1 or Deploy.
Assembly: Casper.Network.SDK.dll
Syntax
[JsonConverter(typeof(Transaction.TransactionConverter))]
public class Transaction
Fields
|
Edit this page
View Source
_version
Declaration
protected TransactionVersion _version
Field Value
Properties
|
Edit this page
View Source
Approvals
List of signers and signatures for this transaction.
Declaration
public List<Approval> Approvals { get; init; }
Property Value
|
Edit this page
View Source
ChainName
Name of the chain where the deploy is executed.
Declaration
public string ChainName { get; set; }
Property Value
|
Edit this page
View Source
Hash
Declaration
public string Hash { get; init; }
Property Value
|
Edit this page
View Source
InitiatorAddr
The address of the initiator of a transaction.
Declaration
public InitiatorAddr InitiatorAddr { get; set; }
Property Value
|
Edit this page
View Source
Invocation
Declaration
public Transaction.ITransactionInvocation Invocation { get; init; }
Property Value
|
Edit this page
View Source
PricingMode
Pricing mode of a Transaction.
Declaration
public IPricingMode PricingMode { get; set; }
Property Value
|
Edit this page
View Source
Scheduling
Declaration
public ITransactionV1Scheduling Scheduling { get; set; }
Property Value
|
Edit this page
View Source
Timestamp
Timestamp formatted as per RFC 3339
Declaration
public ulong Timestamp { get; set; }
Property Value
|
Edit this page
View Source
Ttl
Duration of the Deploy in milliseconds (from timestamp).
Declaration
public ulong Ttl { get; set; }
Property Value
|
Edit this page
View Source
Version
Returns the version of the transaction (0=Deploy, 1=TransactionV1) .
Declaration
public TransactionVersion Version { get; }
Property Value
Methods
|
Edit this page
View Source
Sign(KeyPair)
Signs the transaction with a private key and adds a new Approval to it.
Declaration
public void Sign(KeyPair keyPair)
Parameters
| Type |
Name |
Description |
| KeyPair |
keyPair |
|
Operators
|
Edit this page
View Source
explicit operator Transaction(Deploy)
Declaration
public static explicit operator Transaction(Deploy deploy)
Parameters
| Type |
Name |
Description |
| Deploy |
deploy |
|
Returns
|
Edit this page
View Source
explicit operator Deploy(Transaction)
Declaration
public static explicit operator Deploy(Transaction transaction)
Parameters
Returns
|
Edit this page
View Source
explicit operator TransactionV1(Transaction)
Declaration
public static explicit operator TransactionV1(Transaction transaction)
Parameters
Returns
|
Edit this page
View Source
explicit operator Transaction(TransactionV1)
Declaration
public static explicit operator Transaction(TransactionV1 transactionV1)
Parameters
Returns