All Projects → maticnetwork → eth-decoder

maticnetwork / eth-decoder

Licence: MIT license
Simple library to decode ethereum transaction and logs

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to eth-decoder

Eth.social
An Ethereum dApp for posting social events.
Stars: ✭ 17 (-46.87%)
Mutual labels:  smart-contracts, truffle, web3
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (+1212.5%)
Mutual labels:  smart-contracts, truffle, web3
etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (-40.62%)
Mutual labels:  smart-contracts, truffle, web3
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+1100%)
Mutual labels:  smart-contracts, truffle, web3
trufflepig
🍄🐷Truffle contract artifact loading tool for local development
Stars: ✭ 45 (+40.63%)
Mutual labels:  smart-contracts, truffle, web3
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (+21.88%)
Mutual labels:  smart-contracts, truffle, web3
Solidity Idiosyncrasies
Solidity gotchas, pitfalls, limitations, and idiosyncrasies.
Stars: ✭ 267 (+734.38%)
Mutual labels:  smart-contracts, truffle, web3
Web3.php
A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
Stars: ✭ 507 (+1484.38%)
Mutual labels:  smart-contracts, web3
Solidity Smart Contracts
smart contracts which are built on ethereum wallet mist,truffle compiler using solidity language.
Stars: ✭ 11 (-65.62%)
Mutual labels:  smart-contracts, truffle
Supply Chain
Supply chain management on blockchain using Angular 4 + Truffle + IPFS + Ethereum
Stars: ✭ 76 (+137.5%)
Mutual labels:  smart-contracts, truffle
Truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Stars: ✭ 11,909 (+37115.63%)
Mutual labels:  smart-contracts, truffle
Web3swift
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions on Ethereum network.
Stars: ✭ 462 (+1343.75%)
Mutual labels:  smart-contracts, web3
Ethereum Php
PHP interface to Ethereum JSON-RPC API. Fully typed Web3 for PHP 7.X
Stars: ✭ 343 (+971.88%)
Mutual labels:  smart-contracts, web3
Rico
The Responsible Initial Coin Offering Framework
Stars: ✭ 83 (+159.38%)
Mutual labels:  smart-contracts, truffle
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (+334.38%)
Mutual labels:  smart-contracts, web3
Contracts
A set of reusable smart-contracts
Stars: ✭ 101 (+215.63%)
Mutual labels:  smart-contracts, truffle
Web3swift
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions.
Stars: ✭ 237 (+640.63%)
Mutual labels:  smart-contracts, web3
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (+531.25%)
Mutual labels:  smart-contracts, truffle
resources
A living collection of resources for participants (and anyone who's interested) in Truffle University's courses 📚
Stars: ✭ 27 (-15.62%)
Mutual labels:  truffle, web3
react-truffle-metamask
Build an DApp using react, redux, saga, truffle, metamask
Stars: ✭ 25 (-21.87%)
Mutual labels:  smart-contracts, truffle

eth-decoder

Build Status

Simple library to decode ethereum transaction and logs

Install

$ npm install --save @maticnetwork/eth-decoder

Usage

Log parser

import { LogDecoder } from "@maticnetwork/eth-decoder"

const ERC20TokenABI = /* { .... } */ // ABI for ERC20 token contract

// create decoder object
const decoder = new LogDecoder(
  [
    ERC20TokenABI,
    // ... other ABIs
  ]
);

// parse logs
const parsedLogs = decoder.decodeLogs(receipt.logs) // For truffle testsuite, use `receipt.receipt.logs`
console.log(parsedLogs)

Tx parser

import { TxDecoder } from "@maticnetwork/eth-decoder"

const ERC20TokenABI = /* { .... } */ // ABI for ERC20 token contract

// create decoder object
const decoder = new TxDecoder(
  [
    ERC20TokenABI,
    // ... other ABIs
  ]
);

// parse tx
const parsedTx = decoder.decodeTx({ data: '0x..', value: '1000', from: '...', ... })
console.log(parsedTx)

License

MIT

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].