API Reference Overview
EvoBin has two public surfaces:
- File routes served by the Cloudflare Pages worker:
/view/<manifestId>,/raw/<manifestId>, and/view/<manifestId>/meta. - REST API served by the
evobin-apiWorker athttps://evobin.xyz/v1.
REST API
| Item | Value |
|---|---|
| Base URL | https://evobin.xyz/v1 |
| OpenAPI document | https://evobin.xyz/v1/openapi.json |
| Swagger UI | https://evobin.xyz/v1 |
| CORS | * |
The current /v1 routes are read-through/proxy endpoints. They do not create
documents. Publishing happens in the browser, signed by the connected wallet.
Identity read-through
| Method | Path | Purpose |
|---|---|---|
GET | /v1/drive/identity/:identityId | Identity record, public keys, balance |
GET | /v1/drive/identity/:identityId/balance | Balance only |
GET | /v1/drive/identity/:identityId/keys | Public keys only |
GET | /v1/drive/identity/:identityId/contract-nonce/:dataContractId | Contract nonce |
GET | /v1/drive/identity/by-key-hash/:hash | Identity lookup by HASH160 key hash |
Every identity route accepts an optional ?network=mainnet|testnet query. The
default is testnet, and the response reports networkDefaulted: true when the
caller omitted the parameter.
Units
Identity and balance responses return all three units:
| Field | Unit |
|---|---|
credits | Platform credits (the SDK unit) |
duffs | credits / 1,000 |
dash | duffs / 100,000,000 |
1 duff = 1,000 credits. Never treat a bare balance integer as DASH.
Errors
A failed upstream call returns a JSON body with a normalized status:
{
"success": false,
"network": "testnet",
"networkDefaulted": true,
"error": "Upstream error",
"type": "UPSTREAM_ERROR"
}
Malformed 32-byte identifiers and malformed 40-hex public key hashes are rejected
locally with 400, before the upstream call.
Legacy endpoints
The Worker also exposes the earlier mini-app and registration routes
(/v1/bin, /v1/bin/status, /v1/drive/address, /v1/drive/order,
/v1/drive/proof, /v1/drive/status). They are retained for compatibility and are
not part of the file-publishing flow.