Skip to content

saxenism/rlp-encoded-txn-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLP Encoded Transaction Generator

This tool is a wrapper on web3.js used to generate sample (mock) RLP encoded transactions. Will be helpful in testing functions which take RLP encoded transactions as inputs.

The number of tranasactions you want must be passed as a command line argument.

A file consisting of the transactions will be created called transactions-example-file.json.

The field rawTransaction is the RLP encoded transaction.

Understanding RLP Encodings

Here is a brilliant write-up on RLP encodings that you can read to understand RLP encoding (not decoding) in depth.

Medium Article

Example

Screenshot 2023-02-07 at 11 59 53 AM



Screenshot 2023-02-07 at 12 00 04 PM

Decoder

A Handy tool to decode these RLP encoded transactions can be found here.

Another example of decoding an RLP encoded transaction can be found here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published