SymbolTransactionFactory⚓︎
- SymbolTransactionFactory
- Factory for creating Symbol transactions.
Constructors⚓︎
new SymbolTransactionFactory()⚓︎
Creates a factory for the specified network.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
network |
Network |
Symbol network. |
typeRuleOverrides? |
Map<string, Function> |
Type rule overrides. |
Returns⚓︎
TransactionFactory
Accessors⚓︎
ruleNames⚓︎
Get Signature⚓︎
- SymbolTransactionFactory.ruleNames
- Gets rule names with registered hints.
Returns⚓︎
string[]
Rule names with registered hints.
static⚓︎
Get Signature⚓︎
- SymbolTransactionFactory.static
- Gets class type.
Returns⚓︎
typeof default
Class type.
Methods⚓︎
create()⚓︎
- SymbolTransactionFactory.create
- Creates a transaction from a transaction descriptor.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
transactionDescriptor |
object |
Transaction descriptor. |
autosort? |
boolean |
When set (default), descriptor arrays requiring ordering will be automatically sorted. When unset, descriptor arrays will be presumed to be already sorted. |
Returns⚓︎
Newly created transaction.
createEmbedded()⚓︎
- SymbolTransactionFactory.createEmbedded
- Creates an embedded transaction from a transaction descriptor.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
transactionDescriptor |
object |
Transaction descriptor. |
autosort? |
boolean |
When set (default), descriptor arrays requiring ordering will be automatically sorted. When unset, descriptor arrays will be presumed to be already sorted. |
Returns⚓︎
Newly created transaction.
attachSignature()⚓︎
- SymbolTransactionFactory.attachSignature
- Attaches a signature to a transaction.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
transaction |
Transaction |
Transaction object. |
signature |
Signature |
Signature to attach. |
Returns⚓︎
string
JSON transaction payload.
deserialize()⚓︎
- SymbolTransactionFactory.deserialize
- Deserializes a transaction from a binary payload.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
payload |
Uint8Array |
Binary payload. |
Returns⚓︎
Deserialized transaction.
deserializeEmbedded()⚓︎
- SymbolTransactionFactory.deserializeEmbedded
- Deserializes an embedded transaction from a binary payload.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
payload |
Uint8Array |
Binary payload. |
Returns⚓︎
Deserialized embedded transaction.
lookupTransactionName()⚓︎
- SymbolTransactionFactory.lookupTransactionName
- Looks up the friendly name for the specified transaction.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
transactionType |
TransactionType |
Transaction type. |
transactionVersion |
number |
Transaction version. |
Returns⚓︎
string
Transaction friendly name.