Loading...
Loading...
This skill should be used when the user asks "what is ORDFS", "how to use ordfs.network", "ordfs API", "access on-chain content", "inscription gateway", "ordfs query parameters", "ordfs sequence", "ordfs directory", "ordfs preview", "recursive inscriptions", "ord-fs/json", or needs to reference, access, or serve on-chain content through ORDFS.
npx skill4agent add b-open-io/bsv-skills ordfs| Endpoint | Purpose |
|---|---|
| Direct content access |
| Content with options |
| Specific version |
| File from directory |
| Preview HTML code |
| Metadata only |
https://ordfs.network/{txid}_{vout}https://ordfs.network/abc123...def_0| Format | Example |
|---|---|
| Underscore | |
| Period | |
| Txid only | |
/content/{pointer}[:{sequence}][/{filepath}]| Param | Default | Description |
|---|---|---|
| true | Include content data |
| false | Include MAP metadata |
| false | Include raw output (base64) |
| false | Include parent reference |
| - | Return directory JSON instead of index.html |
/content/abc123..._0?map=true # With MAP metadata
/content/abc123..._0?content=false # Metadata only
/content/abc123..._0?raw # Directory listing/content/{pointer} # Same as :-1, gets latest version
/content/{pointer}:-1 # Explicit latest/content/{pointer}:0 # Original inscription
/content/{pointer}:5 # 5th update| Header | Description |
|---|---|
| Current outpoint |
| Original inscription outpoint |
| Sequence number |
| JSON MAP metadata |
| Parent inscription outpoint |
ord-fs/json{
"index.html": "ord://abc123..._0",
"style.css": "abc123..._1",
"app.js": "def456..._0"
}ord://txid_vouttxid_vouttxid/content/{directory_pointer}/index.html
/content/{directory_pointer}/style.css
/content/{directory_pointer}/app.jsindex.html/content/{pointer}/unknown/path → Returns index.html?raw/content/{pointer}?raw/preview/{base64EncodedHtml}const html = "<html><body>Hello!</body></html>";
const b64 = btoa(html);
const previewUrl = `https://ordfs.network/preview/${b64}`;curl -X POST https://ordfs.network/preview \
-H "Content-Type: text/html" \
-d "<html><body>Hello!</body></html>"<script src="/content/abc123..._0"></script>
<img src="/def456..._0" />
<link href="/content/style123..._0/main.css" rel="stylesheet">| Endpoint | Purpose |
|---|---|
| Latest block info |
| Block by height |
| Block by hash |
| Raw transaction |
| Endpoint | Purpose |
|---|---|
| Raw transaction |
| Merkle proof |
| BEEF format proof |
| Specific output |
| Latest block header |
| Current height |
| Inscription metadata |
| Streaming content |
_ordfs.yourdomain.com_ordfs.yourdomain.com IN TXT "ordfs=abc123..._0:5"ordfs={pointer}[:{sequence}]yourdomain.com/path/to/file// Using bitcoin-image for normalization
import { getDisplayUrl } from "bitcoin-image";
const imageUrl = await getDisplayUrl("ord://abc123..._0");
// Returns: https://ordfs.network/abc123..._0
// Direct construction
const url = `https://ordfs.network/${txid}_${vout}`;// Get inscription content
const response = await fetch(`https://ordfs.network/${origin}`);
const content = await response.text();
// Get with metadata
const metaResponse = await fetch(
`https://ordfs.network/content/${origin}?map=true`
);
const mapData = metaResponse.headers.get("X-Map");// Get latest sequence
const response = await fetch(`https://ordfs.network/content/${origin}`);
const sequence = response.headers.get("X-Ord-Seq");
const currentOutpoint = response.headers.get("X-Outpoint");| Request Type | Cache TTL |
|---|---|
Specific sequence ( | 30 days |
| Latest sequence (default) | 60 seconds |
| Block headers (depth 100+) | 30 days |
| Block headers (depth 4-99) | 1 hour |
| Block tip | No cache |
references/api-reference.mdreferences/advanced-features.mdexamples/fetch-content.tsexamples/recursive-inscription.htmlbitcoin-imagejs-1sat-ord@bopen-io/templates