Optional
byInvocation target by hash, if specified.
Optional
byInvocation target by name, if specified.
Optional
byInvocation target by package hash, if specified.
Optional
byInvocation target by package name, if specified.
Static
fromDeserializes a Uint8Array
into a TransactionInvocationTarget
instance.
This method reconstructs a TransactionInvocationTarget
object from its serialized byte array representation.
The type of invocation target is determined by the tag extracted from the serialized data.
A deserialized TransactionInvocationTarget
instance.
Error - If the byte array is invalid, missing required fields, or contains an unrecognized tag.
0
: Represents an invocation target identified by a hash (ByHash
).1
: Represents an invocation target identified by a name (ByName
).2
: Represents an invocation target identified by a package hash and an optional version (ByPackageHash
).3
: Represents an invocation target identified by a package name and an optional version (ByPackageName
).const bytes = new Uint8Array([...]); // Provide valid TransactionInvocationTarget bytes
const invocationTarget = TransactionInvocationTarget.fromBytes(bytes);
console.log(invocationTarget); // Parsed TransactionInvocationTarget instance
The serialized byte array representing a TransactionInvocationTarget
.
Generated using TypeDoc
Represents a transaction invocation target, which can be one of the following: