ScheduledTransaction is used to create a transaction that will be executed

  • The ScheduledTransaction object.
const transaction = new ScheduledTransaction({
payer: "0xPayerAddress",
sender: "0xSenderAddress",
nonce: 1,
index: 1,
target: "0xTargetAddress",
callData: "0xCallData",
value: 1,
chainId: 245022926,
gasLimit: 100,
maxFeePerGas: 100,
maxPriorityFeePerGas: 10
});

Constructors

Properties

neonSubType: 1 = 0x01
type: 127 = 0x7F

Methods

  • Encode the ScheduledTransaction object into a RLP array string.

    Returns string

  • Get the hash of the serialized ScheduledTransaction object. This hash is used to identify the transaction.

    Returns string

  • Serialize the ScheduledTransaction object into a hex string.

    Returns string

  • Serialize and return the node as bytes with the following layout:

    • gasLimit: 32 bytes
    • value: 32 bytes
    • childIndex: 2 bytes
    • successLimit: 2 bytes
    • trxHash: 32 bytes

    Parameters

    • childIndex: number

      The index of dependent transactions that must be executed before this one. Use the constant NO_CHILD_INDEX if there are no dependencies.

    • successLimit: number

      The number of successful preceding transactions required before this one can

    Returns Buffer

    • The serialized node as a buffer.
  • Decode a RLP string into a RlpStructuredData object.

    Parameters

    • data: string

    Returns RlpStructuredData