# icjs-tx

> An simple module for creating, manipulating and signing irchain transactions

Latest version **0.0.2** (published 2018-08-08) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install icjs-tx
pnpm add icjs-tx
yarn add icjs-tx
bun add icjs-tx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-08-08 |
| First published | 2018-08-08 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 253.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | IrChain Team |
| Maintainers | irchain-io |
| Keywords | irchain, transactions |

## Links

- npm: https://www.npmjs.com/package/icjs-tx
- Repository: https://github.com/icjs/icjs-tx
- Issues: https://github.com/icjs/icjs-tx/issues
- npm.io page: https://npm.io/package/icjs-tx

## Dependencies (3)

- [bn.js](https://npm.io/package/bn.js.md) ^4.11.0
- [icjs-util](https://npm.io/package/icjs-util.md) ^0.0.1
- [icjs-common](https://npm.io/package/icjs-common.md) ^0.0.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-08-08

## README

# SYNOPSIS 
[![NPM Package](https://img.shields.io/npm/v/icjs-tx.svg?style=flat-square)](https://www.npmjs.org/package/icjs-tx)
[![Build Status](https://travis-ci.org/icjs/icjs-tx.svg?branch=master)](https://travis-ci.org/icjs/icjs-tx)
[![Coverage Status](https://img.shields.io/coveralls/icjs/icjs-tx.svg?style=flat-square)](https://coveralls.io/r/icjs/icjs-tx)
[![Gitter](https://img.shields.io/gitter/room/icjs/icjs-lib.svg?style=flat-square)](https://gitter.im/icjs/icjs-lib) or #icjs on freenode

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)  

# INSTALL
`npm install icjs-tx`

# USAGE

  - [example](https://github.com/icjs/icjs-tx/blob/master/examples/transactions.js)

```javascript
const IrcTx = require('icjs-tx')
const privateKey = Buffer.from('e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109', 'hex')

const txParams = {
  nonce: '0x00',
  gasPrice: '0x09184e72a000', 
  gasLimit: '0x2710',
  to: '0x0000000000000000000000000000000000000000', 
  value: '0x00', 
  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',
  // EIP 155 chainId - mainnet: 1, ropsten: 3
  chainId: 3
}

const tx = new IrcTx(txParams)
tx.sign(privateKey)
const serializedTx = tx.serialize()
```

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


# BROWSER  
For a browser build please see https://github.com/icjs/browser-builds.

# API
[./docs/](./docs/index.md)

# LICENSE
[MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))

---
_Source: https://npm.io/package/icjs-tx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
