Capsule lifecycle
A Capsule lifecycle is easier to reason about when publication is treated as a sequence of verifiable commitments rather than one large form submission.1. Prepare publication material
The application starts with the article or content artifact plus canonical metadata. Normalize the content format that will actually be hashed. If your CMS injects dynamic markup at delivery time, decide which canonical representation is being committed. The same rule applies to media. Hash the exact bytes represented by the metadata reference.2. Resolve identity and authority
Before preparing a write, resolve the PressKey account, active protocol role, bond state and outlet context.capsule.publish is a public economic action for Author, Journalist or Editor roles and requires identity, an active bond and the standard fee class under the V3 action policy.
Client preflight is for UX. Protocol enforcement remains authoritative.
3. Persist durable artifacts
Upload or store the canonical article representation, metadata envelope and any initial evidence. Avoid temporary URLs that expire before the transaction is mined. At this point, the application should have deterministic hashes for everything it intends to commit.4. Authorize publication
Construct the transaction using the approved Capsule contract and current deployment manifest. Confirm chain ID and PressKey account immediately before authorization. The docs intentionally do not invent a publication function signature where the active core implementation has not been confirmed as public authority. Generate calldata from the ABI shipped with the approved deployment.5. Confirm chain state
A successful wallet submission is not yet the same thing as a confirmed publication. Track the transaction receipt and then read the resulting Capsule by its canonicalbytes32 ID.
Persist the transaction hash and block coordinates in your application audit trail.
6. Attach related records
After the Capsule exists, other registries can safely refer to it. Typical follow-up work includes:- attach co-authors, sources or other contributors
- attach official evidence from authorized actors
- accept community or dispute evidence through the appropriate flow
- render metadata and cover media
- begin revision tracking