Skip to content

micahriggan/eth-tx-decode

Repository files navigation

Usage Example

node index.js f867808504a817c8008094692a70d2e424a56d2c6c27aa97d1a86395877b3a80b844a9059cbb00000000000000000000000037d7b3bbd88efde6a93cf74d2f5b0385d3e3b08a000000000000000000000000000000000000000000000000000dd764300b80001c8080
DECODING f867808504a817c8008094692a70d2e424a56d2c6c27aa97d1a86395877b3a80b844a9059cbb00000000000000000000000037d7b3bbd88efde6a93cf74d2f5b0385d3e3b08a000000000000000000000000000000000000000000000000000dd764300b80001c8080
**TX NOT SIGNED**
VALUE:  0
GAS PRICE:  20000000000
GAS TOTAL:  0
ETH REQUIRED:  0
============================
======ERC20 DECODE==========
{
  "name": "transfer",
  "params": [
    {
      "name": "to",
      "value": "0x37d7b3bbd88efde6a93cf74d2f5b0385d3e3b08a",
      "type": "address"
    },
    {
      "name": "value",
      "value": "3896000000000000",
      "type": "uint256"
    }
  ]
}

About

Decoding a raw transaction to show required ETH.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published