在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):web3j/sample-project-maven开源软件地址(OpenSource Url):https://github.com/web3j/sample-project-maven开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):web3j Sample ProjectThis project provides a very simple starter application for working with web3j and the test Ethereum network (testnet) known as Rinkeby. The demo deploys a hello world smart contract which contains a greeting message. The current greeting message can be read and modified in the smart contract. In order to run this demo, three pieces of information are required:
web3j wallet create
Once these details have been added to the main Application class, you'll be good to go. Run the project
mvn web3j:generate-sources
mvn install This will also generate a jar file with all the dependencies which we will run once it has been created.
FunctionalityThis application demonstrates a number of core features of web3j and Ethereum:
BackgroundThis application has purposefully been kept as simple as possible with the aim of demonstrating how to deploy and work with a smart contract on the decentralised Ethereum network. If you require further background information about the above configuration items for the project you can refer to the below. For a more comprehensive overview, I recommend you read the Java Magazine Article, watch the YouTube talk, and read all of the documentation. Smart contractsThe contained smart contract is based on the Greeter contract example, with the addition that the value stored in the Greeter can be modified. The associated Java smart contract wrapper is named Greeter. For more background on smart contracts, refer to the smart contracts section of the docs. InfuraIf you don't want to sign up to Infura, and would like to run a node yourself, there are instructions in the getting started section of the docs. TestnetsFor more information on the different Ethereum test networks (or testnets), refer to the testnet overview in the docs. EtherFor background on Ether, refer to the transactions overview section of the docs. Wallets and transaction signingFor a more technical overview of working with wallet files, refer to the Offline transaction signing section of the docs. Viewing requestsA logback configuration is included in the project dependencies allowing the logging of protocol messages if required. To enable, simply change the following line in the logback configuration to read: <logger name="org.web3j.protocol" level="DEBUG"/> |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论