コンテンツにスキップ

resolvedAssetToEip3009Domain

このコンテンツはまだ日本語訳がありません。

resolvedAssetToEip3009Domain(asset, chainId): Eip3009Domain

Defined in: src/tokens/asset-domain.ts:148

Assemble the EIP-712 Eip3009Domain from a construction-time pinned ResolvedAsset and the runtime chainId.

The single place that maps (pinned asset, chainId) -> domain, so every signing path (src/x402/client.ts, src/signer/) builds the domain identically — the domain half of the EIP-712 single-source-of-truth the mpc-2p backend relies on (RFC M6-1 §4.5, H1). name / version / verifyingContract come from the pinned asset; only chainId is per-request.

Parameters

asset

ResolvedAsset

chainId

number

Returns

Eip3009Domain