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 erc8128:<chainId>:<address> string.

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

Returns

string

The formatted keyid string in the format erc8128:<chainId>:<address>.

Parameters

chainId

  • Type: number

The Ethereum chain ID.

address

The Ethereum address.