As well as the global configuration properties provided via the WidgetConfigProvider (see Configuration), the widgets each accept a number of properties.
Making transfers
The package will make EVM and Solana transfers by default. If you want to implement your own custom transfer logic you can pass in a makeTransfer function as widget property.
The function is called with an object that contains details about the transaction, which is typed like this:
Your makeTransfer function should return the transaction hash and a transactionLink, which are used when displaying the transfer success screen.
Example
The makeTransfer function is called with a second argument that defines the widget type. This can be useful if you have enabled account abstraction and need to modify the transfer behaviour in some way, or log analytics events, based on the widget type (i.e. swap, deposit or withdraw).