Constructor
new MoneroIncomingTransfer(state)
Construct the model.
Parameters:
Name | Type | Description |
---|---|---|
state |
MoneroTransfer | object | is existing state to initialize from (optional) |
Extends
Methods
copy()
- Overrides:
- Source:
getAccountIndex()
- Overrides:
- Source:
getAddress()
getAmount()
- Overrides:
- Source:
getNumSuggestedConfirmations() → {number}
Return how many confirmations till it's not economically worth re-writing the chain.
That is, the number of confirmations before the transaction is highly unlikely to be
double spent or overwritten and may be considered settled, e.g. for a merchant to trust
as finalized.
Returns:
is the number of confirmations before it's not worth rewriting the chain
- Type
- number
getSubaddressIndex()
getTx()
- Overrides:
- Source:
isIncoming()
- Overrides:
- Source:
isOutgoing()
- Overrides:
- Source:
merge(transfer)
Updates this transaction by merging the latest information from the given
transaction.
Merging can modify or build references to the transfer given so it
should not be re-used or it should be copied before calling this method.
Parameters:
Name | Type | Description |
---|---|---|
transfer |
MoneroIncomingTransfer | is the transfer to merge into this one |
- Overrides:
- Source:
setAccountIndex()
- Overrides:
- Source:
setAddress()
setAmount()
- Overrides:
- Source:
setNumSuggestedConfirmations()
setSubaddressIndex()
setTx()
- Overrides:
- Source:
toJson()
- Overrides:
- Source:
toString()
- Overrides:
- Source:
toString()
- Overrides:
- Source: