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
- Type:
Address
The Ethereum address.