Skip to main content
Version: 2.2

Verify EVM challenge

POSThttps://authapi.moralis.io/challenge/verify/evm
BODY PARAM
messagestringrequired
Message that needs to be signed by the end user.
signaturestringrequired
EIP-191 compliant signature signed by the Ethereum account address requesting authentication.
Responses
API KEY
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.Auth.verify({});
console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"id": "fRyt67D3eRss3RrX",
"domain": "defi.finance",
"chainId": 1,
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
"statement": "Please confirm",
"uri": "https://defi.finance/",
"expirationTime": "2020-01-01T00:00:00.000Z",
"notBefore": "2020-01-01T00:00:00.000Z",
"resources": [
""
],
"version": "1.0",
"nonce": "0x1234567890abcdef0123456789abcdef1234567890abcdef",
"profileId": "0xbfbcfab169c67072ff418133124480fea02175f1402aaa497daa4fd09026b0e1"
}