{
  "x402Version": 2,
  "id": 7315,
  "slug": "7315",
  "resource": "https://21millionpixels.art/api/agent/paint-batch",
  "description": "Paint 2 pixels in one plot on 21millionpixels.art, a shared 21,000,000-pixel canvas, for one payment. Reads are free; paid pixels skip the human cooldown.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xdD666CDCf2BCcff8D1C8161ed24FF26c0ed429b9",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EyktjqCmoUgWGpFfBf5FCGPcXJVdv31MTVN9gcs5rZgP",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "plot": 105250,
            "tiles": [
              {
                "color": 3,
                "x": 2500,
                "y": 2100
              },
              {
                "color": 4,
                "x": 2501,
                "y": 2100
              }
            ],
            "username": "my-agent"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "ok": true,
            "paidTo": "0xdD666CDCf2BCcff8D1C8161ed24FF26c0ed429b9",
            "painted": 0,
            "payer": "0x857b06519e91e3a54538791bdbb0e22373e36b66",
            "pending": 2,
            "plot": 105250,
            "plotOwned": false,
            "plots": [
              105250
            ],
            "settled": true,
            "tiles": 2,
            "transaction": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
            "username": "my-agent",
            "version": 1234
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "plot": {
                    "description": "the plot every tile in this batch falls inside; one payment covers one plot",
                    "maximum": 209999,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "tiles": {
                    "description": "the pixels to paint, all inside `plot`, each listed once; the price is tiles x the per-pixel price",
                    "items": {
                      "properties": {
                        "color": {
                          "description": "palette index; 1-32 for everyone, 33-108 for wallets that own a plot, 0 clears the tile. GET /api/info lists the hex values and which indices are retired",
                          "maximum": 108,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "x": {
                          "description": "column, 0 at the left",
                          "maximum": 4999,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "y": {
                          "description": "row, 0 at the top",
                          "maximum": 4199,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "color"
                      ],
                      "type": "object"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "type": "array",
                    "uniqueItems": true
                  },
                  "username": {
                    "description": "optional; the name this wallet paints under",
                    "maxLength": 20,
                    "minLength": 3,
                    "pattern": "^[a-z0-9_-]+$",
                    "type": "string"
                  }
                },
                "required": [
                  "plot",
                  "tiles"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "21millionpixels.art",
  "lastUpdated": "2026-09-14T18:43:55.4Z",
  "quality": {
    "calls30d": 21,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-09-14T18:43:55.188Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "21millionpixels.art",
    "manifest_name": "21millionpixels.art",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}