Skip to content

Add starknet CAIP-19 asset profile - #220

Open
okwme wants to merge 1 commit into
ChainAgnostic:mainfrom
okwme:add-starknet-caip19
Open

okwme wants to merge 1 commit into
ChainAgnostic:mainfrom
okwme:add-starknet-caip19

Conversation

@okwme

@okwme okwme commented Sep 14, 2026

Copy link
Copy Markdown

Adds a CAIP-19 asset profile to the existing starknet namespace. The CAIP-2 profile is already ratified and is not touched.

Who wrote this

I do not represent the starknet ecosystem. I maintain FAR, an open cross-reference between CAIP-19, CoinGecko and ISO 24165 (DTI) identifiers, which needs a way to name 40 assets on this chain. CASA's README invites profiles added to an existing namespace, so this documents how assets are addressed rather than claiming to speak for anyone. Offered for the starknet community to correct, adopt or replace.

Asset namespaces

erc20, erc721

What this profile establishes

The normalisation rule is the contribution: 0x + exactly 64 lowercase hex, non-canonical input rejected rather than repaired. A Starknet address is a field element and is not fixed width — the node itself emits class hashes at 62 and 63 digits.

Proven live rather than asserted: four spellings of the ETH contract — 64-digit padded, 63-digit stripped, uppercase, and no 0x at all — return the same class hash from the same node, and all four use only characters the asset_reference charset permits. It is a real CAIP-19 hazard.

No slip44, stated normatively. Starknet has no chain-native balance; STRK and ETH are both ordinary contracts. SLIP-0044 registering STRK as 9004 is not evidence otherwise — a coin type is a key-derivation path component, not a protocol-level balance.

Every example was verified against a live node or explorer; anything that could not be verified is marked as such in the document rather than asserted. discussions-to points at 0xcounting/FAR#1.

Adds an asset specification to the existing starknet namespace, covering 40
assets that a cross-reference project needs to name. The CAIP-2 profile is
unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant