Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parity/erc681

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parity/erc681

ERC-681 & ERC-831 parsing

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

erc681

This module contains two functions:

parseURL(string)

Takes in a string of an Ethereum URL and returns an object matching that URL according to rules specified in ERC-681.

Returned object depends on the prefix parsed from the URI format:

pay prefix

* default, currently the only possible prefix.

{
    prefix: 'pay',
    address: string,
    chainId: number (default: `1`)
}

parseURI(string)

Takes in a string of an Ethereum URI and returns an object matching that URI according to rules specified in ERC-831:

{
    prefix: string (default: `'pay'`),
    payload: string
}

License

GPLv3

FAQs

Package last updated on 11 Jun 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc