Skip to content

How to execute a post-transaction contract call with the LI.FI widget while preserving free token selection? #679

Description

@bensaru

Description:
I’m using the LI.FI widget (see screenshot). After the LI.FI contract transaction completes, I need to call my own contract to track transaction data.

I see that ContractCall is currently only available in custom mode (checkout/deposit). However, custom mode restricts users from freely selecting the token they want to swap and also changes the page layout.

How can I achieve both:

  • Allow users to freely choose any token to swap (like in the normal widget mode), and
  • Execute my contract call automatically after the LI.FI transaction finishes?

Is there a recommended way to add a post-transaction hook without forcing custom mode?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions