Complex Operations: Multiple Actions in One Command

Save time by chaining multiple actions together in a single command.

  • What it is: Ask Tator to perform a sequence of operations. Tator will intelligently understand the dependencies and execute them in the correct order.

  • How it Works: Use connecting words like "then" and "and" to link your commands.

  • Command Examples:

    • Buy then Send: Buy $50 of DEGEN on Base then send it to @friend

    • Swap and Send: Swap 0.1 ETH for USDC on Arbitrum and send 100 USDC to vitalik.eth

    • Bridge and Swap: Bridge 0.5 ETH from Ethereum to Base then swap it for AERO

  • How it Works (Under the Hood):

    • Tator identifies these requests as is_complex: true. It creates multiple SocialDexOperation objects and sets up dependencies between them, ensuring that one step completes successfully before the next one begins. For example, in a "bridge then swap" command, the output amount from the bridge is automatically used as the input for the swap, using the amount_type: 'from_previous'.

Last updated