Build DEX liquidity manifest
build_dex_manifestBuilds one transaction on a pool a DEX runs. "add": liquidity through the DEX component, for Ociswap Basic and Flex (both tokens, in the reserves' ratio; the excess comes back), DefiPlaza (one token, its "side"; the other token too only when that side is in shortage) and Ociswap Precision (a price range: "range" full, or minPrice/maxPrice in y per x; you receive a position NFT). A DEX-run native pool refuses build_pool_manifest "contribute" (only its component may contribute), so use this. "claim_fees": the fees of Precision positions, keeping them. "withdraw_positions": closes Precision positions (liquidity + pending fees, the NFTs burn). The DEX is read from the ledger and the component must really run the pool; whether the DEX itself lists it is checked on mainnet (no DEX has a Stokenet API): if it is NOT listed, tell the user plainly before they sign. Returns the manifest and what the account would receive, simulated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | claim_fees / withdraw_positions: position NFT ids; default every position the account holds in that pool | |
| pool | Yes | Native pool (pool_…) a DEX runs, or the DEX component (component_…), e.g. a Precision pool | |
| side | No | add, DefiPlaza only: the side the liquidity goes to (default base) | |
| range | No | add, Precision only: "full" (default) or a price range in y per x | |
| locale | Yes | Language of the console links: "en" or "es" | en |
| account | Yes | Account that signs and receives | |
| amounts | No | add: { resource: amount }. Ociswap Basic/Flex: both tokens. DefiPlaza: the side's token (+ the other in shortage). Precision: the tokens the range takes. | |
| network | Yes | Radix network: "mainnet" (production) or "stokenet" (testnet) | mainnet |
| operation | Yes | What to do |