Skip to main content

What You’ll Do

By the end of this guide you’ll have:
  • Connected to the PressChain testnet
  • Read a live Capsule from the Bridge API
  • Queried bond state from the BondManager contract
  • Made an authenticated Bridge write call
Time: ~10 minutes. Prerequisites: Node.js 18+, basic ethers.js familiarity.

Step 1 - Install Dependencies

Create .env:

Step 2 - Connect and Verify Chain


Step 3 - Read a Live Capsule from Bridge

The Bridge API is the fastest way to read normalized Capsule data - no ABI decoding required.

Step 4 - Query Bond State from Contract


Step 5 - List Recent Capsules via Bridge


Step 6 - Authenticated Bridge Request

Write routes require a Bearer token from a PressKey session:

What’s Next

Contract Registry

All deployed addresses with copy-paste TypeScript constants.

Bridge API Reference

Full GET and POST route documentation with request/response shapes.

Capsule Standard

The full JSON schema from the Rust API including evidence, contributors, and revision lineage.

PressKey Integration

Nonce challenge flow, event matrix, and WordPress security model.