Show / Hide Table of Contents

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 Source

GenesisHash

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

Signer

A PublicKey of the account who signs this transaction. This is derived from the PublicKey.

Declaration
Address Signer { get; }
Property Value
Type Description
Address
| Improve this Doc View Source

Timestamp

The time this transaction is created and signed.

Declaration
DateTimeOffset Timestamp { get; }
Property Value
Type Description
DateTimeOffset
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium