Class TxInvoice
A concrete implementation of ITxInvoice.
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxInvoice : ITxInvoice, IEquatable<ITxInvoice>, IEquatable<TxInvoice>
Constructors
| Improve this Doc View SourceTxInvoice(ITxInvoice)
Creates a new TxInvoice instance by copying everything from another
invoice
.
Declaration
public TxInvoice(ITxInvoice invoice)
Parameters
Type | Name | Description |
---|---|---|
ITxInvoice | invoice | Another invoice to copy data from. |
See Also
| Improve this Doc View SourceTxInvoice(Nullable<BlockHash>, IEnumerable<Address>, Nullable<DateTimeOffset>, TxActionList, Nullable<FungibleAssetValue>, Nullable<Int64>)
Creates a new TxInvoice instance by filling data for its fields. There are some default values for some fields.
Declaration
public TxInvoice(BlockHash? genesisHash = null, IEnumerable<Address> updatedAddresses = null, DateTimeOffset? timestamp = null, TxActionList actions = null, FungibleAssetValue? maxGasPrice = null, long? gasLimit = null)
Parameters
Type | Name | Description |
---|---|---|
Nullable<BlockHash> | genesisHash | The value for GenesisHash. |
IEnumerable<Address> | updatedAddresses | The value for UpdatedAddresses. Empty by default. |
Nullable<DateTimeOffset> | timestamp | The value for Timestamp. Time of creation by default. |
TxActionList | actions | The value of Actions. TxActionList by default. |
Nullable<FungibleAssetValue> | maxGasPrice | The value of MaxGasPrice. |
Nullable<Int64> | gasLimit | The value of langword_csharp_Gas limit. |
See Also
| Improve this Doc View SourceTxInvoice(Nullable<BlockHash>, IImmutableSet<Address>, DateTimeOffset, TxActionList, Nullable<FungibleAssetValue>, Nullable<Int64>)
Creates a new TxInvoice instance by filling data for its fields.
Declaration
public TxInvoice(BlockHash? genesisHash, IImmutableSet<Address> updatedAddresses, DateTimeOffset timestamp, TxActionList actions, FungibleAssetValue? maxGasPrice, long? gasLimit)
Parameters
Type | Name | Description |
---|---|---|
Nullable<BlockHash> | genesisHash | The value for GenesisHash. |
IImmutableSet<Address> | updatedAddresses | The value for UpdatedAddresses. |
DateTimeOffset | timestamp | The value for Timestamp. |
TxActionList | actions | The value of Actions. |
Nullable<FungibleAssetValue> | maxGasPrice | The value of MaxGasPrice. |
Nullable<Int64> | gasLimit | The value of langword_csharp_Gas limit. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
See Also
Properties
| Improve this Doc View SourceActions
A list of actions in this transaction.
Declaration
[JsonConverter(typeof(TxActionListJsonConverter))]
public TxActionList Actions { get; }
Property Value
Type | Description |
---|---|
TxActionList |
See Also
| Improve this Doc View SourceGasLimit
The limit of the total amount of gas that the transaction will use.
This can be null if align the handling of that transaction
with the
Declaration
public long? GasLimit { get; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
See Also
| Improve this Doc View SourceGenesisHash
A BlockHash value of the genesis which this transaction is made from. This can be null iff the transaction is contained in the genesis block.
Declaration
public BlockHash? GenesisHash { get; }
Property Value
Type | Description |
---|---|
Nullable<BlockHash> |
See Also
| Improve this Doc View SourceMaxGasPrice
The maximum amount of FungibleAssetValue that the transaction author is
willing to pay for the transaction.
This can be null if align the handling of that transaction
with the
Declaration
public FungibleAssetValue? MaxGasPrice { get; }
Property Value
Type | Description |
---|---|
Nullable<FungibleAssetValue> |
See Also
| Improve this Doc View SourceTimestamp
The time this transaction is created and signed.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
See Also
| Improve this Doc View SourceUpdatedAddresses
An approximated list of addresses whose states would be affected by actions in this transaction. However, it could be wrong.
Declaration
public IImmutableSet<Address> UpdatedAddresses { get; }
Property Value
Type | Description |
---|---|
IImmutableSet<Address> |
See Also
Methods
| Improve this Doc View SourceEquals(TxInvoice)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public bool Equals(TxInvoice other)
Parameters
Type | Name | Description |
---|---|---|
TxInvoice | other |
Returns
Type | Description |
---|---|
Boolean |
See Also
| Improve this Doc View SourceEquals(Object)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
See Also
| Improve this Doc View SourceGetHashCode()
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
See Also
| Improve this Doc View SourceToString()
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
See Also
Explicit Interface Implementations
| Improve this Doc View SourceIEquatable<ITxInvoice>.Equals(ITxInvoice)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
bool IEquatable<ITxInvoice>.Equals(ITxInvoice other)
Parameters
Type | Name | Description |
---|---|---|
ITxInvoice | other |
Returns
Type | Description |
---|---|
Boolean |