PHANTOM ID — agent payments (USDC on Base)
v0.3.2PHANTOM ID MCP payment server: agent-to-agent USDC payments on Base.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
phantom_register Register an IDPHANTOM account (self-serve)
One-line onboarding: creates an IDPHANTOM account for the configured payer wallet, pays the $2 USDC registration with a locally-signed EIP-712 authorization and returns the api_key. Requires PHANTOM_PAYER_PRIVATE_KEY and PHANTOM_ROUTER_ADDRESS in the environment. The api_key is shown exactly ONCE in this response — store it as PHANTOM_API_KEY immediately. Without a payer key configured, pass payer_wallet to get manual instructions instead.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional display name for the account (default 'phantom-agent'). |
payer_wallet | string | Manual mode (no PHANTOM_PAYER_PRIVATE_KEY): your EVM address; the tool returns the registration challenge plus step-by-step signing instructions. |
poll_interval_ms | number | Auto mode: poll interval for the registration status (default 3000). |
timeout_ms | number | Auto mode: max wait for on-chain confirmation (default 180000). |
phantom_authorize_budget Authorize a spending budget for an account
Funder-signed EIP-712 AgentWalletAuthorization: lets an account spend up to max_units of USDC (6-decimal units, e.g. '1000000' = $1) with an optional daily cap, without giving away the wallet. Requires PHANTOM_FUNDER_PRIVATE_KEY in the environment; the signature is produced locally. Policy templates: 'micro' ($1/tx, $5/day, 30d) and 'subscriptions' ($2/tx, $5/day, 30d) — pilot caps kept deliberately low; explicit max_units/daily_cap_units/expires_in_days override any template. The account's own api_key is sent as authentication (first binding requires it).
| Parameter | Type | Description |
|---|---|---|
account_id * | string | IDPHANTOM account that will spend the budget (e.g. acc_...). |
api_key | string | Account api_key to authenticate the call; defaults to the server's PHANTOM_API_KEY. |
daily_cap_units | string | Optional explicit daily cap in 6-decimal units; overrides the template. |
expires_in_days | number | Validity window in days (default from template; max 365). |
max_units | string | Explicit per-tx cap in 6-decimal units; overrides the template. |
nonce | string | Unique nonce per funder (default: current timestamp in ms); replays return 409. |
policy_template | string | Named pilot policy (default 'micro'); use 'custom' with explicit caps. |
phantom_bind_identity Bind a portable agent identity (AGP-123)
Registers an agent_id as a portable identity for this account via POST /v1/identity/bind. The proof-of-possession is an EIP-712 IdentityBinding signature produced LOCALLY with PHANTOM_IDENTITY_PRIVATE_KEY (environment variable only, never a command-line flag — AGP-057); the private key never leaves this process, only the signature is sent. Idempotent: replaying the same bind returns the existing binding. attestation_address comes from GET /.well-known/phantom-identity.json of the PHANTOM deployment (field attestation_address) — pass it here together with the chain_id so the local signature…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Portable agent identifier to bind to this account (1..128 chars), e.g. an A2A agent card ID. |
attestation_address * | string | Attestation service address from GET /.well-known/phantom-identity.json (field attestation_address). |
chain_id * | number | EVM chain ID of the PHANTOM deployment (e.g. 84532 = Base Sepolia). |
epoch | number | Identity epoch for this binding (default 1; increment only via rotation). |
issued_at | number | Unix seconds issuance timestamp (default: now). |
quote_payment Quote a payment
Create an IDPHANTOM payment quote with transparent platform fee (0.5%, min $0.01 USDC). Returns a payment intent ready for the payer's EIP-712 signature. Free: quoting never moves funds.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Token amount in smallest units (6 decimals for USDC), e.g. '2500000' = $2.50. |
asset_contract * | string | ERC-20 token contract to pay with, e.g. USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. |
chain_id * | number | EVM chain ID: 8453 = Base mainnet. |
idempotency_key * | string | Unique client-generated key; safe retries return the same quote instead of duplicating it. |
payer_wallet * | string | EVM address of the payer wallet (0x..., checksummed). |
recipient_wallet * | string | EVM address of the recipient wallet (0x...). |
metadata | object | Optional free-form key/value object attached to the quote (surfaced in receipts). |
payer_agent_id | string | Optional A2A agent card ID of the payer, for discovery and audit. |
recipient_agent_id | string | Optional A2A agent card ID of the recipient. |
authorize_payment Authorize a payment
Attach the payer's EIP-712 PaymentAuthorization signature to a quoted payment intent. The signature is produced locally by the payer's wallet; it authorizes up to maximumTotalAuthorized, expiring at expiresAt. No funds move until submit_payment.
| Parameter | Type | Description |
|---|---|---|
payer_signature * | string | EIP-712 signature (0x, 65 bytes) of the PaymentAuthorization typed data, signed by payer_wallet. |
payment_intent_id * | string | Payment intent ID returned by quote_payment. |
submit_payment Submit a payment
Broadcast an authorized payment intent through IDPHANTOM. The platform relays the on-chain transaction; exactly one broadcast per intent is enforced server-side (retries return the already-submitted transaction hash). This is the step that settles funds.
| Parameter | Type | Description |
|---|---|---|
payment_intent_id * | string | Authorized payment intent ID to broadcast and settle. |
verify_payment Verify a payment receipt
Verify an IDPHANTOM payment receipt: cryptographic checks (EIP-712 signature, payer recovery), expiry, and the on-chain state of the authorization (free/used/cancelled). Free for receipts of payments the caller participated in; paid via the receipt-verifier for third-party receipts.
| Parameter | Type | Description |
|---|---|---|
payment_intent_id * | string | Payment intent ID to verify. |
receipt_id | string | Optional specific receipt ID when several receipts exist for the intent. |