Constructor
new Transaction(blkNum1, txIndex1, oIndex1, sig1, blkNum2, txIndex2, oIndex2, sig2, newOwner1, denom1, newOwner2, denom2, fee, type, token)
Create a Transaction
Parameters:
Name |
Type |
Description |
blkNum1 |
number
|
block number 1 |
txIndex1 |
number
|
transaction number 1 |
oIndex1 |
number
|
output index 1 |
sig1 |
string
|
signature 1 |
blkNum2 |
number
|
block number 2 |
txIndex2 |
number
|
transaction number 2 |
oIndex2 |
number
|
output index 2 |
sig2 |
string
|
signature 2 |
newOwner1 |
string
|
new owner 1 |
denom1 |
string
|
amount 1 |
newOwner2 |
string
|
new owner 2 |
denom2 |
string
|
amount 2 |
fee |
string
|
fee |
type |
TxType
|
type of transaction |
token |
string
|
token address |
- Source:
Members
(static, readonly) TxType :TxType
Enum for transaction types
Type:
- Source:
Methods
(static) fromJSON(json)
Parameters:
Name |
Type |
Description |
json |
*
|
|
- Source:
data()
- Source:
encode(includingSig)
Parameters:
Name |
Type |
Description |
includingSig |
*
|
|
- Source:
hash()
- Source:
merkleData()
- Source:
merkleHash()
- Source:
setSignature(sig1, sig2)
Set signature of the transaction
Parameters:
Name |
Type |
Description |
sig1 |
*
|
|
sig2 |
*
|
|
- Source:
toJSON()
- Source:
toString(includingSig)
Parameters:
Name |
Type |
Description |
includingSig |
*
|
|
- Source: