Overview
The Router Registry is an ERC-721 NFT contract that serves as a decentralized directory. Each NFT represents an Opencharge identity, and the token ID is the OCID.Contract
Metadata Schema
The metadata URL must return a JSON document:Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
opencharge | string | Yes | Protocol version |
name | string | Yes | Human-readable service name |
description | string | No | Service description |
icon | string | No | URL to service logo |
publicKey | string | Yes | secp256k1 public key (128 hex chars, uncompressed without 04 prefix) |
endpoint | string | Yes | Base URL for Opencharge API |
capabilities | array | Yes | List of supported operations |
settlement.currencies | array | Yes* | Supported currencies |
settlement.accepts | array | Yes* | OCIDs accepted for settlement |
contact | string | No | Integration support contact |
Standard Capabilities
| Capability | Description |
|---|---|
payment.create | Can create payments (POST /payment/create) |
payment.settle | Can accept settlement proofs (POST /payment/settle) |
payment.receive | Can receive inbound payments (be a recipient) |
transfer.create | Can execute transfers (POST /transfer/create) |
transfer.webhook | Can receive transfer notifications (POST /transfer/webhook) |
orders.create | Can create and sign orders (POST /orders/create) |
orders.status | Provides order status (GET /orders//status) |
verify.txid | Provides transaction verification (GET /verify) |