Skip to content

Add muxed contract addresses to the address and payment guides - #3186

Open
kaankacar wants to merge 3 commits into
mainfrom
3183-muxed-contract-addresses
Open

kaankacar wants to merge 3 commits into
mainfrom
3183-muxed-contract-addresses

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor

Closes #3183

What

  • docs/build/guides/conversions/address-conversions.mdx: add the W prefix, the muxedContract and MUXED_CONTRACT type names, and the first SDK releases that parse a W address.
  • docs/build/guides/transactions/send-and-receive-c-accounts.mdx: add the section "Sending to a muxed contract address". Link it from the memo section.
  • docs/data/indexers/build-your-own/processors/token-transfer-processor/index.mdx: toMuxedInfo is also set for a muxed contract destination.
  • docs/build/guides/transactions/pooled-accounts-muxed-accounts-memos.mdx: add a note that a contract address can be multiplexed from Protocol 30.

Verification

  • CAP-84: the W strkey, the SAC transfer rule, and the to_muxed_id event format.
  • SEP-23 v1.4.0: STRKEY_MUXED_CONTRACT is 22 << 3, prefix W.
  • JavaScript SDK v17.3.0 changelog and src/base/address.ts: the muxedContract type. v17.2.1 does not have it.
  • Go SDK v0.8.0 strkey/main.go: VersionByteMuxedContract. v0.7.3 does not have it.
  • Java SDK 6.0.0 Address.java: AddressType.MUXED_CONTRACT. 5.0.0 does not have it.
  • Go SDK v0.9.0 processors/token_transfer/contract_events.go: the processor reads to_muxed_id from the event data for any destination type.
  • pnpm check passes.

Notes

Protocol 30 (CAP-84) adds muxed contract addresses. Their strkey starts
with W.

- address-conversions: add the W prefix and the SDK type names.
- send-and-receive-c-accounts: add a section on payments to a W address.
- token-transfer-processor: toMuxedInfo is also set for a W destination.
- pooled-accounts-muxed-accounts-memos: add a note on muxed contracts.
@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 23, 2026, 8:06 PM

@kaankacar

Copy link
Copy Markdown
Contributor Author

/triage

v16.4.0 ships the Protocol 30 XDR, but its Address throws on a muxed contract address (v16.4.0 release notes). "A release from before Protocol 30" did not cover it.
@stellar-doxie

stellar-doxie Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from Doxie.

Reviewing because @kaankacar asked with /triage.

Verified: the W prefix, the SAC transfer rule, and to_muxed_id match CAP-84 and SEP-23 v1.4.0. The SDK versions and the processor note match their sources. I merged main and pushed one fix: JavaScript SDK v16.4.0 is a Protocol 30 release, but it still rejects a W address.

Ready to merge.

What I checked
  • CAP-84 (stellar-protocol master core/cap-0084.md, Status: Implemented, Protocol 30): SC_ADDRESS_TYPE_MUXED_CONTRACT; the SAC transfer accepts it only as to; the event has the plain C address in to and the ID in to_muxed_id; an Address argument rejects it; it is not allowed in storage keys.
  • SEP-23 v1.4.0 line 57: STRKEY_MUXED_CONTRACT | 22 << 3 | W.
  • JavaScript SDK v17.3.0 src/base/address.ts: AddressType has "muxedContract". The same file at v17.2.1 has no muxedContract. The v16.4.0 release notes: "Address, scValToNative and the helpers built on them throw on muxed contract addresses". Newest is v17.4.0.
  • Go SDK v0.8.0 strkey/main.go: VersionByteMuxedContract = 22 << 3. v0.7.3 has no MuxedContract. Newest is v0.9.0.
  • Java SDK 6.0.0 Address.java: AddressType.MUXED_CONTRACT, IllegalArgumentException on an invalid string. 5.0.0 has no MUXED_CONTRACT. 6.0.0 is the newest.
  • Go SDK v0.9.0 processors/token_transfer/contract_events.go:331-365: sets ToMuxedInfo from to_muxed_id in the map data, whatever the destination type.
  • Mainnet: horizon.stellar.org reports current_protocol_version: 30.
  • Preview at d8afa7bf: the four touched pages return 200. The new text renders. The anchors #sending-to-a-muxed-contract-address and /docs/tokens/stellar-asset-contract#sending-to-a-muxed-address resolve.
  • Merged main (Add Protocol 30 (Bell) testnet versions #3138), so the linked SAC section no longer says that muxed contract addresses do not exist.
  • Pushed d8afa7bf: "An SDK release from before Protocol 30" became "Older SDK releases", plus one sentence on JavaScript SDK v16.4.0, in address-conversions.mdx and send-and-receive-c-accounts.mdx.
  • Sweep: searched W/muxedContract/MUXED_CONTRACT/MuxedAddress/multiplex/toMuxedInfo/to_muxed_id/"Only Stellar accounts" across docs/, snippets/, openapi/, openrpc/ and .mintlify/skills/. The only other copy was on the SAC page, which Add Protocol 30 (Bell) testnet versions #3138 already fixed on main. Hubble data-dictionary rows describe Hubble columns and are left as is.
  • Necessity: Mainnet runs Protocol 30, so exchanges and wallets now get W addresses. These pages listed only M.
  • No code examples and no CLI commands added. All checks pass at d8afa7bf.
  • Outside this PR: the JavaScript event monitor in send-and-receive-payments.mdx:801 fails on a plain i128 value. Filed send-and-receive-payments: JavaScript event monitor fails on a transfer without a muxed ID #3188.

@ElliotFriend ElliotFriend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, checked against CAP-84, SEP-23, and the SDK sources.

This branch was successfully deployed

1 active deployment
staging — d8afa7bf Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protocol 30: add W muxed contract addresses (CAP-84) to the address and payment guides

2 participants