Giter Club home page Giter Club logo

eos-unpack's Introduction

eos-unpack

unpack eos packed data

live tool based on this library

https://bigmurry.github.io/eth-tool/decode

how to use

const unpackTx = require('eos-unpack');
const rawTx = '6AB1C55F9266129C3D9C000000000100A6823403EA3055000000572D3CCDCD01408608D91D7F305500000000A8ED32322A408608D91D7F305580A98A48A169A63B40787D010000000004454F53000000000931303532323836343000';

const unpacked = unpackTx(rawTx);

console.log(JSON.stringify(unpacked, null, 2));
/*
{
  "expiration": "2020-12-01T02:58:50.000",
  "ref_block_num": 26258,
  "ref_block_prefix": 2621283346,
  "max_net_usage_words": 0,
  "max_cpu_usage_ms": 0,
  "delay_sec": 0,
  "context_free_actions": [],
  "actions": [

    {
      "account": "eosio.token",
      "name": "transfer",
      "authorization": [
        {
          "actor": "eosbybit1234",
          "permission": "active"
        }
      ],
      "data": {
        "from": "eosbybit1234",
        "to": "binancecleos",
        "quantity": "2500.0000 EOS",
        "memo": "105228640"
      }
    }
  ],
  "transaction_extensions": [],
  "hash": "2d9eafd3d15d6d0276922d1a4633feb58bd1227cabae509350bf79e75749b529"
}
*/

eos-unpack's People

Contributors

bigmurry avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

eos-unpack's Issues

Trouble upacking EOS

Hello,

I've tried to unpack this EOS:
5CC4BD604B1BE03955FF000000000400000070BA0AB0BA000000000050299D0100000070BA0AB0BA00000000007EBCA9009015BC462227693600808A06E7AB303601000090860395F7A400000000A8ED323229FF3E2A010000000001A2948900000100000056C464120000000857415800000000085741580000000000A6823403EA3055000000572D3CCDCD01000090860395F7A400000000A8ED323228000090860395F7A49015BC46222769360056C464120000000857415800000000076465706F7369749015BC4622276936A0A2C10A9B86AEAE01000090860395F7A400000000A8ED323220000090860395F7A4FF3E2A01000000000000000000000000000000000000000000
But I keep getting an error message:

{
  "message": "error message: Unknown action noop in contract res.pink"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.