# x402factory.ai Solana ATA Creator

> x402factory.ai Solana ATA Creator is a paid API for AI agents from x402factory.ai, paid per call via x402, $0.4/call, status unknown (last checked 2026-09-15).

Creates a Solana Associated Token Account (ATA) for a given wallet and SPL mint, paid via Base USDC

## Facts

- Endpoint: POST https://x402factory.ai/base/ata
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402factory-ai-5c0488c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ym-YNETwsaLHunxyhg-tk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402factory-ai-5c0488c6 -d '<json body>'
```

Example prompt: Create a Solana associated token account for wallet address 9B5X5v4MKLLbccdmmcrh1mHcNuWwLsac99DdUvEyChip using the USDC SPL mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v so the wallet can receive USDC tokens — pay the 0.4 USDC fee from my Base wallet.

## When to prefer this

Use this endpoint when you need to initialize a Solana wallet to receive a specific SPL token (e.g. USDC) before executing a bridge, transfer, or airdrop flow. This is especially useful in automated agent pipelines that bridge funds from Base to Solana and need to guarantee the destination ATA exists first. Prefer this over manual on-chain transactions when operating with x402-compatible payment infrastructure on Base.

## Known failure modes

- ATA already exists — server attempts to refund 0.4 USDC and returns an already-exists status
- Invalid Solana wallet address — request rejected before payment
- Invalid SPL mint address — request rejected before payment
- ATA creation fails on Solana RPC — server attempts to refund 0.4 USDC
- Insufficient Base USDC balance — payment fails and no action is taken
- Solana RPC unavailable — creation may fail with network error

## How this service works

Create a Solana associated token account (ATA) for a given Solana wallet and SPL mint, paid via Base USDC. Typical use: prepare a Solana wallet to receive USDC or other SPL tokens before sending funds or using bridge flows. Cost: 0.4 USDC per call, paid on Base. The endpoint checks via Solana RPC whether the ATA already exists; if it already exists at execution time or creation fails, the server attempts to refund the 0.4 USDC payment on Base.

## Output

Returns confirmation of the ATA creation on Solana, including the new ATA address. If the ATA already existed or creation failed, the server attempts to refund the 0.4 USDC payment on Base and returns the appropriate status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "target_wallet"
 ],
 "properties": {
  "mint": {
   "type": "string",
   "description": "Optional SPL token mint address on Solana for which to create the ATA. When omitted, the server uses its configured USDC_MINT for the Solana NETWORK."
  },
  "target_wallet": {
   "type": "string",
   "description": "Solana wallet address (base58) for which the associated token account (ATA) should be created."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ok": {
  "type": "boolean",
  "description": "True when the ATA exists or was created after a paid call. False when the x402 payment had to be refunded."
 },
 "mint": {
  "type": "string",
  "description": "SPL mint used when checking/creating the ATA on Solana."
 },
 "action": {
  "type": "string",
  "description": "Action performed. For successful calls this is 'create_ata_via_base'."
 },
 "status": {
  "type": "string",
  "description": "Operation status: 'created' when a new ATA was created, 'refunded' when the payment was refunded, or 'refund_failed' when both ATA creation/refund failed."
 },
 "message": {
  "type": "string",
  "description": "Short human-readable summary of the outcome."
 },
 "ata_address": {
  "type": "string",
  "description": "Associated token account address on Solana for the (wallet, mint) pair."
 },
 "refund_txid": {
  "type": "string",
  "description": "Base transaction hash for the refund when a paid call could not create the ATA or the ATA already existed at execution time."
 },
 "payment_txid": {
  "type": "string",
  "description": "Base transaction hash for the x402 payment that unlocked this endpoint, when available."
 },
 "target_wallet": {
  "type": "string",
  "description": "Solana wallet address for which the ATA was checked/created."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402factory-ai-5c0488c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402factory.ai](https://www.zero.xyz/host/x402factory.ai/llms.txt)
