api_haystack_needs_optin
Check if an Algorand address needs to opt into an asset before swapping. Returns true if opt-in is required, false otherwise. Use before executing swaps to determine if wallet_optin_asset should be called first.
Instructions
Check if an Algorand address needs to opt into an asset before swapping. Returns true if opt-in is needed, false otherwise. Always returns false for ALGO (ASA 0). Use before executing a swap to determine if wallet_optin_asset should be called first.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Algorand address to check | |
| assetId | Yes | Asset ID to check opt-in status for | |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |