Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including turtlecoin-utils with all npm packages installed. Try it out:

var turtlecoinUtils = require("turtlecoin-utils")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

turtlecoin-utils v1.0.20

A Node.js collection of utilities useful for TurtleCoin developers

image

TurtleCoin Javascript Utilities

NPM

Prerequisite Documentation Maintenance License: GPL-3.0 Twitter: TurtlePay

Master Build Status

Build Status

Development Build Status

Build Status

This package contains code that wraps turtlecoin-crypto primitives into an easier to use interface. This includes the ability to easily discover funds for a wallet, create transactions, sign transactions (ring signatures), create new wallets, verify addresses, and handful of other useful methods. These methods can then be wrapped into a Javascript-based wallet such as turtlecoin-wallet-backend-js.

If you experience any issues with this library, the best way to address such situations is to submit a Pull Request to resolve the issue you are running into.

Installation

npm install turtlecoin-utils

Initialization

JavaScript

const TurtleCoinUtils = require('turtlecoin-utils').CryptoNote
const coinUtils = new TurtleCoinUtils()

TypeScript

import { CryptoNote } from 'turtlecoin-utils'
const coinUtils = new CryptoNote()

You can find TypeScript type definitions here

Browser Support

When packing for the browser with a tool like webpack we advise that you use the ready event of the webpacked module to determine when the Cryptographic methods are available.

<script src="TurtleCoinUtils.js"></script>
<script>
  TurtleCoinUtils.on('ready', () => {
    const coinUtils = new TurtleCoinUtils.CryptoNote()
  })
</script>

Documentation

You can find the full documentation for this library here

Credits

Special thanks goes out to:

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free