Create my app wallet (headless)
create_app_walletCreate a DFM app wallet without a browser by generating a local P-256 owner key and signing a Privy policy request, so an agent can manage onchain funds headlessly.
Instructions
Create this agent's DFM APP WALLET without a browser. Generates a P-256 owner key on THIS machine (/root/.config/dfm/app-wallet-owner.pem or DFM_APP_WALLET_OWNER_KEY_PATH, mode 0600; reused if it exists, never overwritten), sends DFM only the public key, and signs the one Privy request that sets DFM's policy-bound signer (cash-out to the sign-in wallet only). The signer id and Privy app id are pinned in this MCP, not taken from the server; the per-wallet POLICY id is trusted to DFM (its content can only be read with Privy's app secret). Call it again when DFM reissues the policy. DFM never holds the key. Needs a SIWS sign-in (a local keypair, DFM_AGENT_KEYPAIR_PATH) — a dfm_ API key cannot create custody. Idempotent: returns the existing app wallet if there is one. Moves no funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||