-
“hex” address: Starts with
0xand is EVM-based. -
“bech32” address: Starts with
sei1and is used for Cosmos functions.

Key points
Before linking
- The Bech32 (
sei...) and EVM (0x...) addresses are treated as separate accounts. - They have separate balances until they are linked.
- If the EVM address receives Cosmos tokens before association, a temporary Cosmos Bech32 address holds them. The tokens transfer to the associated address when the addresses are linked.
- Some types of transactions are not possible (see the table below).
After linking
- Both addresses show the same balance.
- Applications can query either address format.
Wallet association and transfer limitations
Some actions are not possible before the wallets are associated:- Transfers of CW-based tokens (for example, CW20, CW721, and CW1155) from a non-EVM wallet to an unassociated EVM address.
- Transfers of ERC-based tokens (for example, ERC-20, ERC-721, and ERC-1155) from an EVM wallet to an unassociated Cosmos address.
Methods of association
Each method makes the public key known to the chain. The chain then associates the EVM-compatible and Bech32 addresses automatically. All four methods go through the on-chain
addr precompile (0x0000000000000000000000000000000000001004) or the EVM ante handler. They are available on every Sei EVM RPC.The legacy
sei_associate JSON-RPC method is no longer available. Method 3 offers the same wallet-signed-message flow through the addr precompile.addr precompile in the
Sei-Chain/precompiles repository.
Method 1: Broadcast a transaction
- When an account broadcasts a transaction, such as a token transfer, its public key is recorded on-chain.
- After the public key is known, the EVM address and the Bech32 address are linked automatically.
- As a result, balances and transactions are accessible from both address formats.
Method 2: Direct private key association
Security risk: High. This method requires direct access to the private key. An exposed private key can compromise the wallet.
Method 3: Associate via signed message
In this method, you sign a predefined message to prove that you own the account.Method 4: Associate via public key
Security risk: Low. This method uses the public key, which is less sensitive than the private key.
Query linked addresses
To resolve either side of an existing association, call theaddr precompile at 0x0000000000000000000000000000000000001004 with a standard eth_call. The precompile is available on every Sei RPC.
Fetch Bech32 address for an EVM address
0x0c3c20ed is getSeiAddr(address). The call returns the bech32 sei1… address as an ABI-encoded string. If the EVM address is not associated yet, the call reverts.
In TypeScript with viem:
Fetch EVM address for a Sei address
Deriving addresses from the public key
Both address formats come from the same secp256k1 public key, but they use different hashing schemes. The bech32 (sei1…) side follows the standard
Cosmos derivation (SHA256 then RIPEMD160 of the compressed public key).
The EVM (0x…) side follows the standard Ethereum derivation (keccak256 of
the uncompressed public key without its 0x04 prefix byte).
Sei address derivation
The Cosmos address is derived from the public key in these steps:- Take the compressed secp256k1 public key (33 bytes, with a first byte of
0x02or0x03). - Hash it with
SHA256. - Hash the result with
RIPEMD160to get a 20-byte digest. - Encode that digest in Bech32 format with the
seiprefix.
EVM address derivation
The EVM-compatible address is derived in these steps:- Take the uncompressed secp256k1 public key (65 bytes, with a first byte of
0x04). - Drop the leading
0x04prefix byte, so that the input to the hash is the bare 64-byte(x, y)coordinate pair. - Hash these bytes with
keccak256. - Take the last 20 bytes of the hash and format them as
0x…hex.
Summary
- Sei address:
bech32('sei', RIPEMD160(SHA256(compressedPubKey)))(20 bytes, Cosmos-standard derivation). - EVM address:
'0x' + keccak256(uncompressedPubKey[1:])[-20:](the last 20 bytes of the keccak256 hash, Ethereum-standard derivation). - The two formats share an account because the chain stores the public key itself on association. Either format can be derived deterministically from the public key.
Why it works
Both formats are deterministic address schemes derived from the public key. The public key is recorded on-chain through any of the four association methods above, or implicitly through a first signed transaction. After that, the chain can derive both formats itself and route any incoming reference to the same account.Recap
- Accounts are linked automatically when a transaction is broadcast. You can
also associate them manually through the
addrprecompile (associateorassociatePubKey). - Both address formats share the same public key.
- After linking, dApps and tools can access balances consistently across both address formats.
HD paths and coin types
When you derive a private key from a mnemonic phrase, the hierarchical deterministic (HD) path has multiple parameters, including the coin type. The coin type determines the blockchain ecosystem that the key is derived for. This matters when you work with different wallets and blockchains.Coin type parameter
The second parameter in the HD path specifies the coin type, which the BIP-44 standard defines. This parameter identifies the blockchain ecosystem of the derived keys.- Ethereum (coin type 60): Wallets such as MetaMask use coin type 60. The
typical HD path for Ethereum is
m/44'/60'/0'/0/0. - Cosmos (coin type 118): Wallets for Cosmos-based chains, such as OKX,
use coin type 118. The typical HD path for Cosmos is
m/44'/118'/0'/0/0.
Implications
You cannot use an Ethereum mnemonic phrase (coin type 60) directly in a Cosmos wallet (coin type 118) to access the same accounts. The HD path determines a different set of keys for each coin type, so the derived addresses differ.Private key export
You can export your private key from MetaMask (derived with coin type 60) and import it into any Cosmos wallet. This works because a derived private key can be used across different blockchain ecosystems, if the receiving wallet supports the import function. You can then manage your assets across various blockchains with the same underlying cryptographic key.Example HD paths
- Traditional Cosmos path:
m/44'/118'/0'/0/0 - Traditional EVM path:
m/44'/60'/0'/0/0
Generating wallets
Deriving bech32 and hex addresses from pubkey
Sei derives a bech32 address (Cosmos and Tendermint style) and a hex address (Ethereum style) from the same public key. Each format uses its own hashing scheme. The bech32 address uses the Cosmos-standardSHA256 then RIPEMD160. The hex address uses the keccak256 method, which is
common in EVM networks. These snippets have detailed comments. They show the
correct method to derive both bech32 and hex addresses from a given ECDSA
secp256k1 key:
Python - from pubkey
Python - from pubkey
TypeScript - from pubkey
TypeScript - from pubkey
TypeScript - full derivation from private key
TypeScript - full derivation from private key