Socket
Socket
Sign inDemoInstall

arverify

Package Overview
Dependencies
102
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    arverify

Anonymous Arweave Verification.


Version published
Maintainers
1
Install size
24.6 MB
Created

Readme

Source

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

FAQs

Last updated on 29 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc