A Quick Start For Wallet & Terminal & Bot Developers
This page outlines the minimal steps to integrate with Flap for wallets, terminals and bots. Each step links to the detailed documentation.
Find the
Portalentrypoint. Our main protocol has a single entrypoint contract calledPortal. Use the deployed addresses listed in Deployed Contract Addresses.Index tokens (recommended). To index tokens launched on Flap, listen to
TokenCreatedand related events emitted byPortal. See Index Token Created Events for the full event list and indexing strategy. TheTokenCreatedevent only contains the IPFS CID of the metadata. To parse token metadata, follow Parse Token Meta.Skip indexing and query on demand (alternative). If you do not want to index, you can query token info directly from
Portalwith thegetTokenV*methods. See Inspect A Token for details.Tax tokens: query dynamic info on-chain. Tax tokens have dynamic fields (e.g., accumulated stats) that are best retrieved on-chain. Use the Tax Token Helper as described in Inspect A Tax Token. For vault-specific data, see how to inspect a tax token's vault.
Trade tokens. You can quote on-chain using
quoteExactInput, or compute quotes off-chain and submit swaps usingswapExactInput. See Trade Tokens for details.
Last updated