Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
formatKeyId – ERC-8128
Skip to content

formatKeyId

Format a chain ID and address into an ERC-8128 keyid.

Usage

Pass a chain ID and Ethereum address to produce the canonical eip155:<chainId>:<address> string.

import { formatKeyId } from '@slicekit/erc8128'
 
const keyid = formatKeyId(1, '0xAbc123...')
// "eip155:1:0xabc123..."

Returns

string

The formatted CAIP-10 keyid string in the format eip155:<chainId>:<address>.

Parameters

chainId

  • Type: number

The Ethereum chain ID.

address

The Ethereum address.