New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

polynym

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polynym

A simple solution to resolve BSV addresses from popular wallets and services

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source
polynym

A simple library and API that accepts any HandCash $handle, RelayX 1handle or PayMail address and resolves it to a Bitcoin SV P2PKH address, as well as accepting and returning valid P2PKH addresses. You can also use it as a lookup service on polynym.io or consume it as a free API over at https://api.polynym.io/getAddress/<address or handle> in any of your projects.

usage

To get started, run npm install polynym in your root directory. Here's an simple example implementation in Node.js:

const express = require('express'),
app = express(),
polynym = require('polynym');

app.get('/getAddress/:id', (req, res) => {
    polynym.resolveAddress(req.params.id).then(x => {
        res.json(x);
    }).catch(e=>{
        res.status(400).json(e);
    });
});

app.listen(1337);

or using the await/async syntax:

const express = require('express'),
app = express(),
polynym = require('polynym');

app.get('/getAddress/:id', async (req, res) => {
    try {
      x = await polynym.resolveAddress(req.params.id);
      res.json(x);
    } catch(e){
      res.status(400).json(e);
    }
});

app.listen(1337);

In the above example, a GET request to http://localhost:1337/getAddress/$unwriter would return the Bicoin SV address of unwriter's HandCash $handle: {"address":"15EwahT55Yn566A7tagq5Mbyhs8txjZpus"}

support

To request support for any additional services, please leave a feature request. For all other questions or support, please message me @deanmlittle or find me in the Atlantis slack group.

FAQs

Package last updated on 29 Oct 2019

Did you know?

Socket

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