Creates a new instance of TransactionScheduling
.
Optional
standard: objectThe standard scheduling with no delay.
Optional
futureEra: FutureEraSchedulingThe future era scheduling.
Optional
futureTimestamp: FutureTimestampSchedulingThe future timestamp scheduling.
Optional
futureRepresents scheduling to a future era with a specified eraID
.
Optional
futureRepresents scheduling to a future timestamp with a specified timestamp
.
Optional
standardRepresents the standard (immediate) scheduling with no future scheduling.
Determines the tag that corresponds to the current scheduling type.
The corresponding tag for the scheduling type.
Static
fromDeserializes a Uint8Array
into a TransactionScheduling
instance.
This method parses a byte array representation of a TransactionScheduling
object, determines the type of scheduling based on the tag, and reconstructs
the appropriate instance.
A TransactionScheduling
instance based on the serialized data.
Error - If the byte array is invalid, missing required fields, or contains an unrecognized scheduling tag.
TransactionSchedulingTag.Native
: Represents a native scheduling target.TransactionSchedulingTag.FutureEra
: Represents a scheduling target tied to a future era.TransactionSchedulingTag.FutureTimestamp
: Represents a scheduling target tied to a future timestamp.const bytes = new Uint8Array([...]); // Provide valid TransactionScheduling bytes
const scheduling = TransactionScheduling.fromBytes(bytes);
console.log(scheduling); // Parsed TransactionScheduling instance
The byte array to be deserialized.
Static
fromJSONCreates a TransactionScheduling
instance from a JSON object.
The deserialized TransactionScheduling
object.
Error if the JSON format is invalid.
The JSON object to deserialize into a TransactionScheduling
instance.
Generated using TypeDoc
Represents a transaction scheduling, which could be either immediate (standard), scheduled for a future era, or scheduled for a future timestamp.