---
name: factor-gateway
description: Discover FACTOR integer-factorization bounties, create requester-selected bounty requests, monitor invoice-bound USDC payments and manual fulfillment, and retrieve cached native blockchain results through the FACTOR REST API or MCP server.
---

# FACTOR Gateway

Use this skill when a user wants to inspect or fund an integer-factorization
bounty, monitor an existing FACTOR request, or retrieve a disclosed native result.
This is not a general-purpose computation service or a wallet-management tool.

## Identity and economic model

FACTOR (formerly FACT0RN, also styled FACTØRN) is an independent, open-source
Layer-1 blockchain specializing in integer factorization as proof of work and
Integer Factorization as a Service (IFaaS). Its native coin is FACT.

The requester chooses the integer, category and USD-denominated bounty.
Solvers independently choose whether to participate. Bounties are not
fixed-price purchases of computation. There is no solution, deadline,
confidentiality or exclusive computing-allocation guarantee, and no claim of
general RSA-2048 factoring capability.

## Canonical interfaces

- Website: https://projectfactor.io
- Overview: https://projectfactor.io/agent-integration
- Full guide: https://projectfactor.io/docs/agents
- Guide Markdown: https://projectfactor.io/docs/agents/index.md
- REST base: https://projectfactor.io/api/v1 (use resource paths below)
- OpenAPI: https://projectfactor.io/api/v1/openapi.json
- Live capabilities: https://projectfactor.io/api/v1/capabilities
- MCP: https://projectfactor.io/mcp
- Canonical skill: https://projectfactor.io/skill.md

Read live capabilities and OpenAPI first. They are authoritative for current
service configuration and contracts; do not infer enabled payments from this
skill or from the existence of an implemented payment adapter.

## Public discovery and native results

No website account or client token is required for:

| REST operation | MCP tool |
| --- | --- |
| `GET /api/v1/capabilities` | `discover_capabilities` |
| `GET /api/v1/bounties?offset=0&limit=5` | `list_bounties` |
| `GET /api/v1/bounties/{id}` | `get_bounty` |
| `GET /api/v1/bounties/{id}/result` | `get_bounty_result` |

List results use a `data` array with pagination. Native bounty IDs are 64
hexadecimal characters, not website request UUIDs. Use IDs returned by the
service. Results are cached KeyBoard blockchain observations, not independently
live-verified settlement/reorg guarantees. A null/absent disclosed result does
not prove a mathematical solution is impossible.

## MCP connection

Configure a Streamable HTTP client with URL `https://projectfactor.io/mcp`.
The deployed server reports `name: factor-agent-access`, `version: 1.1.0`.
Initialize normally, then call `tools/list` to inspect the current inventory.
The nine implemented tools are the four public tools above plus:

- `create_bounty_request`
- `get_request`
- `get_payment_instructions`
- `get_payment_status`
- `get_fulfillment_receipt`

For the five client-scoped tools, send the HTTP header
`Authorization: Bearer <client-token>`. Do not put credentials in the URL.
Public tools work without that header. No OAuth discovery/login is implemented;
an OAuth-only host is not automatically compatible. `GET /mcp` alone may return
405; use the MCP transport handshake, not webpage retrieval. Publishing this
skill does not automatically register the server with any assistant.

## Client authorization and creating a request

Create a client only when a user wants private request operations:

1. `POST /api/v1/clients` returns `{id, token, note}`. Keep the token securely;
   it is returned once. Only its hash is stored. Losing it loses request access.
   This is an API client credential, not a website or administrator account.
2. Send `Authorization: Bearer <client-token>` on client-scoped REST calls.
3. `POST /api/v1/requests` requires a stable `Idempotency-Key` header containing
   16–128 letters, digits, underscores, dots, colons or hyphens.
4. The body is:

   ```json
   {
     "numberToFactor": "<requester-chosen decimal or 0x-prefixed integer string>",
     "rewardAmountUSD": "3.00",
     "bountyType": "research"
   }
   ```

   The reward above illustrates formatting, not user consent or a price quote.
   Categories: `rsa`, `audit`, `research`, `custom`. Current service bounds:
   231–4,135 bits, at most 1,264 input characters, rewards $3–$900,000.
   Preserve integers as strings, never JavaScript floating-point numbers.
