Installation
yarn add arverify
npm install arverify
Usage
Getting address information
import { getVerification } from "arverify";
const address = "...";
const verification = await getVerification(address);
Basic-Example:
const address = "...";
const verification = await getVerification(address);
if (verification.verified) {
console.log("Address is verified");
console.log("Verification tx:", verification.txID);
console.log("Trust score is:", verification.percentage);
}
Verifying addresses
Note: Only execute the verify()
function when you have the users consents.
import { verify } from "arverify";
const address = "...";
const returnUri = "https://your-application.com";
const referral = "[your address]";
const uri = verify(address, returnUri, referral);