lifinance / widget

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://li.fi/widget
Apache License 2.0
114 stars 75 forks source link

Use the widget with external wallet #306

Closed netanel-utila closed 1 hour ago

netanel-utila commented 2 hours ago

Hi,

We are a wallet provider that want to experiment with your widget but we want to be able to communicate with the widgets directly via inputs / callbacks. For example, we want to be able to get the transaction EVM calldata and create the transaction using our API.

Do you support an external wallet client integration? I can't find useful information in the docs.

Thanks

chybisov commented 2 hours ago

@netanel-utila Hey, does your wallet support EIP-6963? We use Wagmi/Viem for wallet management, and if your wallet supports the standard, the widget will detect it automatically.

Docs: https://docs.li.fi/integrate-li.fi-widget/wallet-management

netanel-utila commented 2 hours ago

No, but I can create an adapter for this. But what about Solana? The wallet standard also supported?

chybisov commented 2 hours ago

@netanel-utila Yes, we also support Solana Wallet Standard and auto-detect Solana wallets. Please see this section https://docs.li.fi/integrate-li.fi-widget/wallet-management#svm-wallet-connection

netanel-utila commented 2 hours ago

One last question, I want to provide our clients a way to connect only to our addresses, I need to use the connect wallet onConnect feature?

netanel-utila commented 2 hours ago

I mean can I show them a custom list of addresses and let the choose?

chybisov commented 1 hour ago

@netanel-utila This will be off the widget logic managed by Wagmi/Solana-standard connectors. The widget will receive an address that is provided by those connectors. The widget doesn't manage internally to which wallet address you connect.

netanel-utila commented 1 hour ago

Great, I hope that I will be able to do this. Thanks

chybisov commented 1 hour ago

@netanel-utila happy to help. Don't hesitate to ask any questions if you have any in the process.