Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.
/ erc681 Public archive

ERC-681 and ERC-831 Ethereum URL/URI parsing

License

Notifications You must be signed in to change notification settings

parity-js/erc681

Repository files navigation

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

About

ERC-681 and ERC-831 Ethereum URL/URI parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •