Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ardenthq/arkvault-url

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ardenthq/arkvault-url

URL parser and validator for ARK based networks

npmnpm
Version
1.1.2
Version published
Weekly downloads
400
-26.74%
Maintainers
2
Weekly downloads
 
Created
Source

ARKVault URL

A package to generate URLs compatible with ARKVault

Usage

Install the package in your project

pnpm install @ardenthq/arkvault-url

Import the builder from the package

import { URLBuilder } from "@ardenthq/arkvault-url";

Initiate the builder and generate your URL

const builder = new URLBuilder();
const url = builder.generateTransfer("recipient");

> https://app.arkvault.io/#/?method=transfer&recipient=recipient&coin=ARK&nethash=6e84d08bd299ed97c212c886c98a57e36545c8f5d645ca7eeae63a8bd62d8988

For further customizations, you can use the following methods

builder.setCoin("Custom"); // Defaults to "ARK"
builder.setNethash("0123..ef)"; // Defaults to ARK's mainnet nethash

new URLBuilder("https://your-url.com"); // Defaults to app.arkvault.io

More detailed docs will follow soon

Development

pnpm is required to be installed before starting. It is used to manage this repo.

Apply eslint rules to source

pnpm run lint

Apply eslint rules to tests

pnpm run lint:test

Apply prettier formatting

pnpm run prettier

Run tests

pnpm run test

Security

If you discover a security vulnerability within this package, please send an e-mail to security@ardenthq.com. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © Ardent

FAQs

Package last updated on 03 Aug 2022

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