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
- Host: GitHub
- URL: https://github.com/prettymuchbryce/abidecoder
- Owner: prettymuchbryce
- License: mit
- Created: 2018-01-23T17:25:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-31T19:24:05.000Z (over 8 years ago)
- Last Synced: 2025-04-13T16:56:59.546Z (about 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 87.9 KB
- Stars: 12
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.