Constructor
new TransactionFactory(network, typeRuleOverrides)
Creates a factory for the specified network.
Parameters:
Name | Type | Description |
---|---|---|
network |
Network | NEM network. |
typeRuleOverrides |
Map | Type rule overrides. |
- Source:
Methods
(static) attachSignature(transaction, signature) → {string}
Attaches a signature to a transaction.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
object | Transaction object. |
signature |
Signature | Signature to attach. |
- Source:
Returns:
JSON transaction payload.
- Type
- string
(static) attachSignature(transaction, signature) → {string}
Attaches a signature to a transaction.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
object | Transaction object. |
signature |
Signature | Signature to attach. |
- Source:
Returns:
JSON transaction payload.
- Type
- string
(static) toNonVerifiableTransaction(transaction) → {object}
Converts a transaction to a non-verifiable transaction.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
object | Transaction object. |
- Source:
Returns:
Non-verifiable transaction object.
- Type
- object
create(transactionDescriptor) → {object}
Creates a transaction from a transaction descriptor.
Parameters:
Name | Type | Description |
---|---|---|
transactionDescriptor |
object | Transaction descriptor. |
- Source:
Returns:
Newly created transaction.
- Type
- object
create(transactionDescriptor) → {object}
Creates a transaction from a transaction descriptor.
Parameters:
Name | Type | Description |
---|---|---|
transactionDescriptor |
object | Transaction descriptor. |
- Source:
Returns:
Newly created transaction.
- Type
- object
createEmbedded(transactionDescriptor) → {object}
Creates an embedded transaction from a transaction descriptor.
Parameters:
Name | Type | Description |
---|---|---|
transactionDescriptor |
object | Transaction descriptor. |
- Source:
Returns:
Newly created transaction.
- Type
- object