ModuleSDK
Modules
getScheduledTransferData

getScheduledTransferData

Get the encoded data for a scheduled transfer.

Usage

const data = getScheduledTransferData({
  scheduledTransfer: {
    amount: 10000,
    recipient: '0x123...',
  },
})

Parameters

scheduledTransfer.amount

  • Type: number

The amount of the token to transfer.

scheduledTransfer.recipient

The address of the recipient of the transfer.

scheduledTransfer.token (optional)

  • Type: { token_address: Address, decimals: number }

The address of the token to transfer. If not provided, the native token will be used.

scheduledTransfer.maxGasPrice (optional)

  • Type: number

The maximum gas price for the transfer.

Returns

data

The encoded data for the scheduled transfer.