0.0.11 • Published 3 years ago

arverify v0.0.11

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

Version

Installation

  • yarn add arverify
  • npm install arverify

Usage

Getting address information

import { getVerification } from "arverify";

const address = "...";
const verification = await getVerification(address);
// returns an object containing:
// verified: Boolean
// txID: String | undefined
// icon: String
// percentage: number

Basic-Example:

const address = "...";
const verification = await getVerification(address);

// to check if an address is verified you can use
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";

// optional: pass in your own address to be eligible to receive
// ARVERIFY Tokens as a reward
const referral = "[your address]";

const uri = verify(address, returnUri, referral);
// redirect the user to this uri
0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago