Siwe Errors
Siwe.InvalidMessageFieldError
Thrown when a field in a SIWE Message is invalid.
Examples
import { Siwe } from 'ox'
Siwe.createMessage({
address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
chainId: 1.1,
domain: 'example.com',
nonce: 'foobarbaz',
uri: 'https://example.com/path',
version: '1',
})
Siwe.InvalidMessageFieldError: Invalid Sign-In with Ethereum message field "chainId". - Chain ID must be a EIP-155 chain ID. - See https://eips.ethereum.org/EIPS/eip-155 Provided value: 1.1
Source: src/Siwe.ts