PepeNet Protocol · names

Action Opcode Reference

Every PepeNet name action is an OP_RETURN payload on Pepecoin that opens with the same 4-byte header. Each diagram is byte-accurate; field widths scale with length. Relay commonly forwards ~80-byte payloads; the indexer accepts carriers up to CARRIER_MAX (9996 bytes). Only CLAIM, RENEW and RENEW_NAME are rent; RESERVE carries a burn-leg; everything else is fee-only (payments ride in spendable outputs). Amounts are in koinu: 1 PEP = 100,000,000 koinu.

Universal 4-byte header — present on every action

0xFFflag
0x50'P'
0x4E'N'
0x01–0x0Fopcode

0xFF can never appear in valid UTF-8, so it cleanly separates an action from other OP_RETURN data. Names are LDH [a-z0-9-], 1–32 bytes — no leading/trailing hyphen, no -- at positions 3–4. Activation height 1,130,000; fee-oracle checkpoint 1,119,000 (the rate window is full from block 1,129,082). Time is MTP; leases water-fill from the rent burn up to MAX_LEASE (~365 d). The rent rate is the fee median clamped between 1 koinu and 1 PEP per name per 28 days. Payloads that fail to parse are ignored (strict, fail-closed).

Field types

Fixed header byteFixed-length fieldVariable length (name / flags)Optional field

Categories

Mint

0x03 – 0x04
0x03

COMMIT

commit-reveal · fee-only

Mint36 B

Publish a blind commitment before claiming a name. Value = SHA-256(salt ‖ name ‖ committer_hash160) where committer_hash160 is the acting identity (vin[0] unless an earlier AS retargeted it). Live for COMMIT_EXPIRY (18 000 s ≈ 5 h) of MTP — pruned once MTP > commit time + 18 000 s. Fee-only.

commitment
32-byte digest. Opaque on-chain; only a matching later CLAIM reveals the name.
0x04

CLAIM

reveal · rent → lease

Mint37–68 B

Reveal against a live matching COMMIT mined in a strictly earlier block (no naked claims). Mints name into the claimant's owned set; the carrier's OP_RETURN value is rent, water-filled into lease days (granularity BILLING_UNIT = 1 d, cap MAX_LEASE). The burn must buy at least one day at the current rate or the CLAIM is dropped.

salt
Exactly 32 bytes — the same salt hashed into the COMMIT.
name
LDH name being claimed — [a-z0-9-], 1–32 bytes, structural hyphen rules.

By-name

0x01 – 0x02 · 0x0B
0x01

RENEW_NAME

extend one lease · rent

By-name5–36 B

Renew a single name in your owned set by spelling it (also works on your own LISTED / OFFERED / RESERVED names). The carrier value is rent — water-filled into extra lease days for that name (rate from the fee median, capped at MAX_LEASE). No anchor needed.

name
Which owned-set name to extend.
0x02

TRANSFER_NAME

gift one name · fee

By-name25–56 B

Gift one owned name to target. Lands in the recipient's owned set immediately; the lease conveys. Fee-only (no rent burn). Movement-locked names (LISTED / OFFERED / RESERVED) are skipped — no-op.

target
20-byte hash160 of the recipient.
name
Which owned name to gift.
0x0B

RELEASE_NAME

relinquish one name · fee

By-name5–36 B

Drop one owned (unlocked) name back into the public pool immediately — claimable again at once. Fee-only. The early-exit counterpart to waiting out the lease.

name
Which owned name to relinquish.

Bitmap

0x05 – 0x06 · 0x0A
0x05

RENEW

batch renew · rent

Bitmap4 / 9 / 9+flags

Renew many names in one carrier. Empty body → renew-all owned set. anchor alone → renew-all (safe, anchor-checked). anchor + flags → selected bits. Carrier value is rent, water-filled across the selected set. Anchor guard: your last owned-set change ≤ anchor ≤ confirm height, and at most MAX_ANCHOR_AGE (1024 blocks) stale — otherwise the action is dropped.

anchor (opt)
5-byte little-endian absolute height naming the owned-set snapshot.
flags (opt)
Bit vector, LSB-first, over the owned set sorted ascending (A→Z). Bits past the end are ignored.
0x06

TRANSFER

batch gift · fee

Bitmap24 / 29+flags

Gift many owned names to target. Target alone → transfer-all. With anchor + flags, transfer the selected subset (same anchor guard as RENEW). Locked names are skipped. Fee-only.

target
20-byte hash160 recipient.
anchor + flags (opt)
Bitmap selection; omit both for transfer-all.
0x0A

RELEASE

batch relinquish · fee

Bitmap9+flags

Relinquish a selected subset of the owned set. Always requires anchor + flags (no release-all shorthand). Locked names are skipped. Fee-only.

anchor
5-byte little-endian height snapshot.
flags
Non-empty bit vector of names to drop.

Market

0x07 – 0x09 · 0x0C – 0x0D
0x07

SELL

open listing · fee

Market17–48 B

Open a public listing — state becomes LISTED. Price floor 3 × DUST_FLOOR (3 koinu). window = 0 defaults to RESERVE_WINDOW (18 000 s); a shorter window is rejected. The lease must outlast the listing: MTP + window + REORG_BUFFER ≤ lease expiry. Fee-only; the name stays in the seller's owned set but is movement-locked until it settles or the listing lapses.

price
8-byte LE uint64 ask in koinu (≥ 3 koinu).
window
4-byte LE seconds. 0 → RESERVE_WINDOW; values below 18 000 are rejected.
name
Owned name being listed.
0x08

RESERVE

exclusive buy right · burn-leg

Market5–36 B

Win the first-come exclusive right to buy a LISTED name — state → RESERVED for RESERVE_WINDOW, clamped to the listing's own end. Must carry both deposit legs: the carrier's own burn ≥ burn-leg (0.5% of price) and one output paying the seller exactly the pay-leg (0.5%). Each leg is floored at DUST_FLOOR. Both credit toward price at SETTLE. A lapsed reserve reverts to LISTED if the listing is still open (otherwise the name returns to the seller); the seller keeps the forfeited legs.

name
The open listing to reserve. Burn-leg = this carrier's value; pay-leg = a spendable output to the seller — neither is in the payload.
0x09

SETTLE

close a reserve · fee

Market5–36 B

The reserving buyer finishes a RESERVED buy before the reserve expires. Remainder price − burn-leg − pay-leg (≥ DUST_FLOOR by the SELL floor) must appear as a single exact-value output to the seller. Atomic — pay-and-own or neither. Name lands in the buyer's owned set; the lease conveys.

name
The reserved name. Remainder payment rides in outputs, not the payload.
0x0C

SELL_TO

directed offer · fee

Market33–64 B

Directed private offer to one buyer — state → OFFERED. Price floor DUST_FLOOR. Fixed window DIRECT_WINDOW (7 200 s ≈ 2 h); no window field. The lease must outlast it: MTP + 7 200 s + REORG_BUFFER ≤ lease expiry. Fee-only. Buyer closes with PAY.

price
8-byte LE ask in koinu (≥ 1 koinu).
buyer
20-byte hash160 of the sole eligible payer.
name
Owned name being offered.
0x0D

PAY

close a directed offer · fee

Market5–36 B

The named buyer settles an OFFERED sale before the offer expires. The full price must appear as a single exact-value output to the seller. Atomic — pay-and-own or neither. Fee-only on the carrier itself.

name
The offered name. Payment rides in outputs.

Multi-id

0x0E – 0x0F
0x0E

AS

retarget acting identity · fee

Multi-id5 B

Set the acting identity for the following carriers in this tx to vin[index]. Enables custodial batching — one tx can act as several owners. Fee-only. Default acting identity is vin[0]. If the index is out of range or that input does not sign SIGHASH_ALL, the following actions are dropped until the next valid AS.

index
1-byte input index. That input must sign SIGHASH_ALL.
0x0F

TRADE

atomic 1↔1 name swap · fee

Multi-id9–71 B

Atomic swap: vin[idxA] gives nameA and receives nameB; vin[idxB] the inverse. Exactly one comma separates two different valid names. Both inputs must be different and both must sign SIGHASH_ALL; at confirm each must still own its name, unlocked (not LISTED / OFFERED / RESERVED). TRADE uses its own two inputs and ignores AS. Fee-only; leases convey; both sides move or neither.

idxA / idxB
Input indices whose identities own the respective names.
nameA,nameB
Two LDH names joined by a single ASCII comma.

Flows

worked paths

Common multi-step paths. Each block is its own on-chain transaction (except AS, which only retargets later carriers in the same tx).

1 · Mint a nameCOMMIT → CLAIM

tx A
0x03COMMIT

Blind SHA-256(salt ‖ name ‖ h160). Live ≤ COMMIT_EXPIRY.

tx B · later block · rent
0x04CLAIM

Reveal salt + name. Water-fill the lease from the carrier burn (≥ 1 day).

↳ Name lands in the claimant's owned set. A later block never displaces an earlier claim; inside one block the claim backed by the earlier commit wins.

2 · Gift a nameTRANSFER_NAME · one tx · fee-only

owner
0x02TRANSFER_NAME

target(20) + name → recipient's owned set immediately.

↳ For many names use the bitmap TRANSFER (0x06) instead.

3 · Open-market saleSELL → RESERVE → SETTLE

seller · LISTED
0x07SELL

price ≥ 3 koinu + window + name.

buyer · RESERVED
0x08RESERVE

burn-leg ≥ 0.5% + exact pay-leg 0.5% to seller.

buyer · owned
0x09SETTLE

exact remainder output → seller; name moves.

↳ Atomic settle. A lapsed reserve returns to LISTED while the listing is open. Prefer waiting ~REORG_BUFFER (7 200 s) of MTP after the reserve confirms before settling.

4 · Directed saleSELL_TO → PAY

seller · OFFERED
0x0CSELL_TO

price + buyer + name. Window = DIRECT_WINDOW.

named buyer · owned
0x0DPAY

Full price as one exact output to the seller.

↳ No reserve deposit. Unpaid by DIRECT_WINDOW → the offer lapses back to the seller.

5 · Atomic swapTRADE · one tx · both parties sign

both parties
0x0FTRADE

idxA + idxB + nameA,nameB. Both names move or neither.

! Payments are exact single outputs

Market checks never sum across outputs: each required payment must be one output of exactly the required value to the seller (the RESERVE burn-leg is the only “at least” amount). An underpayment is ignored yet still spent. LISTED / OFFERED / RESERVED names stay in the seller's owned set but are movement-locked until the market path completes or lapses.

Common to every action — prefix 0xFF 'P' 'N' (FF 50 4E) + opcode 0x01–0x0F · default acting identity = vin[0] · rent ops water-fill leases · relay ~80 B common / indexer ≤ CARRIER_MAX 9996 · strict fail-closed parsing · DUST_FLOOR = 1 koinu.

Source: the PepeNet indexer's protocol engine, as run by this site. Opcodes and byte layouts are the live wire format.

Rent

how the rate and leases are computed

Rent is the value of the OP_RETURN carrier on CLAIM, RENEW and RENEW_NAME. That value is burned, and it buys lease days at the current rate. It is separate from the normal Pepecoin transaction fee. The rate comes from what miners have recently been paid in fees, so it follows the chain, not a fixed price list.

1 · The fee oracle

For every block the indexer records two numbers: the total value of the coinbase outputs, and the block's size in bytes. Block bytes = the sum of the raw serialized sizes of all the block's transactions, the coinbase included. The 80-byte header, the merged-mining (AuxPoW) data and the transaction-count prefix are not counted.

The block's fees are coinbase − subsidy, where the subsidy is Pepecoin's flat 10,000 PEP per block. If a miner claims less than the subsidy, the block counts as 0 fees. Its fee rate is ⌊fees ÷ block bytes⌋ in whole koinu per byte. Only blocks whose fee rate is at least 1 koinu per byte take part.

2 · The window

The rate for block H uses the 10,081 blocks before it, H − 10,081 through H − 1. Block H itself is not included. One rate applies to every action in a block.

The indexer starts from a fixed checkpoint at block 1,119,000 and records blocks from 1,119,001 on. The window is therefore full from block 1,129,082, before names activate at 1,130,000, so every rate the protocol has ever used is a full-window rate.

If fewer than 1,000 blocks in the window take part, there is not enough data to trust a median, and the rate drops to the 1-koinu floor.

3 · The rate

rate = clamp( median × 200 , 1 koinu , 1 PEP )koinu per name per 28 days

median: the lower median of the participating blocks' fee rates (koinu per byte). With an even count it is the lower of the two middle values, never an average.
200: the reference size in bytes, which turns a fee per byte into rent per name.
28 days: the rate's period, 2,419,200 seconds.
Clamps: never below 1 koinu (the dust floor) and never above 1 PEP (100,000,000 koinu).

4 · How a burn buys days

days = ⌊ burn × 2,419,200 ÷ ( rate × 86,400 ) ⌋ = ⌊ 28 × burn ÷ rate ⌋whole name-days · burn and rate in koinu

Whole days only. The division rounds down, and the part of the burn that doesn't make a full day is lost. Leases grow in steps of exactly one day (86,400 s) from the name's current expiry, so an expiry keeps its time of day.

Maximum lease: exactly 365 days (31,536,000 s) ahead of the block's time. A name can take only ⌊(365 days − time left) ÷ 1 day⌋ more days. Days beyond that are forfeited.

CLAIM starts the lease at the claim block's time and must buy at least one day, or the claim is dropped. RENEW across several names shares the days evenly: each name gets an equal share, and a name that reaches its 365-day cap passes the rest to the others. Leftover single days go one each to names in A→Z order.

5 · Renewing

RENEW_NAME renews one name. RENEW renews all your names, or the ones selected by its bitmap. Renewals stack: the days are added to the time already left, any number of times, up to the 365-day cap above. Your listed, offered and reserved names can still be renewed.

A RENEW with an anchor must pass the anchor check: your last owned-set change ≤ anchor ≤ the confirming height, and the anchor no more than 1,024 blocks old. If the check fails, nothing is renewed and the burn is still spent. A burn too small for one day adds nothing and is also spent. Renewing is not an owned-set change, so it does not move the anchor.

6 · Expiry and lapse

Protocol time is MTP: the median of the previous 11 block timestamps. A name is held while MTP < its expiry. In the first block whose MTP reaches the expiry, the name is removed and returns to the pool before that block's transactions are applied. There is no grace period. A renewal in that block or later is too late. The name must be claimed again with COMMIT → CLAIM, by anyone. A lapse counts as an owned-set change, so bitmap anchors from before it fail.

The 2-hour REORG_BUFFER does not extend a lease. It is a margin the market requires: SELL and SELL_TO are only accepted if the listing or offer ends at least 2 hours before the lease does, so every sale resolves before the name can lapse. A lease carries over unchanged through a transfer, sale or trade.

Example · illustrative

These numbers are illustrative. They use the indexer's rate on 24 November 2026, and the real rate changes block by block. In that window, 3,227 of 10,081 blocks took part, and the lower median was 832 koinu per byte. rate = 832 × 200 = 166,400 koinu (0.001664 PEP) per name per 28 days.

A claim burning 1,000,000 koinu (0.01 PEP) buys ⌊28 × 1,000,000 ÷ 166,400⌋ = ⌊168.27⌋ = 168 days.

A full year needs 28 × burn ÷ 166,400 ≥ 365, so burn ≥ 2,169,143 koinu (about 0.0217 PEP). One koinu less buys 364 days. On a new name, anything above 365 days is forfeited.

RENEW across two names with the same 1,000,000 koinu (168 days): alpha has 10 days 6 h left, so it can take 354 more days. beta has 350 days 6 h left, so it can take 14. The even share is 84 each. beta takes 14 and hits the cap, and its other 70 go to alpha. Result: alpha +154 days (164 days 6 h left), beta +14 days (364 days 6 h left).