> For the complete documentation index, see [llms.txt](https://cetus-1.gitbook.io/cetus-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cetus-1.gitbook.io/cetus-developer-docs/developer/via-sdk-v2/sdk-modules/cetusprotocol-dca-sdk/query-dca-token-whitelist.md).

# Query DCA token whitelist

### Token Whitelist

When whitelist mode is enabled on-chain, only listed coin types can be used as input and/or output. Query allowed coins with `getDcaCoinWhiteList(whitelist_mode)`:

<table data-header-hidden><thead><tr><th width="179.630126953125"></th><th></th></tr></thead><tbody><tr><td><code>whitelist_mode</code></td><td>Behavior</td></tr><tr><td><code>0</code></td><td>Whitelist disabled; returns empty lists</td></tr><tr><td><code>1</code></td><td>Return input-coin whitelist only</td></tr><tr><td><code>2</code></td><td>Return output-coin whitelist only</td></tr><tr><td><code>3</code></td><td>Return both input and output whitelists</td></tr></tbody></table>

```typescript
const { in_coin_list, out_coin_list } = await sdk.Dca.getDcaCoinWhiteList(3)
```
