{
  "x402Version": 2,
  "id": 13569,
  "slug": "13569",
  "resource": "https://api.sandbox.brickken.com/x402/token/create",
  "description": "Prepare agent ERC-20 deployment. Prepare an unsigned transaction that deploys an ERC-20 token controlled by an agent wallet.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x6b0173489007dE9E2e619eccd98E8fa9c610849a",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "agentWallet": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "chainId": "84532",
            "executionMode": "client-signed",
            "name": "example",
            "signerAddress": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "symbol": "BKNAGENT"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "executionMode": "client-signed",
            "transactions": {
              "data": "0xaaaaaaaa",
              "to": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "value": "0x0"
            },
            "txId": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": true,
                "properties": {
                  "agentWallet": {
                    "description": "Wallet that owns and mints the agent token.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "chainId": {
                    "default": "84532",
                    "description": "Target operation chain ID. This environment allows: 11155111, 84532, 80002.",
                    "examples": [
                      "84532",
                      "11155111",
                      "80002"
                    ],
                    "type": "string"
                  },
                  "decimals": {
                    "description": "Token decimals. Defaults to 18 when omitted.",
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "email": {
                    "description": "Alias for ownerEmail where supported.",
                    "format": "email",
                    "type": "string"
                  },
                  "executionMode": {
                    "default": "client-signed",
                    "description": "Discovery defaults to client-signed so the payable prepare step can be invoked and priced directly. Use brickken-relayed explicitly for Brickken signing and broadcasting, or client-broadcast to sign and broadcast locally. Client-controlled modes charge half at prepare and half at send; client-broadcast confirmation requires both txId and txHash.",
                    "enum": [
                      "client-signed",
                      "client-broadcast",
                      "brickken-relayed"
                    ],
                    "type": "string"
                  },
                  "gasLimit": {
                    "description": "Optional explicit gas limit.",
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "nonce": {
                    "description": "Optional explicit nonce when managing nonces manually.",
                    "type": "number"
                  },
                  "ownerEmail": {
                    "description": "Optional owner attribution email.",
                    "format": "email",
                    "type": "string"
                  },
                  "premint": {
                    "description": "Human-readable premint amount.",
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "signerAddress": {
                    "description": "Required signer wallet for client-signed and client-broadcast execution.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "symbol": {
                    "examples": [
                      "BKNAGENT"
                    ],
                    "pattern": "^[A-Z0-9]{2,11}$",
                    "type": "string"
                  }
                },
                "required": [
                  "chainId",
                  "executionMode",
                  "name",
                  "symbol",
                  "agentWallet"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "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": "api.sandbox.brickken.com",
  "lastUpdated": "2026-09-03T10:33:22.84Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-03T10:33:22.11Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.sandbox.brickken.com",
    "manifest_name": "api.sandbox.brickken.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}