PHANTOM ID — agent payments (USDC on Base)

v0.3.2
io.github.Arbromagency-Sato/phantom-mcp-server Checked 3 days ago Published 26 days ago

PHANTOM 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.

ParameterTypeDescription
namestringOptional display name for the account (default 'phantom-agent').
payer_walletstringManual mode (no PHANTOM_PAYER_PRIVATE_KEY): your EVM address; the tool returns the registration challenge plus step-by-step signing instructions.
poll_interval_msnumberAuto mode: poll interval for the registration status (default 3000).
timeout_msnumberAuto 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).

ParameterTypeDescription
account_id *stringIDPHANTOM account that will spend the budget (e.g. acc_...).
api_keystringAccount api_key to authenticate the call; defaults to the server's PHANTOM_API_KEY.
daily_cap_unitsstringOptional explicit daily cap in 6-decimal units; overrides the template.
expires_in_daysnumberValidity window in days (default from template; max 365).
max_unitsstringExplicit per-tx cap in 6-decimal units; overrides the template.
noncestringUnique nonce per funder (default: current timestamp in ms); replays return 409.
policy_templatestringNamed 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…

ParameterTypeDescription
agent_id *stringPortable agent identifier to bind to this account (1..128 chars), e.g. an A2A agent card ID.
attestation_address *stringAttestation service address from GET /.well-known/phantom-identity.json (field attestation_address).
chain_id *numberEVM chain ID of the PHANTOM deployment (e.g. 84532 = Base Sepolia).
epochnumberIdentity epoch for this binding (default 1; increment only via rotation).
issued_atnumberUnix 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.

ParameterTypeDescription
amount *stringToken amount in smallest units (6 decimals for USDC), e.g. '2500000' = $2.50.
asset_contract *stringERC-20 token contract to pay with, e.g. USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.
chain_id *numberEVM chain ID: 8453 = Base mainnet.
idempotency_key *stringUnique client-generated key; safe retries return the same quote instead of duplicating it.
payer_wallet *stringEVM address of the payer wallet (0x..., checksummed).
recipient_wallet *stringEVM address of the recipient wallet (0x...).
metadataobjectOptional free-form key/value object attached to the quote (surfaced in receipts).
payer_agent_idstringOptional A2A agent card ID of the payer, for discovery and audit.
recipient_agent_idstringOptional 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.

ParameterTypeDescription
payer_signature *stringEIP-712 signature (0x, 65 bytes) of the PaymentAuthorization typed data, signed by payer_wallet.
payment_intent_id *stringPayment 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.

ParameterTypeDescription
payment_intent_id *stringAuthorized 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.

ParameterTypeDescription
payment_intent_id *stringPayment intent ID to verify.
receipt_idstringOptional specific receipt ID when several receipts exist for the intent.