5. For MCP, `create_bounty_request` takes the same fields plus `idempotencyKey`.
   Creation makes an unpaid request; it does not authorize spending or publish
   a native bounty. Same key and input reuse the request; conflicting input
   returns 409. Retain the request UUID and original key through retries.

## Payment methods and authorization

The agent extension implements invoice-bound x402 v2 USDC on allowlisted Base
networks. Check each capability's `configured`, `enabled`, `productionEnabled`
and `liveSettlementVerified` separately.

- Base mainnet: `eip155:8453`, USDC
  `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`.
- Base Sepolia testnet: `eip155:84532`, test USDC
  `0x036CbD53842c5426634e7929541eC2318f3dCF7e`.
- Existing USD/Stripe and TRON TRC-20 USDT payments remain separate at
  https://projectfactor.io/gateway. They do not credit agent-extension invoices.
- Native FACT is not accepted as customer payment.

The agent service fee is 4%, rounded to cents; the current extra processing fee
is $0.00. The operator absorbs facilitator costs. The invoice, not a calculation
in this skill, pins the exact amount, receiver, asset, network, provider and
confirmation requirement. Inspect it before requesting wallet approval.

1. Authenticated `POST /api/v1/requests/{id}/payment` without a payment signature
   returns 402 with JSON requirements and base64 `PAYMENT-REQUIRED`, or an error
   such as 503 when payment configuration is unavailable. MCP
   `get_payment_instructions` exposes the instructions without spending.
2. Obtain explicit wallet-owner approval of the exact invoice. Signing happens
   in the owner's external wallet, not through these MCP tools.
3. The EIP-3009 authorization **must** use the invoice's
   `accepts[0].extra.invoiceNonce`. Generic random-nonce x402 wallets are not
   automatically compatible. Never substitute networks, amounts or recipients.
4. Submit base64 x402 JSON in `PAYMENT-SIGNATURE` to the same authenticated POST,
   with JSON `{"approvePayment":true}`. Do not send private keys to the service.
5. A 202 or timeout is indeterminate, not permission to pay again. Monitor the
   original request. Never automatically create another authorization, request
   or idempotency key to replace an uncertain payment.

## Monitoring and manual native fulfillment

- `GET /api/v1/requests/{id}` / `get_request`: request and fulfillment state.
- `GET /api/v1/requests/{id}/payment` / `get_payment_status`: reconcile an
  existing payment. This can persist verified receipt evidence but does not
  initiate another payment.
- `GET /api/v1/requests/{id}/receipt` / `get_fulfillment_receipt`: operator-recorded
  native transaction ID, Deadpool ID and FACT allocation.

Payment verification requires independent matching chain receipt/transfer,
invoice authorization nonce, canonical block and five confirmations. A paid
request is not proof of native publication. The operator chooses the FACT
allocation and publishes the native bounty manually. After publication, use
the recorded Deadpool ID with the public bounty/result interfaces.

Respect 429 `Retry-After`; use bounded polling. An unresolved or older
indeterminate settlement requires operator review, not another debit.

## Limitations and safe operation

- Never promise solver participation, a successful factorization, turnaround
  time or a refund policy not stated by the operator.
- Validation bounds do not prove computational feasibility or native-node
  consensus acceptance.
- Native bounty integers, disclosed results and transaction relationships are
  public. Do not submit secrets or claim private computation.
- MCP exposes no payment-signing, treasury, administrator or unrestricted
  blockchain RPC tools.
- Do not mix website request UUIDs with native Deadpool IDs or legacy checkout
  references.
- Registry publication and Bazaar indexing are separate from implementation;
  neither is established by this skill. Bazaar metadata is not currently
  implemented in this invoice service.
- The deployment snapshot inspected on 2026-12-05 UTC reported Base mainnet
  enabled, Sepolia disabled and mainnet `liveSettlementVerified: false`.
  That is configuration evidence, not a demonstrated real-USDC settlement.
  Always refresh live capabilities rather than relying on that snapshot.
