Interface ITxMetadata
A common interface for transactions that do not have any proofs nor actions.
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public interface ITxMetadata
Properties
| Improve this Doc View SourceGenesisHash
A HashDigest<T> value of the genesis which this transaction is made from. This can be null iff the transaction is contained in the genesis block.
Declaration
BlockHash? GenesisHash { get; }
Property Value
Type | Description |
---|---|
Nullable<BlockHash> |
Nonce
The number of previous Transaction<T>s committed by the Signer of this transaction. This nonce is used for preventing replay attack.
Declaration
long Nonce { get; }
Property Value
Type | Description |
---|---|
Int64 |
Remarks
Don't confuse this with Nonce for proof-of-work.
PublicKey
A PublicKey of the account who signs this transaction. The Signer address is always corresponding to this for each transaction. This cannot be null.
Declaration
PublicKey PublicKey { get; }
Property Value
Type | Description |
---|---|
PublicKey |
Signer
Declaration
Address Signer { get; }
Property Value
Type | Description |
---|---|
Address |
Timestamp
The time this transaction is created and signed.
Declaration
DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
UpdatedAddresses
An approximated list of addresses whose states would be affected by actions in this transaction. However, it could be wrong.
Declaration
IImmutableSet<Address> UpdatedAddresses { get; }
Property Value
Type | Description |
---|---|
IImmutableSet<Address> |