StarkNet Namespace - Addresses

Author Argent Labs
Status Draft
Type Standard
Created 2022-11-18
Updated 2022-11-18
Requires CAIP-2, CAIP-10

CAIP-10

For context, see the CAIP-10 specification.

Rationale

The address of a StarkNet account is represented by an element of a field, whose maximum value is slightly less than 2**256 - 1. Because of this, 32-byte hex representations of these addresses always have a leading zero.

Syntax

Like on Ethereum, StarkNet addresses begin with 0x followed by 64 hexadecimal characters representing the zero-padded address number, totaling 66 characters.

It’s recommended to checksum the address using capitalization according to EIP55, as is common elsewhere on EVM systems.

Test Cases

# StarkNet mainnet alpha (valid/checksummed)
starknet:SN_MAIN:0x02DdfB499765c064eaC5039E3841AA5f382E73B598097a40073BD8B48170Ab57

# StarkNet mainnet alpha (may not validate in checksum-conformant systems)
starknet:SN_MAIN:0x02ddfb499765c064eac5039e3841aa5f382e73b598097a40073bd8b48170ab57

# StarkNet goerli alpha
starknet:SN_GOERLI:0x02DdfB499765c064eaC5039E3841AA5f382E73B598097a40073BD8B48170Ab57

References

Rights

Copyright and related rights waived via CC0.

Citation

Please cite this document as:

Argent Labs, "namespaces/starknet-caip10: StarkNet Namespace - Addresses [DRAFT]," Chain Agnostic Namespaces, starknet-caip10, November 2022 / November 2022. [Online serial]. Available: https://github.com/ChainAgnostic/namespaces/starknet-caip10.md