Demo script¶
Recorded on 9 October 2026 using the v0.1.0 candidate, a real 200-contract testnet index at ledger 5097816, and the recorded 7 October mainnet census. This is a local demonstration; no public API deployment is claimed. Absolute paths below identify the actual run. For a fresh recording, build with scripts/build-release.sh, seed your own testnet database as described in Self-hosting, and substitute its paths. Counts and contract history can change.
The operator waived Stage F step 28 because no deployed fixture was available. The history command therefore shows one real observed contract version, not an upgrade demonstration. No placeholder contract ID was used.
version¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx version
sep47idx v0.1.0 (go1.27.2, linux/amd64)
phase0¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx phase0 --network mainnet --render-only --out /workspace/scratch/stage-i/demo
Exited 0 with no stdout; the following command displays the generated report. Rendering reuses the dated census and does not rerun a mainnet scan.
phase0-report¶
sed -n 1,34p /workspace/scratch/stage-i/demo/ADOPTION.md
# SEP-47 adoption report
Generated by `sep47idx phase0` from the per-network summaries in this directory. Every number below comes from those runs; the date of each run is given in its section.
A **declaration** is what a contract's `sep` meta says (SEP-47). An **interface match** compares its `contractspecv0` function types with a rule file. Neither says anything about behavior.
## Decision
Unique mainnet Wasm hashes declaring any SEP: **13 / 2178 (0.60%)**. Applicable row of the CLAUDE.md §5.10 decision rule:
> < 1%: README headline "Interface index + adoption tracker" with outreach in "How to help"; Phase 2 deferred.
## Mainnet
Run: 2026-10-07T12:09:34Z, latest ledger 64817831. Parser version 1; rules sep41-v0.5.2.
**Method.** Census, not a sample. Contract instances and code hashes come from Stellar's Hubble dataset on BigQuery (scripts/hubble-export.sql: current rows of snapshots.contract_data_snapshot and the latest row per hash of crypto_stellar.contract_code). Each instance's executable is decoded from its exported XDR; CAP-85 references are resolved from the export or with getLedgerEntries. By-hash rates are over code hashes not marked deleted that RPC returned live; by-contract rates are over Wasm-running contracts whose code RPC returned live.
### Contracts
| | Count | Share |
| --- | ---: | ---: |
| Contracts counted | 156173 | |
| Stellar Asset Contracts | 4042 | 2.59% |
| Wasm (direct hash) | 152131 | 97.41% |
| Wasm by CAP-85 reference | 0 | 0.00% |
| … distinct references they share | 0 | |
| … references unresolved | 0 | |
| Instances archived (measured by seeding the census population at ledger 64818399) | 74959 of 156173 | 48.00% |
| Instance rows that failed to decode | 0 | |
| Wasm contracts whose code is archived or missing | 10154 | |
| Wasm contracts measured (by-contract denominator) | 141977 | |
### Wasm hashes
declared¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx query --network testnet --db /workspace/scratch/stage-g/testnet.db --implements 41 --tier declared --json
{
"contracts": [],
"next_cursor": null,
"parser_version": "1",
"tier": "declared"
}
inferred¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx query --network testnet --db /workspace/scratch/stage-g/testnet.db --implements 41 --tier inferred --limit 2 --json
{
"contracts": [
{
"contract_id": "CAEWTQQW3RGKV67IK2K64BNXRFUYTPNIDKSTGZULV3E3JQMQQECTBRCR",
"kind": "wasm",
"wasm_hash": "7494c2bb5e9f6dd3f831b078400746b86f748a65cf14f593b1adb3572e2feea5",
"exec_ref": null,
"archived": false
},
{
"contract_id": "CAEXK2QQJYJLQPWZKWEPJMHL73VD5PPLJVKC6WMJL3W5YMDQ2EKNMJZJ",
"kind": "wasm",
"wasm_hash": "a5f6b06ca8fb10a7f3d12ba5fae3361f04a242054757080cf14c375b88e1c898",
"exec_ref": null,
"archived": false
}
],
"next_cursor": "eyJ2IjoxLCJpZCI6IkNBRVhLMlFRSllKTFFQV1pLV0VQSk1ITDczVkQ1UFBMSlZLQzZXTUpMM1c1WU1EUTJFS05NSlpKIn0",
"parser_version": "1",
"tier": "inferred",
"ruleset_versions": {
"41": "sep41-v0.5.2"
}
}
gap¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx gap --network testnet --db /workspace/scratch/stage-g/testnet.db --sep 41
Undeclared gap for SEP-41 (inferred: interface matches sep41-v0.5.2, no SEP declared): 27 contracts
CAEWTQQW3RGKV67IK2K64BNXRFUYTPNIDKSTGZULV3E3JQMQQECTBRCR 7494c2bb5e9f6dd3f831b078400746b86f748a65cf14f593b1adb3572e2feea5
CAEXK2QQJYJLQPWZKWEPJMHL73VD5PPLJVKC6WMJL3W5YMDQ2EKNMJZJ a5f6b06ca8fb10a7f3d12ba5fae3361f04a242054757080cf14c375b88e1c898
Only the first three output lines are reproduced here; the real run listed all 27 contracts.
history¶
/workspace/soroindex/dist/v0.1.0/linux_amd64/sep47idx contract CAEWTQQW3RGKV67IK2K64BNXRFUYTPNIDKSTGZULV3E3JQMQQECTBRCR --network testnet --db /workspace/scratch/stage-g/testnet.db --history --json
{
"contract_id": "CAEWTQQW3RGKV67IK2K64BNXRFUYTPNIDKSTGZULV3E3JQMQQECTBRCR",
"network": "testnet",
"history": [
{
"wasm_hash": "7494c2bb5e9f6dd3f831b078400746b86f748a65cf14f593b1adb3572e2feea5",
"from_ledger": 5067557,
"to_ledger": null,
"exec_ref": null,
"claims": [
{
"sep": 41,
"declared": false,
"inferred": {
"status": "match",
"ruleset_version": "sep41-v0.5.2",
"missing": [],
"mismatched": []
},
"verified": null,
"protocol": false,
"source": "interface-match",
"anomaly": null
}
]
}
],
"parser_version": "1",
"as_of_ledger": 5097816,
"next_cursor": null
}
HTTP stats¶
A read-only server was already running on localhost against the same database. Start your own with sep47idx serve --network testnet --db <your-db> --addr 127.0.0.1:8080.
curl --fail --silent --show-error http://127.0.0.1:8080/v1/stats
{"network":"testnet","adoption":{"LiveSAC":6,"LiveWasm":185,"LiveWasmRef":0,"WasmRefUnresolved":0,"MeasuredContracts":183,"UsedHashes":107,"DeclaringContracts":0,"DeclaringUsedHashes":0,"SEP41ByContract":{"match":27,"mismatch":138,"partial":18},"SEP41ByUsedHash":{"match":7,"mismatch":98,"partial":2},"GapContracts":27,"GapUsedHashes":7},"anomalies":{},"archived_contracts":9,"total_contracts":200,"last_ledger":5097816,"ruleset_versions":{"41":"sep41-v0.5.2"},"parser_version":"1"}
The declared query is empty while the inferred query returns matches. Interface compatibility is not a security audit. Verified results are null because Stage J is deferred under the adoption gate.