Skip to content

createEIP712Domain() function in the BitBadges TypeScript SDK (bitbadges on npm): signature, properties, methods, and usage.

createEIP712Domain(eip155ChainId): EIP712Domain

Defined in: packages/bitbadgesjs-sdk/src/eip712/domain.ts:15

Builds the EIP-712 domain for a Cosmos EVM chain.

Mirrors cosmos/evm/ethereum/eip712/domain.go::createEIP712Domain. The chain's ante handler reconstructs this exact domain when verifying an EIP-712-signed Cosmos tx, so any deviation here will fail verification.

Parameters

eip155ChainId

number | bigint

Returns

EIP712Domain

Edit this page on GitHub