Skip to content

A simple tx hash to readable function call decoder using rust.rs

License

Notifications You must be signed in to change notification settings

startup-dreamer/tx-hash-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tx-decoder through tx hash and abi

A simple transaction decoder to decode your transaction function call (calldata) using contract abi and transaction hash

Example

Input

    contract_address = "0x5f8456fc4f6a4dde545d50e3d51109b47c263252"
    contract_name = "contract"
    tx_hash_str = "0x706afa2546a132cb437cb7a186551558e92dda7d33d8c2605f8f6a5bc2cbdb1a"
    rpc = "https://polygon-rpc.com"
    chain_id = 137

Output

Transfer(
    TransferCall {
        to: 0x961d188540161dc1990d13e85744ab592eeaebc7,
        amount: 10,
    },
)

Quick Start

  • Replace current ABI with your contracts ABI (in src/abi.json).
  • Run: cargo run.

Alt text

About

A simple tx hash to readable function call decoder using rust.rs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages