ModuleSDK
Modules
getAutoSaveAction

getAutoSaveAction

Get the action to execute when the auto-save event is triggered. Note that this should be triggered by a relayer, such as Rhinestone Automations.

Usage

const autoSaveAction = getAutoSaveAction({
  token: '0x123...',
  amountReceived: 1000000,
})

Parameters

token

The address of the received token.

amountReceived

  • Type: number

The amount of the token received.

Returns

action

The action to execute to trigger the auto-save.