# confluxjs-transaction

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

Latest version **0.0.2-alpha.1** (published 2020-04-01) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install confluxjs-transaction
pnpm add confluxjs-transaction
yarn add confluxjs-transaction
bun add confluxjs-transaction
```

## 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-alpha.1 |
| Published | 2020-04-01 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 40.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yanpei Liu |
| Maintainers | geekberry, liuis, ypliu |
| Keywords | conflux, transactions |

## Links

- npm: https://www.npmjs.com/package/confluxjs-transaction
- Repository: https://github.com/Conflux-Chain/confluxjs-transaction
- Issues: https://github.com/Conflux-Chain/confluxjs-transaction/issues
- npm.io page: https://npm.io/package/confluxjs-transaction

## Dependencies (3)

- [rlp](https://npm.io/package/rlp.md) ^2.0.0
- [confluxjs-util](https://npm.io/package/confluxjs-util.md) *
- [ethereumjs-common](https://npm.io/package/ethereumjs-common.md) ^0.6.1

## Recent versions

- 0.0.2-alpha.1 (latest) — 2020-04-01
- 0.0.2-alpha.0 — 2020-03-31
- 0.0.1-alpha.7 — 2020-03-31
- 0.0.1-alpha.6 — 2020-03-31
- 0.0.1-alpha.5 — 2020-03-31
- 0.0.1-alpha.4 — 2020-03-31
- 0.0.1-alpha.3 — 2020-03-05
- 0.0.1-alpha.2 — 2019-04-11
- 0.0.1-alpha.1 — 2019-04-10

## README

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

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

# INSTALL
`npm install ethereumjs-tx`

# USAGE

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

```javascript
const EthereumTx = require('ethereumjs-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 EthereumTx(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/ethereumjs/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/confluxjs-transaction · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
