Siwe.validateMessage
Validates EIP-4361 message.
Imports
Named
import { Siwe } from 'ox'
Examples
import { Siwe } from 'ox'
Siwe.validateMessage({
address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
domain: 'example.com',
message: {
address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
chainId: 1,
domain: 'example.com',
nonce: 'foobarbaz',
uri: 'https://example.com/path',
version: '1',
},
nonce: 'foobarbaz',
})
true
Definition
function validateMessage(
value: validateMessage.Value,
): boolean
Source: src/Siwe.ts
Parameters
value
- Type:
validateMessage.Value
Values to use when validating EIP-4361 formatted message.
Return Type
Whether the message is valid.
boolean