All Projects → ethereumjs → Ethereumjs Tx

ethereumjs / Ethereumjs Tx

Licence: mpl-2.0
Project is in active development and has been moved to the EthereumJS VM monorepo.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ethereumjs Tx

Awesome Blockchains
A collection about awesome blockchains - open distributed public databases w/ crypto hashes incl. git ;-). Blockchains are the new tulips 🌷🌷🌷. Distributed is the new centralized.
Stars: ✭ 3,243 (+367.29%)
Mutual labels:  ethereum, transactions
Bouncer Proxy
👮🏻🛰 Ethereum identity proxy contract that bounces meta transactions of etherless accounts.
Stars: ✭ 142 (-79.54%)
Mutual labels:  ethereum, transactions
Brainflayer
A proof-of-concept cracker for cryptocurrency brainwallets and other low entropy key alogrithms.
Stars: ✭ 561 (-19.16%)
Mutual labels:  ethereum
Intellij Solidity
Solidity plugin for IntelliJ
Stars: ✭ 646 (-6.92%)
Mutual labels:  ethereum
Nbminer
NVIDIA & AMD GPU Miner for ETH, RVN, GRIN, BEAM, CFX, AE, SERO
Stars: ✭ 568 (-18.16%)
Mutual labels:  ethereum
Rainbow
🌈‒ the Ethereum wallet that lives in your pocket
Stars: ✭ 568 (-18.16%)
Mutual labels:  ethereum
Ethereum Org Website
Ethereum.org is a primary online resource for the Ethereum community.
Stars: ✭ 591 (-14.84%)
Mutual labels:  ethereum
Etherchain Light
Lightweight Ethereum blockchain explorer
Stars: ✭ 550 (-20.75%)
Mutual labels:  ethereum
Blockchain guide
Introduce blockchain related technologies, from theory to practice with bitcoin, ethereum and hyperledger.
Stars: ✭ 5,897 (+749.71%)
Mutual labels:  ethereum
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
Stars: ✭ 580 (-16.43%)
Mutual labels:  ethereum
Token Core Android
a blockchain private key management library on android
Stars: ✭ 613 (-11.67%)
Mutual labels:  ethereum
Status Go
The Status module that consumes go-ethereum
Stars: ✭ 579 (-16.57%)
Mutual labels:  ethereum
Echidna
Ethereum smart contract fuzzer
Stars: ✭ 571 (-17.72%)
Mutual labels:  ethereum
Ethlance
Ethlance is the first job market platform built entirely on the Ethereum blockchain. Free to use forever!
Stars: ✭ 598 (-13.83%)
Mutual labels:  ethereum
Lionshare Desktop
🦁 Simple cryptocurrency price and portfolio monitor for macOS
Stars: ✭ 570 (-17.87%)
Mutual labels:  ethereum
Ethereumjs Wallet
Utilities for handling Ethereum keys
Stars: ✭ 653 (-5.91%)
Mutual labels:  ethereum
Awesome Blockchain Articles
A collection of awesome blockchain articles. Good learning resources about blockchain.
Stars: ✭ 552 (-20.46%)
Mutual labels:  ethereum
Augur Core
Augur back-end (Ethereum contracts)
Stars: ✭ 575 (-17.15%)
Mutual labels:  ethereum
Solgraph
Visualize Solidity control flow for smart contract security analysis. 💵 ⇆ 💵
Stars: ✭ 599 (-13.69%)
Mutual labels:  ethereum
Ethermint Archive
Ethereum on Tendermint using Cosmos-SDK!
Stars: ✭ 667 (-3.89%)
Mutual labels:  ethereum

SYNOPSIS

NPM Package Actions Status Coverage Status Gitter or #ethereumjs on freenode

INSTALL

npm install ethereumjs-tx

USAGE

const EthereumTx = require('ethereumjs-tx').Transaction
const privateKey = Buffer.from(
  'e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109',
  'hex',
)

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

// The second parameter is not necessary if these values are used
const tx = new EthereumTx(txParams, { chain: 'mainnet', hardfork: 'petersburg' })
tx.sign(privateKey)
const serializedTx = tx.serialize()

Chain and Hardfork Support

The Transaction and FakeTransaction constructors receives a second parameter that lets you specify the chain and hardfork to be used. By default, mainnet and petersburg will be used.

There are two ways of customizing these. The first one, as shown in the previous section, is by using an object with chain and hardfork names. You can see en example of this in ./examples/ropsten-tx.ts.

The second option is by passing the option common set to an instance of ethereumjs-common' Common. This is specially useful for custom networks or chains/hardforks not yet supported by ethereumjs-common. You can see en example of this in ./examples/custom-chain-tx.ts.

MuirGlacier Support

The MuirGlacier hardfork is supported by the library since the v2.1.2 release.

Istanbul Support

Support for reduced non-zero call data gas prices from the Istanbul hardfork (EIP-2028) has been added to the library along with the v2.1.1 release.

EIP-155 support

EIP-155 replay protection is activated since the spuriousDragon hardfork. To disable it, set the hardfork in the Transaction's constructor.

API

./docs/

EthereumJS

See our organizational documentation for an introduction to EthereumJS as well as information on current standards and best practices.

If you want to join for work or do improvements on the libraries have a look at our contribution guidelines.

LICENSE

MPL-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].