Options
Everything you can set, grouped by what it is for.
All of these are passed to new TokenFlightWidget({ … }), the first three directly and the rest inside config. Only the first three are required.
Set up
Start from a pair
Fix an address or a token
By default the user can change everything. These keep what you set.
Look
More
Change it later
ts
widget.update({ config: { amount: "25", theme: "dark" } }); // only the keys you pass change
widget.destroy(); // remove the frameshowWallet, locale and the wallet adapter are read once, when you call initialize(); to change them, destroy the widget and create it again. Options from tokenflight-embed that this widget does not have (referrer, methods, fromTokens, ...) are ignored, with a console warning.