Initializes a new TransactionEntryPoint
instance.
The type of transaction entry point.
Optional
customEntryPoint: stringAn optional identifier for custom entry points.
Optional
customCustom entry point identifier, used when the type
is Custom
.
The type of transaction entry point, represented as an enum.
Static
fromDeserializes a TransactionEntryPoint
from its byte representation.
This method takes a serialized byte array and reconstructs a TransactionEntryPoint
object.
It supports multiple entry point types, including both predefined and custom entry points.
A deserialized TransactionEntryPoint
instance.
Will throw an error if the byte array is invalid or has missing fields.
const serializedBytes = new Uint8Array([0, 1, 2, 3, ...]);
const entryPoint = TransactionEntryPoint.fromBytes(serializedBytes);
console.log(entryPoint.type); // Logs the entry point type
The byte array representing the serialized TransactionEntryPoint
.
Static
fromJSONCreates a TransactionEntryPoint
instance from a JSON representation.
A TransactionEntryPoint
instance.
An error if the JSON is invalid or the entry point is unknown.
The JSON representation of the transaction entry point.
Generated using TypeDoc
Represents a transaction entry point, which defines an action to be executed within the system. This class supports predefined entry points as well as custom-defined actions.