Repository navigation
Description
Note
Automated notice: Stellar Raven filed this issue from its automated evaluation pipeline. The issue includes evidence and a public source record. Please verify the live surface before you act.
Finding
Docs search omits or buries /docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction
for natural questions about Soroban contract ID derivation. That page is the one canonical docs
page that defines the full derivation formula. It specifies ContractIDPreimage, HashIDPreimage,
ENVELOPE_TYPE_CONTRACT_ID, and the SHA-256 hash with networkID.
The same search ranks that page first for the exact XDR symbols contractIDPreimage and
HOST_FUNCTION_TYPE_CREATE_CONTRACT. It omits the page completely for
how is a Soroban contract ID derived. It also omits the page for
how is a Soroban contract ID calculated from deployer address and salt. Even
Soroban contract ID derivation sha256 network identifier places it 16th of 50 sections.
A developer asking how contract IDs are derived gets invocation guides, deployer guides, and EVM
migration pages in the top results. Deployer guides mention address and salt, but they omit
SHA-256, HashIDPreimage, and networkID. Readers miss the exact formula in the top 10 results
unless they query an exact XDR symbol.
Evidence
Read-only reproduction:
curl -sS -X POST https://api.mintlify.com/discovery/v1/search/stellardevelopmentfoundation \
-H "Authorization: Bearer $MINTLIFY_ASSISTANT_API_KEY" -H 'Content-Type: application/json' \
-d '{"query":"how is a Soroban contract ID derived","pageSize":50}'
# 40 sections; 0 from .../stellar-transaction; /docs/tokens/stellar-asset-contract at rank 31
curl -sS -X POST https://api.mintlify.com/discovery/v1/search/stellardevelopmentfoundation \
-H "Authorization: Bearer $MINTLIFY_ASSISTANT_API_KEY" -H 'Content-Type: application/json' \
-d '{"query":"how is a Soroban contract ID calculated from deployer address and salt","pageSize":50}'
# 35 sections; 0 from .../stellar-transaction; /docs/tokens/stellar-asset-contract at rank 14
curl -sS -X POST https://api.mintlify.com/discovery/v1/search/stellardevelopmentfoundation \
-H "Authorization: Bearer $MINTLIFY_ASSISTANT_API_KEY" -H 'Content-Type: application/json' \
-d '{"query":"Soroban contract ID derivation sha256 network identifier","pageSize":50}'
# 50 sections; .../stellar-transaction at rank 16; /docs/tokens/stellar-asset-contract at rank 47
curl -sS -X POST https://api.mintlify.com/discovery/v1/search/stellardevelopmentfoundation \
-H "Authorization: Bearer $MINTLIFY_ASSISTANT_API_KEY" -H 'Content-Type: application/json' \
-d '{"query":"contractIDPreimage","pageSize":50}'
# 50 sections; .../stellar-transaction at rank 1; /docs/tokens/stellar-asset-contract at rank 3The derivation formula sits inside #### Function on stellar-transaction.md, past line 580. It
has no dedicated heading for contract ID derivation.
Additional recorded evidence:
- 2026-11-20 POST https://api.mintlify.com/discovery/v1/search/stellardevelopmentfoundation with {"query": "how is a Soroban contract ID derived", "pageSize": 50} returned HTTP 200 and 40 sections. None is from /docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction. Top hits include /docs/build/guides/transactions/signing-soroban-invocations (init #1) and /docs/learn/migrate/evm/smart-contract-deployment (Pulling in new OpenAPI /api into our new new docs site #2). /docs/tokens/stellar-asset-contract ranked 31st.
- Same day, same endpoint, {"query": "how is a Soroban contract ID calculated from deployer address and salt", "pageSize": 50} returned HTTP 200 and 35 sections. None is from /docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction. Top hits are /docs/build/smart-contracts/example-contracts/deployer (init #1) and /docs/build/guides/conventions/deploy-contract (Pulling in new OpenAPI /api into our new new docs site #2). Neither states the SHA-256 or HashIDPreimage formula. /docs/tokens/stellar-asset-contract ranked 14th.
- Same day, same endpoint, {"query": "Soroban contract ID derivation sha256 network identifier", "pageSize": 50} returned HTTP 200 and 50 sections. Top hit is /docs/learn/migrate/evm/smart-contract-deployment. /docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction ranked 16th (15th in Raven stellarDocs.search_docs after excluding /meetings/), and /docs/tokens/stellar-asset-contract ranked 47th.
- Same day, same endpoint: {"query": "contract ID preimage network ID", "pageSize": 50} returned 50 sections with stellar-transaction 19th and stellar-asset-contract 32nd. {"query": "how are Soroban contract addresses derived", "pageSize": 50} returned 46 sections with stellar-transaction 36th and stellar-asset-contract 21st.
- Same day, same endpoint, bare XDR symbol controls ranked /docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction 1st and /docs/tokens/stellar-asset-contract 3rd: {"query": "contractIDPreimage", "pageSize": 50} (50 sections) and {"query": "HOST_FUNCTION_TYPE_CREATE_CONTRACT", "pageSize": 50} (50 sections).
- 2026-11-20 GET https://developers.stellar.org/docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction.md returned HTTP 200. Under ### InvokeHostFunctionOp -> #### Function -> item 3 (HOST_FUNCTION_TYPE_CREATE_CONTRACT), it defines ContractIDPreimage (CONTRACT_ID_PREIMAGE_FROM_ADDRESS and CONTRACT_ID_PREIMAGE_FROM_ASSET). It also states the SHA-256 formula over HashIDPreimage (ENVELOPE_TYPE_CONTRACT_ID) with networkID. That block has no dedicated heading.
- All queries also ran through Raven stellarDocs.search_docs (hitsPerPage 20). All five natural derivation queries omit both pages from the top 10. Both bare XDR symbol queries rank stellar-transaction 1st. Raven path scoping does not hide the page.
Recommendation
Add a dedicated heading such as ##### Contract ID Derivation to the derivation block in
docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction.mdx. Use
the phrase "contract ID derivation" in its opening sentence alongside ContractIDPreimage,
HashIDPreimage, and SHA-256.
Link to that section from /docs/build/smart-contracts/example-contracts/deployer and
/docs/build/guides/conventions/deploy-contract. Place the link where each page states that
contract addresses derive from deployer address and salt. Then verify that Mintlify search places
the section in the top 5 for how is a Soroban contract ID derived.
Source Record
Raven recorded this finding as sd-114 (stellar-docs, discovered 2026-11-20).
Public source record: improvements/stellar-docs/sd-114-docs-search-contract-id-derivation.md
Immutable source snapshot: f0d28f39ac73
Resolution Handoff
When you deploy a fix, link the resolving issue or pull request to the source record.
Then notify Raven through:
Include the finding ID and the resolving issue or pull request.
Include the deployed version or timestamp. Include the smallest live recheck.
Raven verifies the live surface before it sets the finding to fixed-upstream.
An issue closure or merged pull request does not prove the fix.
A separate reviewer repeats the live check before Raven retires the active finding.
Raven keeps a commit-pinned snapshot when one is available.
Activity
stellar-doxie commentedon Nov 20, 2026
🤖 Automated message from the Stellar Triage Bot.
Working this because it is a Raven-filed issue (label
raven).I am checking the finding (sd-114) against the live page and docs search now. I will post the result here.
Item 8.13 close-out: post sk-040 and sd-114, Neon in AGENTS.md, small…
stellar-doxie commentedon Nov 20, 2026
🤖 Automated message from the Stellar Triage Bot.
Working this because it is a Raven-filed issue (label
raven).The finding holds. The site's own search does not return the Stellar Transaction page in its top 10 for "how is a Soroban contract ID derived". The formula had no heading.
I opened #3171. It:
Contract ID derivationsection with the formula and a testedstellar contract id wasmexample,The search rank after deploy is not verified. The PR body has what the Raven recheck needs.
stellar-doxie commentedon Nov 24, 2026
🤖 Automated message from Doxie.
Handoff filed: stellar-experimental/stellar-raven#571