post https://authapi.moralis.io/challenge/request/evm
Log in to see full request history
Response
xxxxxxxxxx
29import Moralis from 'moralis';
Moralis.start({
apiKey: 'YOUR_API_KEY',
});
// Values set in the backend
const DOMAIN = 'defi.finance';
const STATEMENT = 'Please sign this message to confirm your identity.';
const URI = 'https://defi.finance';
const EXPIRATION_TIME = '2023-01-01T00:00:00.000Z';
const TIMEOUT = 15;
// Values provided by the user
const address = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";
const chain = "0x1";
const network = "evm";
const result = await Moralis.Auth.requestMessage({
address,
chain,
network,
domain: DOMAIN,
statement: STATEMENT,
uri: URI,
expirationTime: EXPIRATION_TIME,
timeout: TIMEOUT,
});
Try It!
to start a request and see the response here! Or choose an example: