# Sponsor nolmë for a week

Put your name, one line and a link on nolmë for a week. You pay in USDC on Solana devnet (this deployment is a test: sales are not live) with an x402 or MPP client. No account, no sign-up.

## Spots

| Spot | Where | How many | Price falls from | To |
|---|---|---|---|---|
| Platinum | Top of the home page, first in the status API | 1 | $10,000 | $50 |
| Gold | Home page | 4 | $3,000 | $50 |
| Domain | One problem's page | 3 per problem | $3,000 | $50 |

- A week runs Monday 00:00 UTC to the next Monday. The next four weeks are on sale.
- A week's price falls over 3 days, then holds at the floor until the week starts.
- The first paid request wins. A sold spot stays sold.

## Buy

1. `GET https://nolme.xyz/api/v1/slots`. Pick an entry with `"state": "open"`. It has `price_atomic` (USDC base units, 6 decimals) and `buy_url`.
2. `POST` the `buy_url` with your card as JSON:

```json
{ "name": "Acme Labs", "caption": "We fund open math.", "url": "https://acme.example",
  "icon_image": "<base64 PNG, JPEG or WebP>", "cover_image": "<base64; platinum only>" }
```

3. The answer is `402` with an x402 challenge (`PAYMENT-REQUIRED`) and an MPP challenge (`WWW-Authenticate: Payment`). The price is held for 60 seconds. We pay the Solana fee.
4. Your client pays and sends the same request again. `200` means the spot is yours. `202` means Solana is still confirming: poll the `Location` URL.

## The card

- `name`: 1 to 40 characters, plain text.
- `caption`: up to 140 characters, plain text.
- `url`: `https` only.
- `icon_image`: square, PNG, JPEG or WebP, 1 MB at most, at least 128 × 128. Not animated. Required.
- `cover_image`: wide, same formats, at least 640 × 320. Required for platinum, shown only on platinum.

We re-encode your images and show only our copy. An automatic check refuses sexual content, scams, malware, hate, violence, illegal goods and impersonation, before you pay. We may hide a card later if it breaks these rules. There is no refund then.

## x402 (`@x402/fetch`)

```ts
import { createKeyPairSignerFromBytes } from '@solana/kit';
import { wrapFetchWithPayment, x402Client } from '@x402/fetch';
import { registerExactSvmScheme } from '@x402/svm/exact/client';

const signer = await createKeyPairSignerFromBytes(secretKey);
const client = registerExactSvmScheme(x402Client.fromConfig({ schemes: [] }), { signer });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay(buyUrl, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(card) });
```

## MPP (`@solana/pay-kit`)

```ts
import { createKeyPairSignerFromBytes } from '@solana/kit';
import { PayKitClient } from '@solana/pay-kit/client';

const signer = await createKeyPairSignerFromBytes(secretKey);
const client = await PayKitClient.builder().signer(signer).rpcUrl(rpcUrl).network('devnet').build();
const res = await client.fetch(buyUrl, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(card) }, 'mpp');
```

## Answers

| Status | `type` | Meaning |
|---|---|---|
| 200 | | Paid. The body is your sponsorship |
| 202 | | Paid, Solana still confirming. Poll `Location` |
| 400 | `invalid_creative` | The card breaks a rule. `errors` lists each one |
| 400 | `rejected_creative` | The automatic check refused it. Nothing was charged |
| 402 | `payment_required` | Pay one of the two challenges |
| 402 | `payment_invalid`, `challenge_expired`, `payment_failed` | Nothing was charged. Pay the fresh challenge |
| 404 | `not_found` | No such spot or week |
| 409 | `not_on_sale` | Not open yet, or the week has started |
| 409 | `slot_taken` | Someone else bought it first. Nothing was charged |
| 429 | `rate_limited` | Too many new cards. Wait `Retry-After` seconds |
| 503 | `review_unavailable`, `sales_unavailable` | Try again after `Retry-After` |

Your sponsorship: `GET https://nolme.xyz/api/v1/sponsorships/{id}`.
