An open API service indexing awesome lists of open source software.

https://github.com/prettymuchbryce/abidecoder

Kotlin and Java library for decoding data params and events from ethereum transactions
https://github.com/prettymuchbryce/abidecoder

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

### abidecoder

> A port of [abi-decoder](https://github.com/ConsenSys/abi-decoder) to Kotlin for use with Kotlin/Java projects.

### Installation

##### adding as a dependency to your Maven project:

```


jitpack.io
https://jitpack.io

org.github.prettymuchbryce
abidecoder
master-SNAPSHOT

```

##### or your Gradle project:

```
repositories {
maven { url 'https://jitpack.io' }
}
compile 'com.github.prettymuchbryce:abidecoder:master-SNAPSHOT'
```

### Usage

```java
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](https://github.com/prettymuchbryce/abidecoder/blob/master/src/test/kotlin/com/prettymuchbryce/abidecoder/DecoderTests.kt) for more usage examples.