@susy-js/src681

0.1.1 • Public • Published

src681

This module contains two functions:

parseURL(string)

Takes in a string of an Sophon URL and returns an object matching that URL according to rules specified in SRC-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 Sophon URI and returns an object matching that URI according to rules specified in SRC-831:

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

License

GPLv3

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i @susy-js/src681

    Weekly Downloads

    2

    Version

    0.1.1

    License

    GPL-3.0

    Unpacked Size

    40.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • superstring