Skip to content

Kotlin and Java library for decoding data params and events from ethereum transactions

License

Notifications You must be signed in to change notification settings

prettymuchbryce/abidecoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abidecoder

A port of abi-decoder to Kotlin for use with Kotlin/Java projects.

Installation

adding as a dependency to your Maven project:
<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>
	
<dependency>
	<groupId>org.github.prettymuchbryce</groupId>
	<artifactId>abidecoder</artifactId>
	<version>master-SNAPSHOT</version>
</dependency>
or your Gradle project:
repositories {
	maven { url 'https://jitpack.io' }
}
compile 'com.github.prettymuchbryce:abidecoder:master-SNAPSHOT'

Usage

package main;

import com.prettymuchbryce.abidecoder.Decoder;

public class Main {
	public static void main(String[] args) {
		Decoder d = new Decoder();
		d.addAbi(myAbiJsonString);
		Decoder.DecodedMethod result = d.decodeMethod(methodData);
		System.out.print(result);
	}
}

Please see unit tests for more usage examples.

About

Kotlin and Java library for decoding data params and events from ethereum transactions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages