[go: nahoru, domu]

Skip to content

Ethereum wallet and Signing on Android using web3j library

License

Notifications You must be signed in to change notification settings

subhodi/android-web3-lightwallet

Repository files navigation

android-web3-lightwallet

Ethereum wallet and Signing in Android using web3j library

Reference

Install web3j binary: Download Binary from https://github.com/web3j/web3j/releases

Install solc: npm install -g solc

Generate smart contract wrapper

Use solc and web3j binary

$ # create contract.sol and then use solc command to generate bin and abi file
$ solc <contract>.sol --bin --abi --optimize -o <output-dir>/
$ # Generate smart contract from bin and abi file
$ web3j solidity generate [--javaTypes|--solidityTypes] /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name

Web3j generates a java file which can be directly imported to the project and can be used to transact with contract.

About

Ethereum wallet and Signing on Android using web3j library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages