# Quickstart (/docs/using-abx/quickstart)
## Before you start [#before-you-start]
- Node.js 22.13 or newer
- A coding agent with shell access
- An email address for gas sponsorship, or your own wallet and testnet gas
This guide uses the default testnet. ABX is adding more EVM networks. Check
[Networks and deployments](/docs/reference/deployments) for the current list before choosing one.
When sponsorship is available, you do not need a private key or faucet funds. You can also use a
browser wallet, an environment key, or unsigned transactions.
## Quickstart [#quickstart]
Paste this into your coding agent, replacing the bracketed part with your idea.
```text
Read https://docs.abx.io/docs/using-abx/quickstart, install the ABX skill, and help me launch ⟨describe your project⟩.
```
After an ABX upgrade, run `abx skill install` again. `abx doctor` reports an outdated skill.
For an agent reading these docs directly, share the [Markdown version of this page](/docs/using-abx/quickstart.md)
or the [documentation index](/llms.txt). The [full text export](/llms-full.txt) includes every guide.
# Brand kit (/docs/brand-kit)
Use these files when you refer to ABX or credit the infrastructure behind a project. SVG is the
preferred format for websites and interfaces. PNG is included for tools that need a raster image.
## Attribution [#attribution]
“Built on ABX” is the clearest credit for a project, mint page, or developer tool. Choose the light
or dark lockup that has the strongest contrast. Link it to [abx.io](https://abx.io) and serve the
downloaded file from your own site.
```html
```
Text is fine too: `Built on ABX` or `Powered by ABX`.
## Keep it clear [#keep-it-clear]
- Keep the mark's proportions and give it room.
- Use black on a light surface or white on a dark surface.
- Do not rotate, outline, stretch, recolor, or add effects to the mark.
- Keep your product's identity primary. Attribution should read as infrastructure credit.
- Do not imply that ABX or Art Blocks reviewed, certified, or endorsed your project.
Need another format? Open an issue in the [ABX repository](https://github.com/ArtBlocks/abx).
# Code projects (/docs/protocol/code-projects)
A code project stores or points to a program. Its output follows a simple contract:
```text
content + parameters + environment -> output
```
## Code custody [#code-custody]
ABX supports two forms:
| Mode | Code location | Entry point |
| --- | --- | --- |
| Directory | IPFS, Arweave, or a URL | `index.html` |
| Template | Onchain script chunks and dependencies | Assembled by `AbxGenerator` |
A directory project stores a locator in its `code` collection field. A template project stores script
chunks through the code extensions. Dependency index 0 is the runtime by convention.
## Token data [#token-data]
The program receives one object called `tokenData`:
```json
{
"chainId": 84532,
"contractAddress": "0x1a2b...",
"tokenId": "42",
"seed": "0x9f31...",
"palette": "Ochre",
"density": "0.85"
}
```
Contract parameters provide defaults. Token parameters override them. An augment hook may add or replace
values at read time.
The reserved keys are `chainId`, `contractAddress`, `tokenId`, and `seed`. Keys are sorted and
serialized as compact UTF-8 JSON. This canonical form is used when effect inputs are hashed.
The program can receive token data through an injected `window.abxTokenData`, an `abx` URL parameter,
or an RPC read. The small `abx.js` helper resolves those paths and exposes:
```js
abx.traits({Palette: 'Ochre'});
abx.done();
```
Preview the same document shape before deployment:
```bash
abx preview --script ./index.html
```
## Seeds [#seeds]
The token asks its seed-source contract for a seed at mint and stores the result. The shared
`AbxSeedSource` uses the project address, token ID, and current block values.
This source is pseudorandom, not secret or lottery-grade randomness. Contract callers and block builders
can inspect or influence transaction execution. Use a commitment scheme or VRF-backed source when one
outcome has material prize value.
On OP Stack networks such as Base, `block.prevrandao` comes from the L1 origin and may remain the same
across several L2 blocks. Do not treat it as fresh entropy for each L2 block.
On an ERC-721 Series, minting is sequential. The buyer accepts or rejects the next outcome. On an
edition, the buyer names the ID. A code edition assigns its seed on that ID's first mint, so an unminted
ID is a selection input.
A custom `IAbxSeedSource` can use different rules:
```bash
abx set-seed-source 0xYourContract 0xYourSeedSource
```
This affects future mints only.
A seed is settled after assignment unless the project declared a seed parameter schema before minting
began. That schema lets an authorized party choose a value. It is not a new random draw.
## Rendering [#rendering]
`AbxGenerator` produces the program document.
For a template, it combines token data, `abx.js`, dependencies, and script chunks. For a directory, it
returns the code locator with token data attached.
`onChainStatus(token)` reports the chosen path, whether all bytes are reachable from chain, and any
unresolved dependencies.
A large generated document may exceed an RPC provider's `eth_call` limit. Clients can read it in parts:
| Read | Result |
| --- | --- |
| `tokenDataJson` | Canonical token data |
| `dependencyTag` | One dependency tag |
| `registryScriptChunk` | One registry chunk |
| `abxJs` / `gunzipScript` | Shared runtime bytes |
A chain-complete project can still change if it uses a mutable dependency registry. An `OnChain`
dependency points to fixed SSTORE2 bytes.
## Images and traits [#images-and-traits]
A program produces the live `animation_url`. A still image normally comes from the `render.image`
[effect](/docs/protocol/effects). Until that effect lands, the resolver returns a deterministic
placeholder.
Before using a managed renderer, run `abx remote ` and check its advertised constraints.
The managed ABX renderer is CPU/headless and has no GPU/WebGL hardware acceleration. A project that
requires hardware acceleration needs a GPU-capable effects worker; the default self-hosted
Playwright/Fly scaffold does not itself guarantee GPU access. For slow software-compatible projects,
signal readiness with `abx.done()` and use a supported `render.captureDelay` when necessary.
Set the collection parameters `render.imageWidth` and `render.aspectRatio` (width divided by height)
to frame hosted and self-hosted captures consistently. They are part of token data, so a change
creates a new render input rather than mutating an existing output.
A script reports traits with `abx.traits()`. A project may also compute `attributes` with a Solidity
[field renderer](/docs/protocol/renderers). When both exist, onchain traits win when the same trait name
appears twice.
Parameters do not become marketplace traits automatically. Report the values that belong in the public
trait list.
# Artifacts (/docs/protocol/data-plane)
ERC metadata gives special meaning to `image` and a handful of common keys. An ABX token may anchor
more: source files, print exports, models, datasets, stems, or derived renders.
Each artifact has three fields:
```text
key -> { mimeType, uri }
```
- `key` is a creator field such as `image`, or a derived name such as `render/image`.
- `mimeType` comes from the source. It is not guessed from the bytes.
- `uri` may use `data:`, `ipfs://`, `ar://`, or `https://`.
The served token JSON lists artifacts beside standard metadata:
```json
{
"name": "Work 0",
"image": "ipfs://...",
"artifacts": [
{"key": "image", "mimeType": "image/png", "uri": "ipfs://..."},
{"key": "render/model", "mimeType": "model/gltf-binary", "uri": "ar://..."}
]
}
```
Consumers that do not know `artifacts` ignore it. Others get the full list without a second endpoint.
Every entry includes provenance. A value may be merely labeled, anchored by a hash or content address,
or reproducible from public code and onchain inputs. See [Metadata](/docs/protocol/metadata#provenance)
and [Effects](/docs/protocol/effects).
The artifact list is a resolver projection. Its entries may point to onchain bytes or offchain effect
output. Use `abx tokenuri` for the onchain commitment and the artifact list for served locations.
## Reading it directly [#reading-it-directly]
`abx artifacts --token ` reads this list on its own, without fetching the whole served
document, and adds what the served document deliberately omits: every registered effect output,
current *and* stale, each labeled against the token's active `inputsHash` (see
[Effects → Checking currency directly](/docs/protocol/effects#checking-currency-directly)).
`--remote ` reads the hosted resolver instead of this node's local projection.
# Effects (/docs/protocol/effects)
An effect is an offchain process that watches project events and writes derived output. Rendering a
code project to a still image is the reference effect. Effects never hold source files.
## Addressing [#addressing]
An effect declares a key, triggers, outputs, and an environment. ABX hashes the content, canonical
token data, and environment ID into `inputsHash`.
```text
{chainId}/{address}/{tokenId}/{effectKey}/{inputsHash}/{outputKey}
```
The address makes deterministic work idempotent. A restarted worker can ask storage what is missing.
## Triggers [#triggers]
| Change | Event |
| --- | --- |
| Mint | `Transfer` from zero |
| Parameter value | `TokenParamConfigured` or `ContractParamConfigured` |
| Parameter schema | `ParamSchemaConfigured` |
| Owner-sensitive output | `Transfer` |
| Manual render | Operator request |
## Metadata binding [#metadata-binding]
`render.image` fills `image` only when the project did not set one. `render.traits` merges into
`attributes`, with onchain traits winning duplicate names. Other outputs appear in the artifact list.
A worker may post a hash or locator back to an authorized parameter and lock it later. Write-back is
optional.
The reference worker loads the live document in Chromium, waits for `abx.done()` or a configured delay,
and captures the image and traits. Run it with `abx effects`, `abx render`, or `abx deploy-effects`.
Renderer capabilities are deployment properties, not protocol guarantees. A service may advertise
`render.constraints.hardwareAcceleration` and `render.constraints.maxCaptureDelayMs` in its service
descriptor. Inspect them with `abx remote ` before relying on a managed renderer.
The managed ABX renderer is CPU/headless and does not provide GPU/WebGL hardware acceleration. The
default `abx deploy-effects` Playwright container also does not guarantee a GPU merely because it is
self-hosted. Projects that require hardware acceleration need an effects worker deployed on tested,
GPU-capable infrastructure.
For software-compatible projects, call `abx.done()` only after the intended frame and traits are
ready. A bounded `render.captureDelay` can cover slow initialization, but cannot make unavailable GPU
features available. A current artifact confirms that bytes were published for the current state; it
does not prove the image is visually correct.
## Publishing externally rendered outputs [#publishing-externally-rendered-outputs]
A creator may render images and traits on their own infrastructure and publish them to ABX Services
through the authenticated `POST /v1/effect-artifacts` route. The project must be registered to the
publishing account. This applies to supported mainnet and testnet chains, including projects whose
capture needs hardware acceleration unavailable in the managed renderer.
Publish `render/image` as a public `locator` and `render/traits` as JSON in `bytes_base64` (at most
64 KiB). Include the chain, collection, token ID, and the `inputsHash` computed from the complete
settled token data. The producer retains custody of image bytes; the resolver holds the bound traits.
ABX Services stores separate input-state versions so a stale publication cannot replace a current
one. Explicit republishing can replace the output at the same hash. Managed captures preserve an
existing publication at that hash. An explicit on-chain image field together with current published
traits satisfies both outputs without requiring another managed capture. Retained artifacts are
service data, not an archival guarantee; keep source inputs and copies of externally produced output.
Data-backed parameters require successful RPC reads of their bytes. Hosted rendering refuses an
incomplete or commitment-mismatched input, and hosted read routes return a retryable error when they
cannot establish currency rather than declaring a hash-only fallback current.
## Checking currency directly [#checking-currency-directly]
`abx artifacts --token ` reads a token's artifact set without fetching and parsing the
whole served document. It reports the same entries the metadata would serve, plus every registered
effect row, current and stale, labeled against the token's active `inputsHash`. A stale row (a
parameter changed since it rendered) is silently absent from the served `artifacts` list, but stays
visible here so a param change that re-addressed a render is diagnosable rather than invisible.
`--remote ` reads the hosted resolver instead of this node's local projection. The report
identifies which service answered.
## Reference worker deployment limits [#reference-worker-deployment-limits]
The reference worker is for one trusted operator's collections. It does not provide a multi-tenant
sandbox. Rendering uses a fresh browser context and a checked HTTP proxy: public network dependencies
remain available; private network destinations are refused. The configured resolver origin is an
operator-owned exception so a co-located local resolver remains usable. Rendering uses proxied web
traffic; non-proxied WebRTC UDP and QUIC are disabled. Collector browsers retain their own behavior.
Without `ABX_EFFECTS_TOKEN`, the HTTP trigger server listens on `127.0.0.1` only. A public listener
(`ABX_EFFECTS_HOST=0.0.0.0`) requires a nonempty token. Generated container deployments select that
public mode and refuse to start without the token. `/health` remains public; `/run` and `/notify`
require `Authorization: Bearer ` in public mode. `--once` needs no HTTP listener.
Trigger requests use `Content-Type: application/json` and accept bodies up to 1 MiB. Tokenless local
mode also checks the request Host and refuses other browser origins. Existing CLI commands supply
JSON automatically; a custom browser control panel must use the runner's own origin or an
authenticated integration.
For deterministic cloud thumbnails, the on-chain `image` URL template must select an object under
`///`, for example
`https://cdn.example/8453/0x0000000000000000000000000000000000000001/{id}.png`.
`abx deploy-code --image-base` and `abx deploy-edition-code --image-base` add the namespace
automatically, resolving the factory-predicted collection address before signing.
Templates outside that collection namespace are rejected before rendering. Existing self-hosters
using a custom prefix must update their image template to receive further deterministic thumbnail
writes; existing stored objects are not moved or deleted automatically.
The reference render effect refuses image and trait outputs when the live document raises an
uncaught exception or the page crashes before capture completes. Console diagnostics alone do not
fail a render. Healthy scripts without `abx.done()` retain the bounded capture-delay fallback.
# Events (/docs/protocol/event-spine)
ABX contracts emit standard ERC events for existing tools and native ABX events for full replay.
## Rules [#rules]
- One project is one contract. There is no project ID.
- `AbxDeployed` is the only required ABX event.
- Extensions advertise support through ERC-165 and version themselves independently.
- Every current value can be derived from events or confirmed through a read interface.
## Standard events [#standard-events]
| Standard | Use |
| --- | --- |
| ERC-721 or ERC-1155 | Ownership, minting, burning, and approvals |
| ERC-4906 | Metadata refresh on both token standards |
| ERC-7572 | Collection metadata refresh |
| ERC-2981 | Royalty reads |
| ERC-721C or ERC-1155C | Optional transfer validation |
Editions also emit ERC-1155 `URI`. Since that event has no range form, an owner may call `pingURI(ids)`
after a contract-wide metadata change. ABX emits ERC-4906 for the whole change either way.
## Native events [#native-events]
`AbxDeployed` announces the contract and enabled extension versions. Other event families cover:
- royalty, payee, minter, pause state, and supply caps
- metadata fields, URI configuration, and locks
- scripts, dependencies, and seed sources
- parameter schemas, values, hooks, and locks
## Edition supply [#edition-supply]
An ERC-1155 edition has a collection default and optional per-ID overrides:
- `DefaultMaxSupplySet(cap)` sets the default. Zero means open.
- `MaxSupplyUpdated(id, cap)` sets a lower cap for one ID.
`maxSupply(id)` returns zero for both an open ID and an ID explicitly closed at zero. The event history
distinguishes them. The SDK exposes `defaultMaxSupply`, `maxSupplyOverridden`, and `editionCapOf()`.
The per-ID cap limits **live supply**. On a burnable edition, burning copies lowers `totalSupply(id)`
and makes that many slots available to mint again; total copies ever issued may therefore exceed the
cap. An ERC-721 Series cap instead limits lifetime-issued IDs, so burning never reopens a slot.
## Discovery and trust [#discovery-and-trust]
Any contract can emit `AbxDeployed`, so the event proves discovery, not authenticity. Verify canonical
contracts against the factory `isAbxClone` record. See [Deployments](/docs/reference/deployments).
Version events keep old contracts readable when an extension changes. Standard ERC event signatures do
not change.
# How ABX works (/docs/protocol)
An ABX project is one contract on one EVM chain. The contract anchors named data fields and emits the
events needed to reconstruct them.
ABX currently supports two token standards:
| Shape | Standard | Meaning |
| --- | --- | --- |
| Series | ERC-721 | Each token ID is a unique object. |
| Edition | ERC-1155 | Each token ID may have many copies. |
The required core is small. A contract supports ERC-165 and emits `AbxDeployed`. Projects add only the
extensions they use, such as royalties, supply caps, metadata fields, code, dependencies, or parameters.
## Resolution [#resolution]
Each metadata field may be stored onchain, computed onchain, committed by hash, or held offchain.
**Onchain metadata.** A renderer reads the contract fields and returns `tokenURI` or ERC-1155 `uri`
from one `eth_call`.
**Resolver metadata.** A service replays the event log, reads contract fields, fetches offchain bytes,
and returns the same document over HTTP.
Onchain storage and a resolver can be used together. Storage answers where the bytes live. Resolution
answers who assembles the JSON.
## Read by subject [#read-by-subject]
- [Events](/docs/protocol/event-spine) define the replayable history.
- [Interfaces](/docs/protocol/interfaces) expose current state.
- [Contract versions](/docs/protocol/versioning) define generation identity and compatibility.
- [Metadata](/docs/protocol/metadata) defines fields, representations, locks, and provenance.
- [Onchain storage](/docs/protocol/onchain-storage) covers SSTORE2, chunking, and compression.
- [Code projects](/docs/protocol/code-projects) store programs, dependencies, and mint seeds.
- [Parameters](/docs/protocol/params) add typed values, authorization, and hooks.
- [Field renderers](/docs/protocol/renderers) compute images and traits in Solidity.
- [Minting](/docs/protocol/minting) defines the shared sale contracts and events.
- [Owner powers](/docs/protocol/owner-powers) lists what can change after a sale.
- [Artifacts](/docs/protocol/data-plane) describes data beyond marketplace metadata.
- [Effects](/docs/protocol/effects) describes derived offchain output.
Canonical factories identify the ABX reference contracts. Anyone may implement the event and interface
protocol; only a factory record proves that the canonical factory deployed a given clone.
# Interfaces (/docs/protocol/interfaces)
Events reconstruct history. Interfaces read the current state.
## Minting [#minting]
```solidity
interface IAbxSequentialMint {
function mint(address to) external returns (uint256 tokenId);
}
interface IAbxEditionMint {
function mint(address to, uint256 id, uint256 amount) external;
}
```
Sequential minting chooses the next ERC-721 ID. Edition minting names an ERC-1155 ID and amount.
Contracts advertise support through ERC-165.
## Metadata [#metadata]
```solidity
interface IAbxMetadataRenderer {
function tokenURI(address token, uint256 tokenId) external view returns (string memory);
function contractURI(address token) external view returns (string memory);
}
interface IAbxFieldRenderer {
function render(address token, uint256 tokenId, bytes32 field)
external view returns (string memory contentType, bytes memory data);
}
interface IAbxOnChainReader {
function read(address pointer) external view returns (bytes memory);
}
```
The metadata renderer assembles JSON. A field renderer computes one value. A reader returns stored
bytes while hiding SSTORE2, chunking, and compression.
Collection-level field rendering uses `type(uint256).max` as the token ID.
## Mint seed [#mint-seed]
```solidity
interface IAbxSeedSource {
function seed(uint256 tokenId, address to) external returns (bytes32);
}
```
The canonical source is deterministic after a mint but predictable during the transaction. Use a
custom implementation for commit-reveal or VRF-backed randomness. The CLI probes a new source before
storing its address.
## Common reads [#common-reads]
All ABX contracts expose the applicable token standard plus ERC-165, ERC-7572 collection metadata,
ERC-2981 royalties, and supply reads. Extension interfaces add:
- `primaryPayee()`, `minter()`, and `paused()`
- maximum invocation or per-ID supply
- metadata fields, representations, and locks
- script chunks and ordered dependencies
- parameter schemas, values, and hooks
- seed source and transfer validator
- token and collection URI renderers and locks
ABX does not claim ERC-721 Enumerable. Indexers enumerate ERC-721 tokens from `Transfer` events.
## Batching [#batching]
Factories initialize a clone in one transaction. Later calls on the same contract may use
`multicall(bytes[])`. The batch preserves `msg.sender`, rejects ETH, and reverts as one unit.
Accounts such as a Safe or ERC-4337 wallet handle atomic calls across several contracts.
# Metadata (/docs/protocol/metadata)
ABX metadata is a field store on the collection contract. Each field has a name, a representation, and
a value. A field may hold bytes, point to bytes, or compute them from chain state.
## Fields and scope [#fields-and-scope]
Fields live at two scopes:
- Collection fields apply to the whole project and feed `contractURI`.
- Token fields apply to one token and feed `tokenURI`.
A token field overrides a collection field with the same name.
A collection `image` is therefore the fallback image for every token and can mask a computed render.
Empty field writes are not allowed. Use `featured_image` for collection artwork that should not
replace token images.
Common token fields are `name`, `description`, `image`, `animation_url`, `external_url`, `attributes`,
`background_color`, and `youtube_url`. Common collection fields include `name`, `description`,
`banner_image`, `featured_image`, `external_link`, `creator`, `creator_links`, `display_notes`, and
`license`.
Other field names appear in the token's [artifact manifest](/docs/protocol/data-plane). The generated
keys `artifacts` and `abx_provenance` cannot be set as fields.
All deploy families accept `--banner-image ` and `--featured-image ` alongside
`--description` and `--external-url`. These write collection URL fields in the deployment transaction;
dry runs name the artwork fields. The flags do not set collection `image` or override token art.
The collection image continues to resolve from its existing image fields or representative token.
Before handing over admin, inspect the actual collection document:
```bash
abx contracturi --validate marketplace --json
```
The optional profile checks `name`, `description`, `image`, `external_link`, `banner_image`, and
`featured_image`. It reports missing and malformed fields separately and exits unsuccessfully when
the profile is incomplete. These are launch-readiness checks; some fields are optional in the
underlying standard. Without `--validate`, the existing document output is unchanged.
`set-admin` performs one bounded document check and warns before transferring ownership. HTTP reads
have a 10-second timeout and 1 MiB body limit; no token enumeration or reindex is needed for this
check. A passing document does not guarantee immediate marketplace ingestion.
## Resolver routes [#resolver-routes]
Print a browser URL without constructing routes yourself:
```bash
abx view-url --token 0 --remote abx --json
abx view-url --token 0 --base-url https://resolver.example/prefix
```
The result has a dedicated `viewerUrl`: a live application URL for code collections, or image content
for image collections. A selected provider's public descriptor supplies the token API base and
isolated content template; custom bases preserve their path prefix. Without either flag, the CLI
uses `ABX_PUBLIC_BASE_URL` or the local resolver. Successful mint output includes the same URLs,
sharing one public discovery lookup across all minted IDs. A URL does not prove that indexing or
rendering has finished, and it does not register a project or open a browser.
Conforming resolvers expose token metadata at `/t/{chainId}/{contract}/{tokenId}`. Inline or computed
field bytes use the stable `/t/{chainId}/{contract}/{tokenId}/data/{field}` route. Code projects also
have `/a/{chainId}/{contract}/{tokenId}` as their canonical live application view; an
`animation_url` may point to either route when they serve the same document.
HTTP resolvers may keep these stable routes while serving project bytes from token-scoped
content origins. Live-view routes may return a restricted wrapper for marketplace embedding; byte
artifact routes redirect to the original bytes. A canonical `Link` response header can identify the
direct content URL. Content hosting does not change the on-chain metadata or URI configuration. Contracts still append
chain/address/token coordinates to their configured resolver bases. Content hostnames and browser
paths are provider delivery choices, discovered through the descriptor or canonical link; artwork
must use token data for identity rather than parse `location.pathname`. Fully on-chain data documents
and externally hosted content retain their own delivery behavior. See
[content origins](/docs/using-abx/self-hosting#content-origins) for the reference implementation.
Parameters are separate. Read them from the contract rather than `tokenURI`. See
[Parameters](/docs/protocol/params).
## Representations [#representations]
| Representation | Meaning |
| --- | --- |
| `inline` | Bytes stored in the field |
| `inline-gzip` | Gzipped bytes, decoded offchain |
| `reader` | Bytes read from an onchain storage contract |
| `reader-gzip` | Gzipped bytes read from an onchain storage contract |
| `renderer` | Bytes computed by a contract |
| `ipfs` | An IPFS CID |
| `arweave` | An Arweave transaction ID |
| `url` | A URL |
| `url-template` | A URL with an `{id}` placeholder |
| `keccak256` / `sha256` | An onchain commitment to bytes stored elsewhere |
The representation describes the route. The contract does not fetch a URL, CID, or transaction ID.
For URI fields such as `image` and `animation_url`, inline or computed content is embedded in an
onchain metadata document. A resolver serves the same content through a URL. A renderer that returns
`text/uri-list` is treated as a locator instead.
## Stored image type [#stored-image-type]
Bytes stored in the `image` field itself (`inline`, `reader`, or their gzip forms) carry no media type.
Both serving planes label them with the reserved field `abx_image_type`, and fall back to
`image/svg+xml` when it is unset:
```bash
abx set-field 0xYourContract --field abx_image_type --text image/jpeg
```
The value must be `inline` and a lowercase `image/` with no parameters. Any other value is
ignored and the image is served as SVG. A token value overrides a collection value, so a series of
JPEGs can declare the type once with `--collection`. `abx deploy --onchain-image` and
`abx set-field --field image --file` write the declaration for you. They refuse formats that browsers
don't draw, such as TIFF and PSD.
The declaration applies only to stored bytes. A URL, CID, or hash commitment gets its type from the
content it points to, and a `renderer` field returns its own type. Like the gateway fields,
`abx_image_type` never appears in the metadata document or the artifact list. Lock it with
`abx lock-field --field abx_image_type` when you lock `image`, or the owner can still change the label.
Renderers before spec v12 ignore `abx_image_type` and label every stored image as SVG. Existing
collections with raster images can move to the current renderer with `abx set-renderer`, unless the
URI configuration is locked.
## URI resolution [#uri-resolution]
Each contract chooses one of two paths:
1. An onchain metadata renderer returns a `data:application/json` document.
2. A base URL or per-token URL points to a resolver.
The lookup order is:
1. Onchain renderer
2. Per-token URL override
3. Base URL plus chain, contract, and token ID
4. Empty string
An onchain renderer can resolve `inline`, `reader`, `renderer`, `url`, `url-template`, `ipfs`, and
`arweave`. Hash commitments and gzipped values need an offchain resolver.
For an in-range token that has not been minted, an offchain resolver returns `{ "minted": false }`
instead of full metadata. Its image, data, and live-view routes return `404` until the mint exists.
Token IDs outside the project's range also return `404`.
## Gateways [#gateways]
Store an IPFS CID or Arweave transaction ID as the field value. Keep the HTTP gateway separate so it
can change without changing the content address. `abx set-field --url` accepts `ipfs://` and `ar://`
locators and stores their content ID and optional path in the corresponding typed representation.
Use an HTTP(S) locator when you intend to store that exact serving URL.
```bash
abx set-gateway 0xYourContract \
--ipfs https://your-gateway.example/ipfs/
```
The collection fields `abx_gateway_ipfs` and `abx_gateway_arweave` hold these serving preferences.
They do not appear in the public metadata document or artifact list. Public defaults apply when they
are unset.
## Locks [#locks]
`lock-field` freezes one field. `lock-uri` freezes the URI configuration. Code projects have separate
locks for scripts and dependencies. Parameters have their own schema deadlines.
```bash
abx lock-field 0xYourContract --field image
abx lock-uri 0xYourContract
```
A lock freezes the value or address stored by the ABX contract. It cannot freeze:
- bytes behind a mutable URL
- code behind an upgradeable renderer, reader, or hook
- a live dependency registry
- an unlocked parameter
Check the whole dependency graph before calling a project immutable. See
[Owner powers](/docs/protocol/owner-powers).
## Provenance [#provenance]
Served metadata includes `abx_provenance`. Each entry names the field, its source, and a short note.
The resolver also reports a status such as `on-chain`, `verified`, `mismatch`, `off-chain`, or `n/a`.
The status is a resolver result. A contract cannot fetch and hash remote bytes.
## Example [#example]
```json
{
"name": "Drift #42",
"image": "https://metadata.example/84532/0xabc/42/image",
"attributes": [{"trait_type": "Palette", "value": "Ochre"}],
"abx_provenance": [
{"field": "image", "source": "reader", "status": "on-chain"}
]
}
```
The resolver URL above may serve bytes that live onchain. Provenance describes where the bytes live;
the URL describes how an HTTP client reaches them.
## Related [#related]
- [Artifacts](/docs/protocol/data-plane)
- [Onchain storage](/docs/protocol/onchain-storage)
- [Field renderers](/docs/protocol/renderers)
- [Parameters](/docs/protocol/params)
# Minting (/docs/protocol/minting)
Minting is split between the token and a minter contract. The token decides who may mint. The minter
holds sale terms, takes payment, calls the token, and forwards proceeds to the project's primary payee.
## ERC-721 projects [#erc-721-projects]
A Series exposes a sequential mint call:
```solidity
function mint(address to) external returns (uint256 tokenId);
```
The buyer receives the next token ID. A buyer cannot select an ID on this lane. A plain 1/1 does not
expose this interface and cannot use the shared minter.
The fixed-price sale is keyed by token contract. Its terms are:
- payment token, with the zero address meaning ETH
- unit price
- allocation available through this minter
- number sold
The owner must authorize the minter on the token and configure the sale on the minter.
## Editions [#editions]
An edition exposes:
```solidity
function mint(address to, uint256 id, uint256 amount) external;
```
A sale is keyed by contract and token ID. The buyer selects the work and quantity. Every copy of one ID
shares its metadata, seed, and parameters.
On an `EditionCode` project, the seed is assigned when an ID is minted for the first time. A buyer can
inspect settled IDs and choose among them. For an unminted ID, the selected ID is part of the seed input.
If that selection should not be available, mint the IDs before sale or provide a different seed source.
## Buyer protections [#buyer-protections]
Purchase calls include the terms the buyer accepts:
```solidity
purchase(token, expectedPaymentToken, maxPrice)
purchaseTo(token, to, expectedPaymentToken, maxPrice)
purchase(token, id, quantity, expectedPaymentToken, maxTotalPrice)
purchaseTo(token, id, quantity, to, expectedPaymentToken, maxTotalPrice)
```
A changed payment token or price outside the bound reverts with `SaleTermsChanged`.
ETH purchases require exact payment. ERC-20 purchases draw the live price up to the buyer's maximum.
Edition limits apply to the total price for the requested quantity.
The minter records the sale before external calls, uses a reentrancy guard, mints, and sends proceeds
straight to the current primary payee. Funds do not remain in the shared minter.
## Supply and pause [#supply-and-pause]
The token contract enforces its own supply cap on every mint path. The minter's allocation is a separate
limit on what that sale may issue.
The authorized minter can issue any supply the token's caps permit while unpaused. Sale pricing and
allocation checks live in the minter contract; the token does not independently enforce them. Review
those controls and any upgrade authority before authorizing a custom minter.
Pausing blocks minter and delegate mints. The project owner may still mint while paused.
For an edition, the project has both an ID-space cap and a per-ID copy cap. Neither can increase after it
is set. The copy cap limits live supply: on a burnable edition, burned copies may be minted again. A
Series cap limits lifetime-issued IDs, so an ERC-721 burn does not reopen a mint slot.
## Events and trust [#events-and-trust]
The minters emit `SaleConfigured` and `Purchase`. The token also emits its ERC-721 or ERC-1155 transfer
event.
A minter event is not proof that the target token is canonical. The shared minters are public utilities.
Verify the token through its factory and reconcile the purchase with the token's transfer event.
## Other sale mechanics [#other-sale-mechanics]
ABX ships fixed-price minters. Auctions, allowlists, free mints, and other mechanics can use separate
contracts that call the same token interfaces. A router can sit in the token's single `minter()` slot
when a project needs several mechanics at once.
See [Sales](/docs/using-abx/guides/sales) for the CLI flow.
# Onchain storage (/docs/protocol/onchain-storage)
ABX uses reader contracts for content too large to keep in a normal storage slot. A metadata field holds
the reader address and a pointer. The reader returns the original bytes.
## Chunk store [#chunk-store]
`AbxChunkStore` writes bytes with SSTORE2. The payload lives in contract bytecode, behind a small data
contract with no mutable storage.
One contract has a practical bytecode limit, so larger payloads are split across pointers. The reader
joins them in order.
```solidity
interface IAbxOnChainReader {
function read(address pointer) external view returns (bytes memory);
}
```
The pointer names an SSTORE2 manifest. That manifest names the content chunks, which the reader joins
in order.
## Compression [#compression]
ABX supports two different cases:
- `reader-gzip` stores compressed bytes that an offchain resolver expands.
- Onchain program templates may include a browser decompressor in the assembled document.
A Solidity metadata renderer cannot gunzip arbitrary bytes. Use plain `reader` for content that must be
returned directly from an onchain `tokenURI`.
## Limits and cost [#limits-and-cost]
Writing bytecode costs gas once. Reading and assembling it costs RPC execution on every view call. Large
documents can pass deployment limits and still exceed a provider's `eth_call` limit.
Use the CLI's dry run and gas report before choosing this route:
```bash
abx deploy --image ./work.png --onchain-image --dry-run
```
Raster images need a declared media type because the chunk store holds only bytes. `--onchain-image`
writes `abx_image_type` from the file extension for PNG, JPEG, GIF, WebP, and AVIF files. See
[Stored image type](/docs/protocol/metadata#stored-image-type).
There is no universal RPC ceiling. A document that works through one endpoint may fail through another.
Code projects provide piecewise reads for large generated documents.
Onchain storage is a good fit when permanence and chain-only recovery justify the cost. IPFS or Arweave
is usually simpler for large media.
## Read and verify [#read-and-verify]
The SDK reads the pointer, calls the reader, joins chunks, and decompresses when the representation
requires it. A resolver can then serve those bytes over HTTP without changing their custody.
A field lock freezes the reader address and pointer. Use immutable readers and data contracts if the
project claims the bytes are fixed.
See [Storage](/docs/using-abx/guides/storage) for upload backends and
[Metadata](/docs/protocol/metadata) for field representations.
# Owner powers (/docs/protocol/owner-powers)
ABX has no protocol administrator. Each project owner controls that project's settings until they lock
them, transfer ownership, or renounce ownership.
## What an owner can change [#what-an-owner-can-change]
Depending on the project type, the owner may:
- mint within the supply cap
- pause public or delegated minting
- choose a minter and primary-sale payee
- lower supply caps
- set royalties within the project's ceiling
- set, replace, and lock metadata fields
- change the metadata base URL or onchain renderer
- set parameter schemas, values, and hooks
- replace code and dependencies until their locks are set
- choose the seed source for future mints
- suspend or replace an enrolled transfer validator
- transfer or renounce ownership
Run `abx state ` to inspect the live settings. Run `abx verify ` to check canonical
deployment and code-project locks.
## Permanent choices [#permanent-choices]
These actions cannot be undone:
| Choice | Result |
| --- | --- |
| Lower a supply cap | It can never increase |
| Lock a field | Its stored representation and value are fixed |
| Lock URI config | The base URL and metadata renderer are fixed |
| Lock code | Script chunks are fixed |
| Lock dependencies | Dependency references and registry address are fixed |
| Lock parameter hooks | All three hook addresses are fixed |
| Expire a parameter schema | Its schema and governed values are fixed |
| Renounce ownership | No owner-only action can run again |
A locked address may still point to upgradeable code. A locked registry reference may still resolve to
bytes controlled by the registry owner. Read [Metadata](/docs/protocol/metadata#locks) before making an
immutability claim.
## What an owner cannot do [#what-an-owner-cannot-do]
The contracts do not let an owner:
- raise a supply cap
- mint past a cap
- rewrite a settled seed unless a seed schema was declared before minting began
- take more than the sale terms a buyer signed
- move or burn a collector's token without normal holder approval
- add a transfer validator after deployment
- change a setting after its one-way lock
- use a shared ABX singleton to administer another project
The fixed-price minter checks the buyer's expected payment token and maximum price. A terms change makes
the pending purchase revert.
## Transfer controls [#transfer-controls]
Two features can block a transfer:
- An enrolled transfer validator may enforce a royalty policy. If the project becomes ownerless, anyone
may suspend that validator.
- A parameter transfer hook belongs to the project itself. Its revert blocks transfers and mints. Only
the owner may change it, and there is no public release valve after ownership is renounced.
Use these reads before buying or integrating:
```solidity
owner()
getTransferValidator()
paramHooks()
paramHooksLocked()
```
On code projects, `abx lock-param-hooks ` freezes all three hook addresses. If the transfer
hook address is zero when locked, a transfer hook can never be added later. An active hook stays active.
## Renouncing ownership [#renouncing-ownership]
Renouncing freezes the project in its current owner-controlled state. Check every URI, renderer,
dependency, hook, seed source, minter, payee, and policy first.
On a Series or edition, renouncing while paused permanently blocks remaining minting: nobody can
unpause, and the minter cannot bypass the pause. Confirm whether issuance should end before renouncing.
A live transfer hook can leave an ownerless project unable to mint or transfer. There is no recovery
path. Prefer explicit locks and a deliberate handoff over using renunciation as a shortcut.
## Related [#related]
- [Operate a project](/docs/using-abx/guides/operate)
- [Minting](/docs/protocol/minting)
- [Metadata](/docs/protocol/metadata)
- [Parameters](/docs/protocol/params)
- [Royalty enforcement](/docs/using-abx/guides/royalty-enforcement)
# Parameters (/docs/protocol/params)
Parameters are named values on a code project. A program reads them through `tokenData`, and effects
can react when they change.
The contract enumerates and serves its own parameter state. Parameters are not copied into `tokenURI`.
## Scope and values [#scope-and-values]
A contract value is the project-wide default. A token value overrides it for one token.
Scalar values fit in `bytes32`. `String` and `Bytes` values live in an onchain blob; the scalar slot
holds their `keccak256` hash. Each write records the address that made it.
An unset value differs from an empty value. Governed `String` and `Bytes` parameters cannot be written
with zero bytes. Use a sentinel or a companion scalar when the work needs an explicit empty state.
## Schemas [#schemas]
A schema tells wallets and applications how a parameter may be edited.
| Part | Options |
| --- | --- |
| Type | `Bool`, `Select`, `Uint256Range`, `Int256Range`, `DecimalRange`, `HexColor`, `Timestamp`, `String`, `Bytes` |
| Authority | `Creator`, `TokenOwner`, a named `Address`, or supported combinations |
| Constraint | Range bounds or select options |
| Deadline | Optional `lockAfter` timestamp |
`TokenOwner` accepts delegate.xyz delegates. On an ERC-1155 edition, it means any holder of that ID.
They all edit one shared value, not a value attached to each copy.
The onchain enum is zero-indexed in this exact order:
| Value | Authority |
| ---: | --- |
| 0 | `Creator` |
| 1 | `TokenOwner` |
| 2 | `Address` |
| 3 | `CreatorOrTokenOwner` |
| 4 | `CreatorOrAddress` |
| 5 | `TokenOwnerOrAddress` |
| 6 | `CreatorOrTokenOwnerOrAddress` |
The SDK exports this mapping as `AUTH_OPTIONS`. Decode a `paramSchema()` result with
`AUTH_OPTIONS[Number(schema.auth)]`.
```bash
abx set-schema 0xYourContract \
--schema 'palette:Select[Ochre|Night|Sage]:TokenOwner'
abx configure-param 0xYourContract 42 palette Ochre --sign
```
A schema may be replaced while it is unlocked. Replacing it does not rewrite or revalidate old values.
The CLI requires `--force` when a change could strand a stored value.
Once a deadline passes, both the value and schema are frozen. A deadline may move earlier, never later.
`retire-param` moves it into the past. Retirement is permanent and keeps the key and old value readable.
An inherited contract default is the exception: the owner can clear it after a schema locks. To make a
value permanent for a token, write it at token scope through the governed path.
## Writes [#writes]
Scalar and blob types use different contract calls:
```solidity
function configureTokenParam(
uint256 tokenId,
bytes32 key,
bytes32 value
) external;
function configureTokenParamData(
uint256 tokenId,
bytes32 key,
bytes calldata data
) external;
```
Keys are readable ASCII packed into `bytes32`. Do not hash the key name. Use the CLI or SDK to avoid
encoding mistakes.
`NotParamAuthorized()` has no arguments in the current contract generation. It means the caller did
not satisfy the key's current schema; it does not mean “creator only.” Read `paramSchema(key)`, use
`abx state `, or run `abx configure-param` to see the required authority before sending.
First writes cost more than updates because the contract adds the key to its enumeration. Large blob
writes also deploy an SSTORE2 data contract. Keep holder-writable edition parameters small unless shared
large data is the point of the work.
## Enumeration [#enumeration]
These reads expose the complete key set:
```solidity
tokenParamKeys(tokenId)
contractParamKeys()
paramSchemaKeys()
```
Paged forms are available for larger projects. Insertion order is not canonical, so consumers should
sort keys before serializing them. The practical design target is about 64 parameters per project.
## Hooks [#hooks]
A code project can set three hooks:
| Hook | When it runs | What it can do |
| --- | --- | --- |
| Configure | Before a governed write persists | Execute contract actions, inspect or reject the new value |
| Augment | During a read | Add or replace computed token data; read-only |
| Transfer | After ownership/balance changes, within mint, transfer, or burn | Execute contract actions, update state or reject the move |
Configure and transfer hooks can call other contracts in the same transaction: for example, a
holder-authorized parameter edit could trigger an AMM swap, or a transfer could create an asset or
settle an obligation. A reverting hook rolls back the operation and its on-chain actions. The hook
needs explicit funding and permissions; it does not automatically gain access to the holder's wallet.
These on-chain callbacks are separate from [off-chain effects](/docs/protocol/effects).
A reverting transfer hook blocks the transfer. Because a mint is a transfer from the zero address, it
can block minting too.
On ERC-721 projects, the hook observes every `Transfer`, including a self-transfer where `from == to`.
That is useful for event-level accounting; a hook concerned only with ownership-set changes can ignore
that case. ERC-1155 projects skip self-transfers and zero-amount entries before calling the hook.
```bash
abx set-param-hooks 0xYourContract --transfer 0xYourHook
abx lock-param-hooks 0xYourContract
```
`lock-param-hooks` freezes all three addresses. Freezing an empty set proves that no transfer hook can
be added later. Freezing an active hook leaves it active. There is no permissionless way to remove a
hook after ownership is renounced.
A lock freezes the hook address, not code behind an upgradeable proxy.
## Canonical decode [#canonical-decode]
Programs receive canonical strings in `tokenData`:
- `HexColor` becomes `#rrggbb`.
- `Timestamp` becomes Unix time.
- `DecimalRange` uses ten decimal places.
- `Bytes` becomes base64.
- `String` becomes UTF-8.
- `Select` becomes its option label.
Write a `Bytes` parameter as `0x`-prefixed hex or with `--file`. Base64 is the read form, not the write
form.
## Seeds [#seeds]
`seed` is reserved. The canonical seed source assigns it once at mint. A seed schema allows an
authorized party to choose a replacement value; it does not draw fresh randomness.
The seed schema must exist before any seed is assigned. This lets a buyer inspect whether a seed may
change, who may change it, and when that authority ends. See [Code projects](/docs/protocol/code-projects#seeds).
# Field renderers (/docs/protocol/renderers)
A field renderer is a view contract that computes one metadata field. It can produce an SVG, an
`attributes` array, or another value without a browser or hosted renderer.
Set a field's representation to `renderer` and store the renderer address as its value.
## Interface [#interface]
```solidity
interface IAbxFieldRenderer {
function render(
address token,
uint256 tokenId,
bytes32 field
) external view returns (string memory contentType, bytes memory data);
}
```
The metadata renderer embeds content bytes in the JSON document. If the content type is
`text/uri-list`, it uses the returned bytes as a locator.
## Rules [#rules]
A field renderer should:
1. Return a stable result for the same chain state.
2. Handle missing state with a sensible fallback.
3. Return the right content type.
4. Keep output small enough for a normal `eth_call`.
5. Avoid upgradeable dependencies when the project claims permanence.
A revert or malformed return can break the full `tokenURI` call. Test unminted IDs, unset parameters,
the collection surface at `type(uint256).max`, and ordinary token IDs.
## Reading parameters [#reading-parameters]
Scalar parameters use:
```solidity
tokenParam(tokenId, key)
contractParam(key)
```
Read token scope first, then fall back to contract scope. `String` and `Bytes` use
`tokenParamData` and `contractParamData`; the scalar read contains only their hash.
A `Select` stores an index. Read its label from `selectOption(key, index)` rather than copying the
option table into the renderer.
An augment hook does not reach a custom field renderer automatically. The renderer must call the hook or
read the same underlying state itself.
## Example shape [#example-shape]
A small SVG renderer can derive color from a token parameter:
```solidity
function render(address token, uint256 tokenId, bytes32 field)
external
view
returns (string memory contentType, bytes memory data)
{
if (field != bytes32("image")) {
return ("text/plain", "");
}
string memory color = _palette(token, tokenId);
return (
"image/svg+xml",
abi.encodePacked(
''
)
);
}
```
Use the scaffold and test against a local ABX deployment before wiring the address:
```bash
abx scaffold renderer --out ./my-renderer
```
## Local preview [#local-preview]
`forge test` checks behavior but does not display the output. The scaffold's
`script/Preview.s.sol` calls `IAbxFieldRenderer.render` against mock parameters and writes the result
to `preview-out/`:
```bash
cd my-renderer
forge script script/Preview.s.sol
open preview-out/image.svg
```
Each input has a default and an environment variable override:
```bash
PREVIEW_TOKEN_ID=42 PREVIEW_SEED=0x00...abc PREVIEW_PALETTE=0x00...ff3366 forge script script/Preview.s.sol
```
The script reports reverts. Its gas output comes from a local EVM, not the production network. Deploy
and read `tokenURI` on the target chain for a production measurement.
## Wiring and locks [#wiring-and-locks]
Set a renderer during deployment or later:
```bash
abx set-field --collection --field image --representation renderer --value
abx set-field --collection --field attributes --representation renderer --value
```
Omit `--collection` and pass `--token ` for one token. The field lock freezes the renderer
address, not code behind it.
For a fully onchain metadata path, also set the contract's metadata renderer and lock URI configuration
when ready. Check [Metadata](/docs/protocol/metadata#locks) before making a permanence claim.
# Contract versions (/docs/protocol/versioning)
ABX contracts are immutable. ABX publishes a new generation only when the runtime must change.
Every collection reports a core version through `abxVersion()`. The SDK maps that version and its six
factory addresses to a stable generation ID, such as `abx-core-v3`, in
`packages/sdk/src/contract-generations.json`.
## Compatibility [#compatibility]
Generation identity never changes. Its lifecycle and support policy may.
| Lifecycle | Meaning |
| --- | --- |
| `current` | Used for new deployments. |
| `supported` | Superseded, but still supported. |
| `deprecated` | Still readable and serviceable; writes may warn or be disabled. |
| `quarantined` | Restricted because of a specific security or correctness risk. |
Software must use the generation's `support` flags for behavior. The lifecycle is an explanation,
not an allowlist. Canonical provenance is also separate from currentness: an older official ABX
collection remains attributable to its factory without becoming eligible for new deployments.
The SDK exports `ANCHOR_GENERATIONS`, lookup helpers by ID, core version, and factory, and
`supportsGenerationOperation`. `verifyProvenance` returns the matching generation and its support
policy.
Compatible services explicitly advertise understood generations in `/.well-known/abx-service`. Their project
list and status responses include a generation only after the recorded factory, its clone check, and
the collection's `abxVersion()` agree. No extra database field is required.
## Publishing a new generation [#publishing-a-new-generation]
A contract change that requires new runtime bytecode must:
1. bump `AbxVersion.CORE_VERSION`;
2. deploy and source-verify the complete factory generation on every supported chain;
3. prepend the new immutable identity to the registry and mark the old generation `supported`;
4. retain read, reconstruction, indexing, and serving behavior for the old generation; and
5. test both generations before enabling new deployments.
Do not edit or remove a published generation's ID, core version, or factory addresses. A quarantine
is the exception to normal compatibility and must describe a concrete risk.
# Third-party audits (/docs/reference/audits)
This section records third-party audit reports reviewed by ABX maintainers. A report's presence here
does not establish coverage of the whole protocol or every deployed generation. Quality assessments
and dispositions below are the maintainers' assessment, separate from the reporter's severity labels.
## Report summary [#report-summary]
| Date | Report | Scope | Quality assessment | Response |
| --- | --- | --- | --- | --- |
| 2026-10-30 | [LeftClaw Services #1106](/docs/reference/audits/leftclaw-1106) | `SeriesCode.sol` at `1e3061e`, with composed contracts read for context | Low | Existing safeguards verified; documentation clarified; three potential contract changes recorded for evaluation in issue #43. No immediate contract patch identified. |
ABX has not had a comprehensive independent security audit. Read each report's scope, method,
inaccuracies, and response before relying on its conclusions.
For new vulnerabilities, use the [private security reporting process](https://github.com/ArtBlocks/abx/security/advisories/new).
# LeftClaw Services #1106 (/docs/reference/audits/leftclaw-1106)
## Report and scope [#report-and-scope]
- **Published:** October 30, 2026.
- **Report:** [LeftClaw Services #1106](https://leftclaw.services/result/1106.html), the third-party
"one dollar audit" of `SeriesCode.sol`.
- **Canonical report:** [IPFS copy](https://bafkreieagilazd2yv6vz6q3rs6fnr2vblx5gz5jgxvuqiojv7bgqkddxny.ipfs.community.bgipfs.com/),
identified by the publisher as authoritative.
- **Reviewed commit:** [`1e3061e945a9c32b4d14af51a49448ee6f9b4837`](https://github.com/ArtBlocks/abx/tree/1e3061e945a9c32b4d14af51a49448ee6f9b4837),
also the latest `main` when maintainers evaluated the report.
- **Scope and method:** The report describes a manual review of one token contract, with its mixins
and dependencies read for context. It states that no code was executed and no Foundry coverage was
run. It reports one medium, four low, and four informational findings, with no high or critical findings.
## Quality assessment: low [#quality-assessment-low]
The report is useful as a checklist of owner powers and integration risks, but its quality as an
actionable security audit is low. Its principal finding omits existing controls and incorrectly states
that a transfer validator cannot be removed. Several other findings restate documented design choices
without identifying a failure of their intended guarantees. The report supplies no executed reproductions.
In particular, the existing code already supports a permanent no-transfer-hook commitment, immutable
plain-token enrollment status, validator suspension, and a permissionless suspension path after
ownership is renounced. Those controls materially change the principal finding's impact and response.
The documented weakness of the default pseudorandom seed source is real; it is not a newly discovered
randomness guarantee violation.
## Findings and maintainer response [#findings-and-maintainer-response]
| Finding | Assessment | Action or response |
| --- | --- | --- |
| **M-1: Transfer hooks and validators can block transfers; hooks can block minting** | A live transfer hook intentionally has veto power over mints, transfers, and burns. The report overlooks the ability to lock a zero transfer-hook address forever. Its validator claim confuses permanent enrollment with active enforcement: an enrolled validator can be suspended, anyone can suspend it after renunciation, and a plain token can never gain one. | Keep veto semantics so required hook state updates remain atomic with token movement. Clarify the existing hook lock in the owner-powers guide. Evaluate finer-grained commitments only as potential future work. |
| **L-1: Seed source can change for future mints** | Correct. Settled seeds and the source for future seeds are separate commitments. There is currently no seed-source lock. | Record an optional source-address lock for evaluation in #43. Any design must account for source failure, mutable source contracts, curated seeds, and seed schemas; it must not imply fair randomness. |
| **L-2: Default randomness permits selective acceptance** | Correct and already explicitly documented. A buyer can inspect the outcome within a transaction and revert. | Retain the existing warning. Projects requiring unpredictable outcomes need a separately designed commitment or oracle lifecycle. No immediate source change. |
| **L-3: Raw ERC-721 mint can deliver to an unsuitable contract** | An intentional tradeoff: minting does not call the receiver hook. The buyer must choose a recipient that can manage the token. | Keep the existing behavior. Absence of `onERC721Received` alone is not proof that a contract cannot hold or transfer NFTs. |
| **L-4: Authorized minter can issue remaining supply** | Correct authority boundary. Restricting `mintMany` would not contain a compromised minter that can repeatedly call `mint`. The shared minter enforces its own sale allocation and pricing. | Clarify that the token enforces caps while pricing and allocation controls belong to the minter. Review custom minter logic and upgrade authority. |
| **I-1: Owner bypasses pause; renouncing while paused ends issuance** | Intentional owner reserve authority with an operational footgun at renunciation. Ending issuance may itself be intended. | Add an explicit warning to check the pause state and intended end of issuance before renouncing. |
| **I-2: Permissionless deterministic salts permit front-running** | Correct for deliberately permissionless salts. CLI defaults already use deployer-bound salts; the SDK documents the permissionless helper's risk. | Keep the guarded defaults and existing guidance. No contract change. |
| **I-3: A separately deployed, uninitialized clone can be taken over** | The supported factories initialize clones atomically. The implementation itself has initialization disabled. | No change to the supported deployment path. Custom clone deployers must initialize atomically. |
| **I-4: Zero seed is treated as assigned** | Zero is a valid value. Assignment is represented independently by `isSet`; zero is not an unset sentinel. | Decline a protocol-wide nonzero requirement. Custom seed sources must enforce their own sentinel conventions. |
The relevant implementation and existing regression tests are available at the reviewed commit:
- [Hook setters and permanent lock](https://github.com/ArtBlocks/abx/blob/1e3061e945a9c32b4d14af51a49448ee6f9b4837/contracts/src/libraries/AbxParamsLib.sol#L460-L506).
- [Creator-token enrollment and validator suspension](https://github.com/ArtBlocks/abx/blob/1e3061e945a9c32b4d14af51a49448ee6f9b4837/contracts/src/extensions/creator-token/CreatorToken.sol#L64-L110).
- [Locked-empty-hook regression](https://github.com/ArtBlocks/abx/blob/1e3061e945a9c32b4d14af51a49448ee6f9b4837/contracts/test/SecurityProperties.t.sol#L203-L222).
- [Factory enrollment and ownerless-suspension regressions](https://github.com/ArtBlocks/abx/blob/1e3061e945a9c32b4d14af51a49448ee6f9b4837/contracts/test/SeriesCodeFactory.t.sol#L151-L190).
- [Default seed-source warning](https://github.com/ArtBlocks/abx/blob/1e3061e945a9c32b4d14af51a49448ee6f9b4837/contracts/src/seed/AbxSeedSource.sol).
## Actions and status [#actions-and-status]
Maintainers ran the existing `SeriesCode`, `SeriesCodeFactory`, `SeedAndCapInvariants`,
`SecurityProperties`, and `CreatorToken` Foundry suites at the reviewed commit: **117 tests passed,
zero failed**. These tests verify relevant existing safeguards; they are not an exhaustive independent audit.
The response updates the [owner-powers guide](/docs/protocol/owner-powers) with the correct
`getTransferValidator()` getter, the existing permanent no-transfer-hook path, and the consequences of
renouncing while paused. The [minting guide](/docs/protocol/minting) clarifies minter authority.
[Issue #43](https://github.com/ArtBlocks/abx/issues/43) now separately records three **potential changes
requiring merit evaluation before acceptance**: an optional seed-source lock, an independent permanent
no-transfer-hook commitment, and permanent validator suspension for enrolled projects. None is accepted
for implementation or schedules a new generation. No contract source, deployed contract, or runtime
behavior changes as part of this response.
# CLI (/docs/reference/cli)
Install the CLI globally or run it through `npx`:
```bash
npm install --global @artblocks/abx-cli
abx help
```
Use `abx --help` for every flag and example. This page is a map, not a second copy of the
built-in help.
## Start and inspect [#start-and-inspect]
| Command | Use |
| --- | --- |
| `demo` | Deploy, index, and serve a test 1/1 |
| `doctor` | Check Node, RPC, factories, storage, skill version, and optional signing setup |
| `capabilities` | Print supported project types and irreversible choices |
| `state` | Read owner-controlled settings and parameter schemas |
| `verify` | Check canonical deployment, byte commitments, and render freshness |
| `tokenuri` / `contracturi` | Read committed metadata; `contracturi` follows its URI and `--json` is machine-readable |
| `tokens` | List token state from the contract |
| `artifacts` | List served artifacts and current or stale effect output |
| `status` | Show resolver indexing state |
| `version` / `help` | Show the installed version or command help |
## Deploy [#deploy]
| Command | Use |
| --- | --- |
| `deploy` | Deploy a 1/1 image or single-work edition |
| `deploy-series` | Deploy an image Series or multi-work image edition |
| `deploy-code` | Deploy a code Series or code edition |
| `inspect` | Check a script for PostParams, trait hints, and animation delivery options |
| `scaffold solidity` | Create a Foundry workspace for renderers and hooks |
| `predict` | Predict a deterministic address from a pinned salt |
| `add` / `index` | Register or index a deployed project |
| `serve` | Run a local resolver |
| `render` / `effects` | Render once or run the effects worker |
Structured deploy output uses `plan.schemaVersion: 4`. Creator-wallet plans include
`paymentPolicy: "prefer-self-payment"`; other signing lanes use `paymentPolicy: null`.
Consumers should check the schema version before interpreting the plan.
## Sell and operate [#sell-and-operate]
| Command | Use |
| --- | --- |
| `mint` | Mint the next token or copies of an edition ID |
| `minter configure` | Set fixed-price sale terms |
| `minter show` | Read sale terms |
| `minter buy` | Buy through the shared fixed-price minter |
| `mint-page` | Scaffold a small mint site |
| `submit-app` | Submit a deployed collection to the optional ABX App Store |
| `pause` / `unpause` | Close or open non-owner minting |
| `set-minter` | Set the authorized minter |
| `set-primary-payee` | Set the primary-sale recipient |
| `set-max-invocations` | Lower the ERC-721 supply cap or edition ID-space cap |
| `set-max-supply` | Lower an edition ID's copy cap |
| `set-royalty` | Set royalty receiver and basis points |
| `set-royalty-cap` | Lower the project's royalty ceiling |
| `set-transfer-validator` | Manage an enrolled transfer validator |
| `transfer` | Transfer a token or edition copies |
| `set-admin` | Transfer project ownership |
## Metadata and code [#metadata-and-code]
| Command | Use |
| --- | --- |
| `set-field` / `attach` | Set metadata or attach a named artifact |
| `set-token-uri` / `set-contract-uri` | Change URI pointers |
| `set-renderer` | Choose onchain or resolver metadata |
| `set-gateway` | Change the HTTP gateway for IPFS or Arweave locators |
| `lock-field` / `lock-uri` | Permanently freeze metadata settings |
| `refresh` / `ping-uri` | Ask indexers to refresh metadata |
| `preview` | Run a code project locally |
| `configure-param` | Set a governed parameter |
| `set-schema` / `retire-param` | Define or permanently retire a parameter |
| `set-param-hooks` / `lock-param-hooks` | Set or freeze parameter hooks |
| `set-seed-source` | Change the source for future code-project seeds |
| `set-dependency` / `remove-last-dependency` | Edit code dependencies |
| `set-dependency-registry` | Change the dependency registry |
| `replace-script` | Safely replace an unlocked code project's onchain program |
| `lock-dependencies` / `lock-script` | Permanently freeze code inputs |
## Storage and hosting [#storage-and-hosting]
| Command | Use |
| --- | --- |
| `storage show` | Show the active byte-storage backend |
| `storage upload` / `storage status` | Upload bytes or check retrieval |
| `storage balance` / `storage topup` | Manage Arweave upload credit |
| `storage backup-key` | Back up the managed storage key |
| `vacuum` | Inspect or reclaim space in the local SQLite projection |
| `deploy-contract` | Deploy exact compiled EVM initcode, including custom hooks and renderers |
| `deploy-resolver` / `deploy-effects` | Deploy self-hosted services |
| `remote` | Inspect or test a conforming hosted service |
| `auth login` / `auth logout` | Reuse, create, or revoke the current hosted-service key |
| `auth wallet` | Provision or show the account's stable creator wallet |
| `auth keys` / `auth revoke-key` | List active key metadata or revoke an unused key |
| `feedback` | Preview or file an ABX report; nothing sends without `--yes` |
| `migrate` | Check parity while moving between resolvers |
| `forget` | Remove a local or remote projection without touching the chain |
## Runtime repeatability check [#runtime-repeatability-check]
```sh
abx preview --script art.js --check --count 9 --runs 3 --json
abx preview --code-dir ./dist --check --frames 3 --param palette=Dusk --json
```
Use `--param key=value` with `--shoot` or `--check` to apply an override to every render. Use
`key=` to leave that parameter unset. For a live render, pass the values on the request, for
example `/view?palette=Dusk`. Declare the keys with `--schema`.
Each seed runs in fresh Chromium contexts with the same token data and parameter overrides. A pass
means no pixel or normalized trait drift was observed for these inputs, capture times, and browser
build. It does not prove purity, cross-browser consistency, or correctness after deployment. Continue
using `abx inspect` and a testnet deployment to verify the other boundaries.
The check waits for `abx.done()`; traits alone do not certify completion. Exit `0` means matching
completed runs, `1` means observed drift, and `2` means incomplete execution or a harness failure
(including script errors, missing Playwright/Chromium, and timeouts). `--json` always emits one report;
progress and installation guidance go to stderr. Per-seed fields identify pixel/trait matches,
`driftFrames`, completion, diagnostic codes, observed hazards, and actual frame timing per run.
`--frames` samples the initial completed output and later targets one second apart. Each sample
compares both pixels and traits; diagnostics continue through the final sample. Capture scheduling
can vary, especially for continuously animated work: drift is evidence to investigate, not proof
that the program uses unseeded randomness. Hazards such as clock, network, and `Math.random` calls
are observations, not failures when sampled outputs still match.
Playwright and its Chromium build remain optional; install them using the command printed by the CLI
when absent. Bounds are 1–64 seeds, 2–10 runs, 1–20 frames, a 1–4000 pixel square viewport, and a
1–120000 millisecond timeout per navigation/readiness/capture operation. `--check` and `--shoot`
are separate modes. Each invocation exercises the same local preview server as the studio.
`abx inspect` reads the supplied local JavaScript file as text. It reports visible PostParam keys and flags computed reads
that can hide additional inputs. Declare the intended schema explicitly. Script-wide randomness is
a hint to check repeatability with `abx preview --check`. Verify the assembled `tokenURI` separately
from the marketplace still and traits you plan to serve.
## Signing lanes [#signing-lanes]
Every write uses one lane:
| Flag | Behavior |
| --- | --- |
| `--embedded` (alias `--sponsor`) | Creator wallet; self-pay when sufficiently funded, otherwise eligible gas is sponsored |
| `--sign` | Open a browser wallet |
| `--send` | Sign with the configured hot key |
| `--unsigned` | Print an unsigned transaction |
| `--dry-run` | Simulate without sending |
If the creator has not chosen a signer, use the live remote descriptor to prefer the creator wallet when the
chain and transaction group are eligible. Otherwise choose the appropriate bring-your-own lane.
Never paste a private key into a chat or prompt.
For `set-field --file`, `attach --file`, and image deployments with `--onchain-image`, the CLI
checks that the configured hot key matches the required signer, when known, before staging content.
On mainnet, the hot key requires `--yes` before staging begins. In an interactive terminal,
`--confirm` asks for approval before the first write in the staged operation.
A deploy preview reports the wallet approvals it will need. A predicted address is stable only when you
reuse the displayed salt with `--salt`. A salt's first 20 bytes are its deployer guard: they must be
zero (permissionless) or the address that will sign. The CLI refuses a known signer/guard mismatch
before authorization or broadcast.
### Unsigned transactions (`--unsigned --json`) [#unsigned-transactions---unsigned---json]
For deployments and owner writes, stdout contains one JSON document and progress goes to stderr.
The document has `schemaVersion: 1`, `sent: false`, and an ordered `txs` array. Each entry includes
`to` (`null` for direct contract creation), `data`, `value` (hex quantity), `chainId`,
`expectedSigner` (`null` when unknown), and the operation's `op`, `summary`, and `fields`.
A known clone address is available as `predicted.clone`. An empty `txs` array means there is no
transaction to prepare, for example when a requested setup is already complete.
For more than one transaction, sign and submit in array order and verify each receipt before
estimating or submitting the next. An optional `gasFloor` is a hexadecimal minimum used to
detect an implausibly low estimate. Use your signer's own estimate for the gas limit.
Deploy preparation can create off-chain storage locators. Use `--dry-run --json` to preview
without uploading or broadcasting. If a deployment needs an on-chain dependency bootstrapped,
set it up separately before requesting unsigned JSON. A command that needs an on-chain staging
receipt to compute later calldata requires an interactive signing lane.
### Structured deploy plan (`--dry-run --json`) [#structured-deploy-plan---dry-run---json]
`deploy`, `deploy-series`, and `deploy-code` include a versioned `plan` object in JSON output. It
contains the signing lane, transaction groups, roles, royalties, custody, mint plan, estimates,
warnings, required public surfaces, dependencies, and resume state. Unknown values are `null`.
`transactions.approvals` is the number of wallet approvals. `transactions.legs` names the logical
groups they contain. Large code deployments may split setup across transactions. `deploy-code
--resume` continues the idempotent setup steps, and reserve mints run last.
On Base and Base Sepolia, fresh deploy dry runs include `estimate.feeBreakdown` for standard wallet
transactions. It reports the execution fee, L1 data fee, operator fee, and total as decimal strings
in wei. `executionGasSource` identifies RPC estimates and heuristics. Code setup gas is heuristic
because the target contract does not exist yet. `ethApprox` and `gasApprox` describe execution only.
Pass `--for` to supply the deployer address for a code preview. A missing input, deferred upload or
staging step, or failed RPC quote leaves the affected components and total `null`. A reported `"0"`
means the quote returned zero. Off-chain storage costs and creator-wallet payment at signing are
separate from the standard wallet estimate.
## Optional utilities [#optional-utilities]
`abx utils [utility] [--json]` discovers optional official packages and their use cases.
`abx utils abxfs` describes ABX FS. The same descriptors appear in capability output.
Discovery does not install or execute utility packages; see the [utilities guide](/docs/using-abx/guides/utilities).
## Agent skill and updates [#agent-skill-and-updates]
`abx skill install` installs the version-matched agent skill. `abx doctor` reports drift between the
skill and CLI.
The CLI may print a notice when a newer npm release exists. It never upgrades itself. Set
`ABX_NO_UPDATE_CHECK=1` to disable the check.
# Contracts (/docs/reference/contracts)
The reference implementation has six token contracts. Project shape and token standard are separate
choices.
| Project shape | ERC-721 unique tokens | ERC-1155 copies |
| --- | --- | --- |
| One work | `OneOfOneImage` | `OneOfOneEdition` |
| Many works | `SeriesImage` | `EditionImage` |
| Code or generative | `SeriesCode` | `EditionCode` |
```mermaid
flowchart TD
Interfaces["Interfaces"] --> Mixins["Extension mixins"]
Storage["ERC-7201 storage"] --> Mixins
Libraries["Shared logic libraries"] --> Tokens["Six token implementations"]
Mixins --> Tokens
Tokens --> Factories["Six clone factories"]
```
## Extensions [#extensions]
Each optional feature is an abstract mixin with its own interface, events, storage namespace, and
version. Concrete tokens compose only the features they need.
Image contracts include onchain metadata and royalties. Series contracts add supply, minter, payee,
and pause controls. Code contracts add scripts, dependencies, seeds, and configurable parameters.
ERC-721 and ERC-1155 twins share extension IDs and behavior where the token standard allows it.
Edition supply is per token ID. Sequential ERC-721 supply is per collection.
## Storage [#storage]
Stateful extensions use ERC-7201 namespaces. Storage slots come from unique names rather than
inheritance order, so mixins cannot overlap when reordered.
Small helper libraries compile into the token. Larger write paths use shared delegatecall libraries:
| Library | Job |
| --- | --- |
| `AbxMetadataLib` | Metadata fields and locks for all six token types |
| `AbxParamsLib` | Parameter schemas, values, and hooks |
| `AbxCodeLib` | Script and dependency writes |
| `AbxEditionLib` | ERC-1155 metadata and supply paths |
These libraries operate on the calling token's namespaced storage. They are deployed at deterministic
addresses before the factories that link them.
## Clones and factories [#clones-and-factories]
Each token type has an ownerless factory. The factory deploys one implementation, disables direct
initialization on that implementation, and creates EIP-1167 clones.
`deploy(params)` creates and initializes a clone in one transaction. `deployDeterministic(params,
salt)` uses a predictable address. A salt prefixed with the deployer's 20-byte address reserves the
deployment to that account.
The factory records every clone it creates. `isAbxClone` is the canonical trust check. The
`AbxDeployed` event alone is not proof because any contract can emit it.
## Shared contracts [#shared-contracts]
`AbxMetadataRenderer`, `AbxChunkStore`, `AbxGenerator`, and `AbxSeedSource` are ownerless shared
contracts. Tokens refer to them by address instead of inheriting them. A project can point to another
compatible renderer, reader, or seed source where its configuration allows.
Run `forge build --sizes` after contract changes. `SeriesCode` is the binding EIP-170 case.
Source lives in [`contracts/src`](https://github.com/ArtBlocks/abx/tree/main/contracts/src). Read
[Events](/docs/protocol/event-spine), [Interfaces](/docs/protocol/interfaces), and
[Deployments](/docs/reference/deployments) next.
# Networks and deployments (/docs/reference/deployments)
ABX is adding EVM networks. This table is the central human-readable list.
| Network | Chain ID | Environment | Status | Contracts | Sponsorship |
| --- | ---: | --- | --- | --- | --- |
| Base Sepolia | `84532` | Testnet | Supported, default | Deployed | Available |
| Sepolia | `11155111` | Testnet | Supported | Deployed | No |
| Robinhood Chain Testnet | `46630` | Testnet | Experimental | Deployed | No |
| Arbitrum Sepolia | `421614` | Testnet | Supported | Deployed | Available |
| Base | `8453` | Production | Supported | Deployed | Available |
| Robinhood Chain | `4663` | Production | Beta | Deployed | No |
| Ethereum | `1` | Production | Supported | Deployed | No |
| Arbitrum | `42161` | Production | Supported | Deployed | Available |
Sponsorship is available to eligible accounts and may be limited or paused. Check the live service
descriptor and your account capabilities before relying on sponsored gas in the `--embedded` lane. Wallet self-payment is a separate live
capability and requires funds on the selected network.
`Supported` networks are ready for their stated environment. `Experimental` networks are under
qualification. `Beta` networks are still under production qualification.
The CLI refuses disabled networks.
Before a production transaction, run the same flow on the paired testnet. Review the network, signer,
transaction group, value, and locks. ABX has not had a comprehensive independent security audit.
See [Third-party audits](/docs/reference/audits) for limited-scope reports and the maintainer response.
The machine-readable sources of truth are
[`chain-support.json`](https://github.com/ArtBlocks/abx/blob/main/packages/sdk/src/chain-support.json)
for network status and paired networks, and
[`deployments.ts`](https://github.com/ArtBlocks/abx/blob/main/packages/sdk/src/deployments.ts) for
addresses. The live service descriptor decides sponsorship availability. Machine-readable data wins
if this page differs.
## Shared addresses [#shared-addresses]
The current `abx-core-v3` shared contracts use the keyless CREATE2 proxy. On every chain where the
canonical generation is deployed, these addresses are identical.
| Contract | Environment override | Address |
| --- | --- | --- |
| `OneOfOneImageFactory` | `ABX_FACTORY` | 0x2ff8828a9150401225bB217CAA8b9b5e666a1c97 |
| `SeriesImageFactory` | `ABX_SERIES_FACTORY` | 0x83222f791cA243FEb0c1Fef93a8732eCe3001b4b |
| `SeriesCodeFactory` | `ABX_SERIES_CODE_FACTORY` | 0xEAB8a19fEada0DDba2FDE324715eBbB6234B5616 |
| `OneOfOneEditionFactory` | `ABX_ONE_OF_ONE_EDITION_FACTORY` | 0x4e9dFcC70dCC02FA5bad113Bc2CF0A2218358B1E |
| `EditionImageFactory` | `ABX_EDITION_FACTORY` | 0xCC29eD68f26693dc9Aa5f090B21F37985206cc19 |
| `EditionCodeFactory` | `ABX_EDITION_CODE_FACTORY` | 0x86f9CFe597ab145452f4A66ac102291d54e8EB46 |
| `AbxMetadataRenderer` | `ABX_RENDERER` | 0xBfa4181cd005b2CA64f8F124456c9fb6111a3A27 |
| `AbxChunkStore` | `ABX_CHUNK_STORE` | 0x1Ca63a4ADEeF5e722ADA25b892BA40E3b2bcB905 |
| `AbxSeedSource` | `ABX_SEED_SOURCE` | 0xD01d4eDc17F8b4493A43A5e70DCD9813FB1b9A0A |
| `AbxFixedPriceMinter` | `ABX_FIXED_PRICE_MINTER` | 0xfb5C61274a3A7dA83CcDD88DdEC914438244E2c9 |
| `AbxFixedPriceMinter1155` | `ABX_FIXED_PRICE_MINTER_1155` | 0x2af9f0c477c34a23cBeC646a3b6BC0cA4Df5d37f |
| `AbxMetadataLib` | None | 0x404B48AA9784FCC042B317c64bE917390Ec4b55F |
| `AbxParamsLib` | None | 0x7200fAb33E5CbDAAb00d0b5ED3b27174F11bCf90 |
| `AbxCodeLib` | None | 0xD6b9cbC480D172B7Ba3f475f73bB197Dd20B047C |
| `AbxEditionLib` | None | 0x277FE8B9302FC8d015EE5DE7c98E669F8cC19E2c |
Address resolution follows this order: explicit option, environment override, SDK manifest.
## Chain-specific generator [#chain-specific-generator]
`AbxGenerator` includes chain-specific dependency configuration, so its address differs.
| Chain | Chain ID | Address |
| --- | --- | --- |
| Base Sepolia | `84532` | 0x05823faC69865F8A6c15c69D1Cb8F10Db87014e2 |
| Sepolia | `11155111` | 0x7fcf8118D400FF004fF0772a37c24196D9aA7b17 |
| Robinhood Chain Testnet | `46630` | 0x4F74De4835B51414a4DA83527589aEDc41A26FaE |
| Arbitrum Sepolia | `421614` | 0x53818B5d272E24BE03358350fbe67FBEe59cE239 |
| Base | `8453` | 0x4F74De4835B51414a4DA83527589aEDc41A26FaE |
| Robinhood Chain | `4663` | 0x4F74De4835B51414a4DA83527589aEDc41A26FaE |
| Ethereum | `1` | 0xE55e694e2Ef7d15D2e59d1778b911F27AAAB99f9 |
| Arbitrum | `42161` | 0x53818B5d272E24BE03358350fbe67FBEe59cE239 |
Ethereum and Sepolia use the Art Blocks `DependencyRegistryV0` at
0x37861f95882ACDba2cCD84F5bFc4598e2ECDDdAF and
0x5Fcc415BCFb164C5F826B5305274749BeB684e9b, respectively. Base, Base Sepolia, Robinhood Chain
Testnet, Robinhood Chain, Arbitrum Sepolia, and Arbitrum have no canonical dependency registry.
A dependency registry is separate from the token and factories. A collection may set its own registry
until it locks dependencies. Adding a registry later does not require a new token deployment.
## Contract generations [#contract-generations]
`abx-core-v3` is current for new deployments.
`abx-core-v2` remains supported for existing collections: reads, writes, indexing, and serving stay
enabled. New deployments use v3. The append-only generation registry in the SDK contains the six v2
factory addresses for provenance and compatibility.
## Verify a project [#verify-a-project]
```bash
abx verify 0xYourContract
abx state 0xYourContract
```
Canonical status comes from a factory's `isAbxClone` record. The SDK also reports older known factory
generations as provenance without treating them as current trust anchors.
`abx verify` also compares the collection's metadata renderer and generator with the current
addresses. A prior or custom singleton reports `not current`; the manifest does not classify it as
broken.
All listed Solidity contracts have public exact-match source verification. A canonical address
without an exact source match is a release bug.
# Reference (/docs/reference)
- [CLI](/docs/reference/cli) lists commands and signing modes.
- [SDK](/docs/reference/sdk) groups the TypeScript API by job.
- [Contracts](/docs/reference/contracts) maps the six token contracts and their extensions.
- [Deployments](/docs/reference/deployments) lists supported networks and canonical contract addresses.
- [Package releases](/docs/reference/package-releases) describes publishing authorization and the release process.
- [Third-party audits](/docs/reference/audits) lists reports, their scope, and the maintainer response.
For a first launch, use the [Quickstart](/docs/using-abx/quickstart). For the data model, read
[How ABX works](/docs/protocol).
# Package releases (/docs/reference/package-releases)
ABX packages publish from the protected `main` branch of `ArtBlocks/abx` through
`.github/workflows/release.yml`. Changesets creates a version PR; merging that PR publishes the
unpublished versions through npm trusted publishing with short-lived GitHub OIDC credentials.
The CLI package includes its co-versioned agent skill.
The release job uses the GitHub environment `npm-publish`. Its deployment branch policy must allow
only the `main` branch. Each ABX package's npm trusted publisher must identify `ArtBlocks`, repository
`abx`, workflow `release.yml`, and environment `npm-publish`. A branch filter in a workflow file alone
is insufficient because the file itself can differ on another branch.
These settings apply to `@artblocks/abx-cli`, `@artblocks/abx-sdk`, `@artblocks/abx-indexer`,
`@artblocks/abx-token-api`, `@artblocks/abx-effects`, `@artblocks/abx-storage`, and
`@artblocks/abx-storage-arweave`. Do not leave an additional publisher connection that authorizes the
same workflow without the environment restriction. Package publishing access should require 2FA and
disallow token publishing; automated releases use OIDC instead of a stored npm token.
When replacing a publisher connection, configure the matching GitHub environment and workflow first,
then coordinate the npm connections and a normal Changesets release. A new connection must complete
its first successful publish before npm's validation deadline. Keep the old connection only during
the coordinated transition, and verify the final publisher list for every package.
Required CI and the merge queue remain enabled. The environment does not add a manual approval step
to normal releases. Changes to these settings affect package publishing, not deployed collections,
contract addresses, or resolver URLs.
# SDK (/docs/reference/sdk)
`@artblocks/abx-sdk` is the ESM-only TypeScript library under the CLI. It uses viem and requires Node.js
22.13 or newer.
Use the CLI for a person or coding agent at a terminal. Use the SDK inside applications, workers, and
repeatable jobs.
## Install [#install]
```bash
npm install @artblocks/abx-sdk viem
```
```ts
import {makePublicClient, reconstructProject} from '@artblocks/abx-sdk';
const client = makePublicClient({chainKey: 'base-sepolia'});
const project = await reconstructProject(client, {
address: '0xYourContract',
fromBlock: 12345678n,
});
```
The main entry is safe to bundle for browsers. Import `@artblocks/abx-sdk/node` only from Node code.
That subpath contains `.env` loading.
## Configuration [#configuration]
Pass explicit options when possible. SDK fallbacks include:
| Setting | Environment variable |
| --- | --- |
| Chain | `ABX_CHAIN` |
| RPC list | `ABX_RPC_URLS_` or `ABX_RPC_URLS` |
| Hot signing key | `ABX_DEPLOYER_PK` |
| Canonical address overrides | Matching `ABX_*` deployment variable |
The SDK never loads `.env` through its main entry. A host may call `loadDotEnv()` from the Node subpath.
ABX ships independent keyless RPC fallbacks where they are available. Set a comma-separated
`ABX_RPC_URLS_` list for production workloads or your own provider. A submitted transaction
hash is durable evidence: if a receipt read fails, check that hash before sending again.
## Transactions [#transactions]
Write helpers return `PreparedTx`. The object contains the destination, calldata, value, chain ID, and
a human summary. Your application decides how to simulate, batch, sign, and send it.
```ts
import {
makePublicClient,
makeWalletClient,
makeHotSender,
prepareSetRoyalty,
runPrepared,
} from '@artblocks/abx-sdk';
const publicClient = makePublicClient({chainKey: 'base-sepolia'});
const {wallet, account} = makeWalletClient({chainKey: 'base-sepolia'});
const send = makeHotSender({wallet, account, publicClient});
await runPrepared([
prepareSetRoyalty({
contract: '0xYourContract',
receiver: account.address,
bps: 500,
chainId: 84532,
}),
], send);
```
Browser wallets, Safes, ERC-4337 accounts, and transaction queues can implement the same `SendTx`
function. Do not use `makeHotSender` in browser code.
`batchOps()` combines compatible operations into same-contract multicalls. Cross-contract calls stay
separate unless the signing account provides its own batching.
## Deployments [#deployments]
High-level deployment functions include:
- `deployOneOfOne`, `deploySeries`, `deployOneOfOneEdition`, `deployEditionImage`, and `deployEditionCode`
- `predictClone` and guarded `saltFor`
- `ensureFactory`, `ensureSeriesFactory`, and the other canonical infrastructure checks
Factories create deterministic EIP-1167 clones. The deploy result includes the clone address,
transaction hash, and block number.
The lower-level `prepareDeploy*` functions return unsigned transactions without sending.
## Owner operations and sales [#owner-operations-and-sales]
The `prepare*` family covers transfers, mints, URI configuration, fields, locks, royalties, supply,
minters, parameters, code, dependencies, seeds, and transfer validators.
Sale helpers include:
- `prepareConfigureSale` and `preparePurchase` for ERC-721
- `prepareConfigureSale1155` and `preparePurchase1155` for editions
- `readSaleConfig` and `readSaleConfig1155`
## Read and reconstruct [#read-and-reconstruct]
`reconstructProject()` replays the ABX event history and confirms live contract state. The result holds
identity, ownership, token type, canonical status, URI configuration, fields, policy, code, parameters,
and token rows.
For a watcher, use `reconstructIncremental()` with the previous state or `reconstructFromLogs()` with
logs fetched by a shared process. `getLogsAdaptive()` handles RPC range limits.
Both reconstruction functions scan through `latest` by default. Pass `toBlock: 'safe'` or
`toBlock: 'finalized'` to stop there. The SDK resolves the tag to a block number before scanning and
stores that number in `ProjectState.toBlock`. If the RPC does not support the tag, the call throws
`BlockTagUnavailableError`.
Other common reads:
| Function | Result |
| --- | --- |
| `listTokens` | Current owner, supply, seed, and parameter rows |
| `buildTokenData` | Canonical input for rendering |
| `readParamSchema` | Typed parameter rules |
| `readCollectionPolicy` | Burnability and royalty ceiling |
| `verifyCanonical` | Current factory trust result |
| `verifyProvenance` | Current or prior factory generation |
| `onChainUriReport` | Whether URI resolution is fully onchain |
ERC-721 lifecycle values are `unminted`, `live`, and terminal `burned`. ERC-1155 editions use `live`
or `no-live-copies`; an ID with zero copies can mint again.
## Resolver client [#resolver-client]
`AbxServiceClient` speaks the public service descriptor and version 1 control plane.
```ts
import {AbxServiceClient, isAccepted} from '@artblocks/abx-sdk';
const service = new AbxServiceClient({
baseUrl: 'https://metadata.example.com',
token: process.env.ABX_REMOTE_MYPROVIDER_TOKEN,
});
const result = await service.registerProject({
chainId: 84532,
address: '0xYourContract',
});
if (isAccepted(result)) {
await service.awaitIndexed(84532, '0xYourContract');
}
```
The client also lists, removes, and reindexes projects and publishes effect status. See
[Hosted services](/docs/using-abx/remote-services).
## Storage package [#storage-package]
Byte storage lives in `@artblocks/abx-storage`. Its `StorageBackend` interface covers filesystem,
S3/R2, IPFS, and Arweave. Install `@artblocks/abx-storage-arweave` to use the optional ArDrive Turbo
uploader.
Use `locatorStatus()` or `awaitLocatorReady()` before placing a new locator in token metadata. An
accepted upload may not be available through every gateway yet.
The package source and exported types are in
[`packages/sdk`](https://github.com/ArtBlocks/abx/tree/main/packages/sdk).
# Agent setup (/docs/using-abx/agent-and-skill)
The CLI works without an agent. The skill teaches agents the commands, risks, and approval points.
## Install the matching skill [#install-the-matching-skill]
```bash
abx skill install
```
The skill version is stamped when the CLI ships. `abx doctor` warns when the installed copy no longer
matches. Run the install command again after each CLI upgrade.
When ABX reports a newer CLI, the agent recommends upgrading before planning a deployment or write.
Updating local tooling does not change deployed projects, and the current release continues to
support earlier canonical project generations unless one is explicitly quarantined.
The default install covers Claude Code, Cursor, Codex CLI, Gemini CLI, and GitHub Copilot. To limit the
install, use one of these:
```bash
abx skill install --agent codex
abx skill install --agent cursor
abx skill install --global
```
Restart the agent after installation. If the current agent is a one-shot session and cannot restart,
run `abx skill path` and have it read the printed `SKILL.md` directly; the installed copy will be
discovered automatically by the next session.
## Choose the signer deliberately [#choose-the-signer-deliberately]
The agent checks the live ABX Services descriptor before asking you to set up a wallet. If the
network and transaction group qualify, it recommends `--sponsor`, especially on testnet.
You can bring your own signer. `--sign` opens a browser wallet. `--send` uses an environment key.
`--unsigned` prepares transactions for another signer. If the signer changes, run the dry run again.
See [signing modes](/docs/reference/cli#signing-lanes).
## Explore project ideas [#explore-project-ideas]
ABX projects are programmable, durable digital objects built on standard ERC-721 and ERC-1155
contracts. Artwork, shared resources, records, and financial or community interactions are possible
directions. The agent
starts with the object's purpose, participants, data, and behavior rather than assuming an art drop.
On-chain, off-chain, and hybrid designs have different dependencies and trust assumptions. See
[What you can build](/docs/using-abx/what-you-can-build) for starting points and example prompts.
Exploration stays separate from implementation: choose a concept before asking the agent to build
it. A future launch plan or an available wallet does not by itself authorize starting a project.
For ideas involving existing communities, marketplaces, or DeFi, the skill loads relevant
[ecosystem references](/docs/using-abx/guides/ecosystem-integrations) by network and task. Shared
providers are covered once, with chain-specific context loaded only when needed. The agent reuses
official third-party tools, prefers self-contained designs for long-lived output, and explains any
lifetime service dependency and owner-controlled recovery before choosing it.
## What the skill does not do [#what-the-skill-does-not-do]
The skill does not choose your edition size, storage, royalties, or sale price. It asks, shows the
plan, and waits for approval.
# Creator wallet (/docs/using-abx/creator-wallet)
ABX Services gives each verified account one creator wallet. The API key identifies the account but
cannot sign transactions. The same wallet address applies across EVM networks; each network has its
own balance.
Use `--embedded` for this wallet. `--sponsor` remains an alias for the same automatic payment policy.
When the live provider enables self-payment on a network, ABX uses the wallet's native funds if they
cover the transaction value plus the quoted fees. Otherwise, an eligible zero-value transaction uses
ABX gas sponsorship. A non-zero-value transaction always needs enough native funds for value plus fees.
There is no automatic switch to a different wallet.
The [network table](/docs/reference/deployments) lists sponsorship availability. Wallet self-payment
and sponsorship are separate provider capabilities: check `abx remote abx` and account capabilities.
Self-payment can cover qualified networks without sponsorship, including Ethereum. Sponsorship is
currently offered on eligible Base and Arbitrum networks and their Sepolia testnets.
```bash
abx auth login
abx remote abx
abx deploy --image ./art.png --name "Title" --symbol ART --onchain-uri --embedded --dry-run --json
abx deploy --image ./art.png --name "Title" --symbol ART --onchain-uri --embedded
```
Use the current CLI and refresh its installed skill after upgrading. During a provider rollout,
older providers retain their sponsored-only behavior; recognition by the CLI does not enable a
network or payment mode for an account.
When self-payment is unavailable, native-value calls report that restriction before checking funds.
Funding the wallet enables self-payment only after the provider enables it on that network.
Login provisions or reuses the stable creator wallet. `abx auth wallet` shows its address separately.
Compatible ABX tools share the first-party account credential and saved agent grant on the same
machine.
Fund that address on the network you intend to use. An ETH balance on Ethereum does not fund Base.
Native fee quotes include execution fees and, on Base, a reserve for estimated L1/operator fees.
Rollup fees can change; the CLI prints the selected payer and fee bounds before submission.
The first creator-wallet operation asks you to approve one agent grant. This single grant permits
wallet transactions, including transferring funds and paying fees. ABX stores it in the operating
system credential store and reuses it for up to 30 days unless revoked. There is no separate grant
for sponsorship or self-payment. Review the network, transaction value, and permanent settings
before sending. [Manage agent access](https://services.abx.io/authorize) to review or revoke grants.
On macOS, Keychain may ask whether **Node** can access the saved ABX authorization. Your Mac password
stays with macOS. This protects access to the cached grant; it does not approve a transaction.
One-time Keychain permission can prompt again on later access, and different Node installations or
wallet accounts may need their own permission. The CLI explains credential-store access before it
begins. If reading the saved grant fails or you deny that read, ABX stops rather than automatically
starting another grant.
Retry only when you intend to allow access to the expected Node installation.
Once an operation is prepared, its payment mode and fee ceilings are fixed. An uncertain submission
is reconciled rather than retried with another payer. Preserve the transaction hash and operation ID;
use `abx auth operation ` for read-only recovery.
Bring-your-own signing remains available through `--send`, `--sign`, and `--unsigned`. Run the same
flow on the paired testnet before using a production network.
# Collector email login (/docs/using-abx/guides/collector-email-login)
The [mint page](/docs/using-abx/guides/sales#mint-page) connects a collector's browser wallet. If
your collectors may not have one, you can add email login: a collector enters an email and gets an
embedded wallet automatically.
This uses a [Privy](https://privy.io) app that you create and own. ABX doesn't create the app or
hold its credentials. Privy bills your account for monthly active users beyond its free tier.
Collector wallets belong to your app. If you delete or abandon it, collectors who haven't exported
their keys lose access.
## Set up your Privy app [#set-up-your-privy-app]
To start building:
1. Sign in to the [Privy dashboard](https://dashboard.privy.io) and create an app. Email login is
on by default.
2. Copy the app ID. It's public. Your site doesn't need the app secret, so don't share it.
Your new app is in development mode, which is fine for building and testing. While it has no
allowed domains, Privy accepts sign-ins from any website, including `localhost`. Development mode
also caps how many users can sign in. When you're ready to launch, finish setup:
3. Add every domain your collectors will use to the app's allowed domains. Privy rejects
`*.vercel.app` and `*.netlify.app` wildcards, so use a custom domain or the exact preview URL.
4. Switch the app to production.
You can check where setup stands from the app's public configuration:
```bash
curl -s -H "privy-app-id: " https://api.privy.io/v1/apps/
```
`email_auth` should be `true`. Before launch, `allowed_domains` should list each collector domain.
## Add it to your site [#add-it-to-your-site]
Ask your agent to add Privy login to your mint page with your app ID. The ABX skill wires
`@privy-io/react-auth` so that:
- collectors can sign in with an email or a browser wallet;
- an embedded wallet is created for collectors who don't have one;
- Privy's confirmation prompts stay on for every signature;
- collectors can export their wallet's private key.
Keep the confirmation prompts on. Turning them off (`showWalletUIs: false`) lets your site's code
sign without the collector seeing it.
## Other providers [#other-providers]
ABX's guidance covers Privy. If you already use another embedded wallet provider, such as
[Coinbase CDP](https://docs.cdp.coinbase.com/wallets/non-custodial-wallets/overview) or
[MetaMask Embedded Wallets](https://docs.metamask.io/embedded-wallets/), your agent can wire it the
same way. Follow that provider's own docs for setup, pricing, and gas sponsorship.
## Funding new wallets [#funding-new-wallets]
A new email wallet is empty. Collectors need funds for the mint price and gas:
- **Crypto transfer.** Collectors send ETH to their wallet address on the collection's network. No
setup is needed.
- **Card or bank purchase.** Enable funding methods in your Privy dashboard, and your site can open
Privy's purchase flow.
- **Gas sponsorship (optional).** Turn on fee sponsorship in your Privy dashboard, add prepaid
credits, and select the collection's network. Sponsorship pays gas, not the mint price, so it suits
free mints. Your credits pay for it.
## Before launch [#before-launch]
Add your collector domains and switch the app to production. Then, on the testnet and your
production domain, sign in with a new email, fund the wallet, mint, and confirm Privy's prompt
appears before signing. Open the export flow once.
# Custom mechanics (/docs/using-abx/guides/custom-mechanics)
Most custom mechanics do not need a custom token. Keep the canonical ABX clone and put the behavior in
a separate controller contract.
## Extension points [#extension-points]
| Point | Set with | Job |
| --- | --- | --- |
| Minter | `abx set-minter` | Takes payment or checks eligibility before minting. |
| Configure hook | `abx set-param-hooks --configure` | Executes contract actions before a governed parameter write persists; may reject it. |
| Transfer hook | `abx set-param-hooks --transfer` | Executes contract actions during mint, transfer, or burn; may reject the move. |
| Augment hook | `abx set-param-hooks --augment` | Adds values when `tokenData` is read; cannot change state. |
One controller may be both the minter and a hook.
Parameter hooks exist only on `SeriesCode` and `EditionCode`, the contracts created by
`abx deploy-code`. An image series cannot gain hooks later. `--burnable` and `--copies` are also fixed
at deployment.
## Actions beyond validation [#actions-beyond-validation]
A parameter edit can trigger a swap through an AMM's official router, create an asset through a
factory, or update a shared resource. A transfer can trigger settlement or other financial actions.
Configure hooks run before the new value persists; transfer hooks run after ownership/balance
changes, within the same transaction. If a hook reverts, the operation and its on-chain actions roll
back. Augment hooks are read-only; off-chain effects are a separate execution model.
Custom contracts must authenticate the calling token and arrange funding and permissions explicitly.
Editing an NFT does not grant access to its holder's wallet or forward payment to the hook. Bound
spending and slippage, guard reentrancy and repeated triggers, and test every lifecycle path before
using financial actions. Hook installation alone grants no mint, burn, or transfer authority.
## Transfer lock [#transfer-lock]
A transfer hook may allow the mint and reject later moves:
```solidity
function onTokenTransfer(uint256, address from, address, address, uint256) external view {
require(msg.sender == address(token), "only token");
require(from == address(0), "transfers disabled");
}
```
Mints, transfers, and burns all pass through this hook. A mistake can block issuance or redemption.
Test every path. Lock the hook address with `abx lock-param-hooks` only after deployment is proven.
An ERC-721 self-transfer also reaches the hook because it emits a `Transfer` event. Ignore
`from == to` in the hook when the mechanic cares only about changes to the ownership set. ERC-1155
projects skip self-transfers and zero-amount entries before calling the hook.
## Values that only increase [#values-that-only-increase]
A configure hook reads the current value before the new one is stored:
```solidity
function onParamConfigured(uint256 id, bytes32 key, bytes32 value, address, uint256, address)
external view
{
require(msg.sender == address(token), "only token");
if (key != "size") return;
(bytes32 current,, bool isSet) = IAbxParams(token).tokenParam(id, key);
require(!isSet || uint256(value) >= uint256(current), "size may only grow");
}
```
For `String` and `Bytes`, the hook receives a pointer to the incoming blob. The blob already exists
when the hook runs, even if the hook rejects the write. Simulate the call before asking for a signature.
ABX refuses zero-length `String` and `Bytes` values. Use a sentinel byte or a second scalar key for an
empty state.
## Predict the token address [#predict-the-token-address]
The controller may need the token address while the token schema needs the controller address. Break
that cycle by predicting the clone address first.
```bash
abx predict --script art.js --for 0xYourDeployer --salt 0xYourSalt
forge script script/DeployController.s.sol \
--sig 'run(address)' 0xPredictedToken \
--broadcast
abx deploy-code \
--script art.js \
--salt 0xYourSalt \
--schema 'level:Uint256Range[0..99]:Address(0xController)' \
--name "Title" --symbol ART \
--sign
abx set-minter 0xPredictedToken --minter 0xController --sign
```
Use a salt whose leading 20 bytes equal the deploying wallet. A zero prefix is permissionless, so
someone else could deploy to the published address first. `abx predict` reports the guard.
## Interfaces for controllers [#interfaces-for-controllers]
| Need | Interface | Call |
| --- | --- | --- |
| Mint a unique token | `IAbxSequentialMint` | `mint(address)` |
| Mint edition copies | `IAbxEditionMint` | `mint(address, id, amount)` |
| Read a scalar parameter | `IAbxParams` | `tokenParam(id, key)` |
| Read a blob parameter | `IAbxParams` | `tokenParamData(id, key)` |
| Read a select label | `IAbxConfigurableParams` | `selectOption(key, index)` |
| Inspect hooks | `IAbxConfigurableParams` | `paramHooks()` and `paramHooksLocked()` |
Start from `abx scaffold solidity`, which writes a Foundry project with the small ABX interfaces and
tests. Then test against a deployed clone or a chain fork, not a hand-written token mock.
ABX does not compile Solidity. After `forge build` and `forge test`, deploy exact creation bytecode
through any signing lane:
```bash
abx deploy-contract \
--artifact out/MyHooks.sol/MyTransferHook.json \
--label "transfer hook" \
--sponsor
```
Use `cast abi-encode` for constructor arguments, run the command with `--dry-run --json` first, and
prove the same bytecode on the paired testnet. ABX refuses unresolved library placeholders and never
guesses argument types. Under `--sponsor`, deployment uses the keyless CREATE2 proxy and the preview
prints its salt and predicted address. That means a constructor observes the proxy as `msg.sender`;
use an explicit owner argument instead of relying on constructor caller semantics. Other signing
lanes use direct CREATE. Source-verify the deployed contract, then wire its address with
`abx set-param-hooks` or the matching renderer flag.
# Choose a project (/docs/using-abx/guides/deploy-a-digital-asset)
ABX has three project shapes. Add `--copies` to any shape when each work should have more than one
copy.
| Work | Command | Token standard |
| --- | --- | --- |
| One piece | `abx deploy` | ERC-721 |
| A folder of distinct pieces | `abx deploy-series` | ERC-721 |
| A program or onchain renderer | `abx deploy-code` | ERC-721 |
| Copies of any shape | Add `--copies ` | ERC-1155 |
Run a dry run first. Use `--sign` so the browser wallet handles the real transaction.
## One piece [#one-piece]
```bash
abx deploy \
--image ./art.png \
--name "Title" \
--symbol ART \
--onchain-uri --backend arweave \
--dry-run --for 0xYourAddress
```
Repeat with `--sign --for 0xYourAddress` when the plan is right.
Useful choices:
- `--onchain-uri` makes the contract assemble its metadata JSON.
- `--onchain-image` also writes the media bytes to the chunk store. It implies `--onchain-uri`.
- For a small SVG, bare `--onchain-uri` can inline the bytes in the single deploy transaction.
`--onchain-image` uses separate staging transaction(s) and a hash-committed reader. Compare both
dry runs before choosing.
- `--backend arweave|ipfs|cloud` keeps media offchain. `arweave` needs one extra package. See
[Storage](/docs/using-abx/guides/storage#arweave-identity).
- `--public-base-url ` points metadata at a resolver.
- `--no-mint` deploys without minting token 0.
- `--royalty-bps` defaults to 500, or 5%. `--royalty-cap` defaults to 1000, or 10%, and can only fall.
- `--burnable` lets holders burn. This choice is fixed at deployment.
A plain 1/1 has no primary-sale minter. Use a one-token series for a unique work sold through the
shared minter, or an edition when buyers receive copies.
## Series [#series]
```bash
abx deploy-series \
--dir ./art \
--name "Series title" \
--symbol ART \
--onchain-uri --backend arweave \
--mint-all --sign
```
Files sort into token IDs `0, 1, 2, ...`. Use `--count`, `--mint-count`, or `--no-mint` when only part
of the folder should be active.
Series deploy paused by default. The owner can mint while paused. Run `abx unpause` only after the
minter, payee, price, and allocation are set.
## Code project [#code-project]
Inspect the program before choosing custody:
```bash
abx inspect ./sketch.js
```
`inspect`, script deployment (both ERC-721 and ERC-1155), and `replace-script` warn about an HTML
embedding restriction: a literal `