# Meteora DBC token launches

`meteora.dbc_config` reads a supported existing on-chain launch configuration. `meteora.build_dbc_launch` prepares and simulates the official Token-2022 DBC initializer from pinned SDK 2.0.0. The hosted API receives only public keys. The local `meteora-dbc-launch` policy signs with the agent's encrypted payer wallet and a separate fresh mint wallet.

## Read and approve a configuration

```sh
block-cli call meteora dbc_config --params '{"config":"CONFIG_PUBLIC_ADDRESS"}' > work/dbc-config.json
```

Use an existing configuration selected for the intended token economics. Review the complete returned `configuration`, particularly supply, decimals, fee claimer, leftover receiver, base trading fee, migration fees and thresholds, migrated pool fees, and creator/partner liquidity percentages. These recipients can belong to third parties. The public configuration used in the verification evidence is a test fixture, not a recommendation.

The configuration's exact account bytes are SHA-256 hashed. The builder requires this `configHash` and embeds it, together with an explicit pool creation fee ceiling, in a canonical Memo instruction. Local inspection independently reads and decodes the account. Local signing rejects a changed configuration even when its address is unchanged.

Supported configurations have the current 1048-byte legacy layout, native SOL as the quote asset, an immutable Token-2022 base token, equal fixed pre/post-migration supply, 6–9 decimals, constant base fees, DAMM v2 migration, and at least 10% permanently locked liquidity. Transfer fees, hooks, dynamic base fees, fee schedulers, token vesting, liquidity vesting and mutable metadata are excluded. The initializer's simulation additionally enforces current on-chain rules.

## Prepare a launch

Create a separate mint keystore. Its public address becomes the new token mint; it must have no existing on-chain account. Configure payer and mint passwords separately through the agent runtime's secret store.

```sh
AGENT_CRYPTO_WALLET_PASSWORD="$AGENT_CRYPTO_MINT_PASSWORD" \
  block-cli wallet create --chain solana --out work/mint.enc.json
```

Save parameters to `work/dbc-launch-params.json`, replacing the address/hash placeholders with the actual reviewed public values:

```json
{
  "wallet": "PAYER_PUBLIC_ADDRESS",
  "mint": "NEW_MINT_PUBLIC_ADDRESS",
  "config": "CONFIG_PUBLIC_ADDRESS",
  "configHash": "SHA256_FROM_DBC_CONFIG",
  "name": "Token name",
  "symbol": "TOKEN",
  "uri": "https://example.com/published-token-metadata.json",
  "maxNetworkFeeLamports": "100000",
  "maxRentLamports": "10000000",
  "maxPoolCreationFeeLamports": "0",
  "priorityFeeMicroLamports": 0,
  "commitment": "confirmed"
}
```

Amounts are canonical integer strings in lamports. Network fee, rent and pool creation fee have separate ceilings. Priority price defaults to zero and permits at most 1,000,000 micro-lamports per compute unit. Names allow 1–32 UTF-8 bytes; symbols allow 1–10; neither permits control characters. Metadata URIs must be HTTPS or IPFS and at most 200 UTF-8 bytes. Metadata content is never fetched or uploaded by the API.

```sh
block-cli call meteora build_dbc_launch --file work/dbc-launch-params.json > work/dbc-launch-prepared.json
block-cli tx inspect --chain solana --mode meteora-dbc-launch \
  --file work/dbc-launch-prepared.json --out work/dbc-launch-review.json
```

The response includes the unsigned transaction, exact `launchPolicy`, full `configuration`, separate cost estimates and simulated post-state checks. Inspect the local review's `launchPolicy` and independently fetched `launchConfiguration`, then approve its exact digest through the agent's policy.

## Sign, submit and confirm

```sh
block-cli wallet sign --file work/payer.enc.json \
  --additional-wallet work/mint.enc.json \
  --review work/dbc-launch-review.json --approve "$APPROVED_DIGEST" \
  --max-fee 100000 --max-rent 10000000 --out work/dbc-launch-signed.json
block-cli tx submit --file work/dbc-launch-signed.json
block-cli tx status --file work/dbc-launch-signed.json
```

Signing reconstructs the entire approved message using the official offline instruction builder. Only the fixed compute limit, an optional bounded compute price, the config memo, and one canonical initializer are allowed. The payer must also be the creator. The second signer must be the exact fresh mint key. Extra instructions, altered privileges, lookup tables and pre-existing signatures are rejected. Standard transaction mode continues to allow only the single wallet signer.

Before creating either signature, local signing re-reads the configuration and unused accounts, rechecks the current fee and blockhash, and simulates the exact unsigned bytes. It verifies full token supply in the canonical base vault, an empty native SOL quote vault, immutable metadata, absent mint/freeze authorities, exact initial pool state, and payer debit equal to verified rent plus creation fee plus network fee. Both generated signatures are verified locally before submission. The signed artifact is saved privately and is never printed by the CLI.

There is no initial buy, configuration creation, metadata upload, migration transaction or arbitrary multi-signer support in this path. Fee/rent ceilings are preparation and local signing checks; the initializer does not encode a rent ceiling. A successful simulation or submission acceptance does not establish confirmation. The DBC pool's future swaps and DAMM migration are separate capabilities; this launch action does not imply support for them.

## Verification and sources

The actual builder and local policy inspector passed mainnet unsigned simulation at slot `459329532`: 99,627 compute units, 840 serialized bytes, 8,315,960 lamports rent, zero configuration creation fee and a 10,000-lamport network fee. No funded keys were loaded, no signatures created, and no transaction broadcast. Exact public inputs and sanitized evidence are in `meteora-dbc-launch-live-v0.12.0.json`.

Focused tests include the real builder → two-key local signing → exact-byte mock submission sequence and an encrypted two-keystore CLI roundtrip. Adversarial cases cover wrong mode/signers/chain, config mutations, budget overruns, failed simulation, altered metadata/pool/vaults, extra transfers, changed account privileges and corrupted mint signatures. All test signatures use disposable fixture wallets and mock RPC submission.

Primary sources: [official DBC SDK](https://github.com/MeteoraAg/dynamic-bonding-curve-sdk), [official Token-2022 initializer](https://github.com/MeteoraAg/dynamic-bonding-curve/blob/main/programs/dynamic-bonding-curve/src/instructions/initialize_pool/ix_initialize_virtual_pool_with_token2022.rs), and [official mint/metadata initialization and creation fee logic](https://github.com/MeteoraAg/dynamic-bonding-curve/blob/main/programs/dynamic-bonding-curve/src/instructions/initialize_pool/process_initialize_virtual_pool_with_token2022.rs).
