JSPM

@bitdollar/dollar-signer

2.6.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q30301F

Sign bitdollar transactions with this library

Package Exports

  • @bitdollar/dollar-signer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bitdollar/dollar-signer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Join the chat at https://gitter.im/bitdollar-network/dollar.js

npm

INSTALL

npm install dollar-signer

USAGE

// Currently only supporting use as vanilla JS
// Please move and use the dist/dollar-signer.min.js file.
// const dollarSigner = require('dollar-signer')
const privateKey = Buffer.from('your_private_key', 'hex')

const parameters = {
  nonce: '0x00',
  gasPrice: '0x09184e72a000', 
  gasLimit: '0x2710',
  to: '0x0000000000000000000000000000000000000000', 
  value: '0x00', 
  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',
  chainId: 8773873
}

const transaction = new dollarSigner(parameters)
transaction.sign(privateKey)
const serializedTransaction = transaction.serialize()

Note: this package expects ECMAScript 6 (ES6) as a minimum environment. From browsers lacking ES6 support, please use a shim (like es6-shim) before including any of the builds from this repo.

API

./docs/