Build native pool manifest
build_pool_manifestBuilds one native pool transaction. Operations: "create" (new pool, ALWAYS guarded by a manager badge: a fresh badge minted in the same transaction, or managerBadge; poolProfile and the badge fields are written in the same transaction), "contribute" (add liquidity, needs the manager badge), "deposit" / "withdraw" (move reserves without minting/burning units, need the manager badge), "redeem" (burn pool units, public), "profile" (metadata of the pool and its pool unit, needs the owner badge), "manage" (retire a pool in one transaction with any of emptyReserves / markRetired / freezeProfile; freezing is IRREVERSIBLE: confirm with the user first). Badges are resolved from the account automatically. Returns the manifest for the user to sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | create only: "one", "two" or "multi" resources | |
| pool | No | Pool address (every operation except create) | |
| units | No | redeem only: pool units to burn | |
| locale | Yes | Language of the console links: "en" or "es" | en |
| account | Yes | Account that signs, pays and presents the badges | |
| amounts | No | contribute: { resource: amount } for EVERY pool resource. deposit/withdraw: one or more entries, all moved in one transaction. | |
| network | Yes | Radix network: "mainnet" (production) or "stokenet" (testnet) | mainnet |
| badgeName | No | create only: name of the new manager badge | |
| operation | Yes | What to do | |
| resources | No | create only: resource addresses the pool holds | |
| badgeSymbol | No | create only: symbol of the new manager badge | |
| markRetired | No | manage: add the "retired" tag to the pool and its pool unit, keeping their current tags (owner badge) | |
| poolProfile | No | profile, or create (written in the same transaction): pool metadata (blank fields are not written). The pool unit cannot be named at creation: its address does not exist until then; use "profile" afterwards. | |
| unitProfile | No | profile only: pool unit metadata to write | |
| badgeIconUrl | No | create only: icon URL of the new manager badge | |
| managerBadge | No | create only: guard the pool with this badge resource instead of minting a new one | |
| emptyReserves | No | manage: take every reserve out to the account (manager badge). Burns no units: other holders are left with nothing to redeem. | |
| freezeProfile | No | manage: lock the profile metadata keys and the owner role of the pool and its unit FOR GOOD (owner badge). Irreversible. The manager role of a native pool cannot be locked. | |
| badgeDescription | No | create only: description of the new manager badge |