How to Get Authorization Data
Ethers package installation
npm install --save-dev ethers"dependencies": {
"ethers": "^6.7.0"
}Generate signature
async function generateSignature() {
const walletAddress = '${yourWalletAddress}'
const hash = '${generatedHash}'
const message = 'Please sign to let us verify\nthat you are the owner of this address\n'+walletAddress+'\n\nRequest ID '+hash;
const signature = await wallet.signMessage(message);
return signature;
}Authorize
Last updated