ABX
Use ABXBuild and operate

Choose a project

Deploy a 1/1, series, code project, or edition.

ABX has three project shapes. Add --copies to any shape when each work should have more than one copy.

WorkCommandToken standard
One pieceabx deployERC-721
A folder of distinct piecesabx deploy-seriesERC-721
A program or onchain rendererabx deploy-codeERC-721
Copies of any shapeAdd --copies <n|open>ERC-1155

Run a dry run first. Use --sign so the browser wallet handles the real transaction.

One piece

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.
  • --public-base-url <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

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

Inspect the program before choosing custody:

abx inspect ./sketch.js

inspect, script deployment (both ERC-721 and ERC-1155), and replace-script warn about an HTML embedding restriction: a literal <!-- followed later by <script can leave the generated script element unterminated, even when those characters are inside a JavaScript string or comment. The upload can succeed while the browser never runs the artwork. A lone <!-- and ordinary closing script sequences are not this finding; the current generator already escapes closing script tags.

Correct the source in a way appropriate to its JavaScript context. For example, in an ordinary string literal, write '<!-' + '-' instead of '<!--'. Do not blindly rewrite arbitrary source or insert a comment terminator. These local checks warn without executing or changing the source and add no contract validation. Preview the generated page before uploading and before lock-script: an unlocked script can be replaced, but locking permanently freezes its stored bytes.

Then deploy an onchain script with a hosted resolver:

abx deploy-code \
  --script ./sketch.js \
  --public-base-url https://metadata.example.com \
  --name "Code title" \
  --symbol CODE \
  --sign

Use --onchain-uri instead of --public-base-url when the contract should assemble metadata. Other inputs include:

  • --script <file> for an onchain program.
  • --chunk-size <bytes> to override the default on-chain split size (~22 KB per chunk) for --script; smaller values force a multi-chunk program, useful for testing.
  • --code-dir <dir> for an offchain build containing index.html and abx.js.
  • --image-renderer <address> for an SVG computed by Solidity.
  • --attributes-renderer <address> for traits computed by Solidity.
  • --dep <name@version|address> for ordered code dependencies.
  • --schema key:Type:Auth for collector or creator parameters.
  • --seed-source <address> for a custom seed source.

The canonical seed is deterministic and pseudorandom. A contract in the mint transaction can predict it. Do not use it for raffles, prizes, or other outcomes where rarity changes the economic value.

A JavaScript project still needs a public home for rendered thumbnails. An onchain Solidity image renderer does not. Passing both --script and --image-renderer gives the token a live program and an onchain still.

Editions

Add --copies <n|open> to make ERC-1155 copies instead of unique ERC-721 tokens.

abx deploy --image ./art.png --copies open \
  --onchain-uri --backend arweave \
  --name "Open edition" --symbol OE --sign

abx deploy-series --dir ./art --copies 50 \
  --onchain-uri --backend arweave \
  --name "Edition set" --symbol ES --sign

abx deploy-code --script ./sketch.js --copies 25 --onchain-uri --sign

open means uncapped. A number sets the default cap for each token ID. --mint-amount controls how many copies of each selected ID mint during deployment.

Edition sales are priced per token ID. See Sales.

Before the real transaction

Read the dry-run summary and confirm:

  • the network in the dry run (and paired-testnet proof if you are heading to mainnet)
  • project shape and token standard
  • owner, royalties, burnability, and transfer restrictions
  • media custody and metadata route
  • supply, premint, pause state, and sale plan
  • every expected wallet approval

Dry runs report the selected signing lane and conservative readiness. blocked names missing or invalid local prerequisites; unknown means a wallet connection, external signature, creator grant, payment eligibility, execution, or funding has not been verified. Only a matching hot key with a successful existing execution/funding simulation earns ready. Credential presence alone does not. Deploy JSON adds readiness beside its existing version-3 plan; prepared-write JSON includes readiness beside its existing simulation. These checks never refresh grants, provision wallets, or send transactions, and add no RPC calls. Nonzero transaction value cannot use gas sponsorship; an eligible creator wallet may instead self-pay.

The browser signing lane connects once for a staged workflow and asks for explicit approval of each action. Rejection or cancellation ends the session. An abandoned session expires after 30 minutes without a connection or completed action. Inspect confirmed transaction hashes before resuming a partially completed deployment; approval of a session does not approve later transactions.

After deployment, run abx verify <address>.

On this page