152 questions
0 votes
0 answers
9 views
Even when connecting Web3j via WebSocket, I can’t receive blocks instantly
I made sure the RPC URL definitely starts with wss, but Web3j still keeps fetching blocks at specific intervals instead of receiving them in real time. Do I need to call a different method? My Web3j ...
0 votes
0 answers
201 views
PancakeSwap universal router usage. Web3, PancakeSwap, Bsc testnet
I'm working on an integration with PancakeSwap using Java and Web3J. All my tests were conducted on BSC Testnet. After conducting some research, I used the UI to perform a transaction that went ...
1 vote
1 answer
90 views
Errors in Web3j-Generated Wrapper Classes: "Cannot find symbol: class LinkReference" and Incorrect Package Name
Body: I'm working on a Spring Boot project that interacts with Ethereum smart contracts. I'm using Web3j to compile Solidity contracts and generate ABI, binary files, and Java wrapper classes. However,...
1 vote
0 answers
98 views
Anyone know how to interact solidity smart contract using kotlin springboot
Now I am working with kotlin springboot and what I have to make is that bridge feature. Bridge contract has already been deployed. Please tell me how to connect with smart contract in Kotlin ...
0 votes
1 answer
182 views
How to Create a UserOperation Signature Using Java and Web3j in alchemy API
I have created code to execute a UserOperation using Alchemy's API. In order to sign UserOperation, I have created the following code to sign it, and the following execution results Need help. Code: -...
0 votes
1 answer
160 views
Using the AWS KMS service to sign Ethereum, cannot get the correct R and S values from the returned signature
import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.kms.AWSKMS; import com....
-1 votes
1 answer
85 views
Web3J - Raw use of parameterized class 'Type'
I am using this dependency <!-- https://mvnrepository.com/artifact/org.web3j/core --> <dependency> <groupId>org.web3j</groupId> <artifactId>core</artifactId>...
0 votes
0 answers
100 views
The static method sendFundsEIP1559(...) from Transfer should be accessed in a static way
I am trying to make a transfer using the function sendFundsEIP1559() from the org.web3j.tx.Transfer package like this: org.web3j.tx.Transfer testTansfer = new org.web3j.tx.Transfer(web3j, ...
0 votes
1 answer
218 views
Android Web3j create wallet turns out of memory and other problems with communications TLS (other similar questions did not helped me)
I have this project stopped because there is no way to solve the creating wallet step: https://github.com/EAG-es/crear_wallet_web3j Main code: public class Create_wallet_web3j extends ...
0 votes
1 answer
191 views
How to pass bytes type parameters to a function in java web3
I am trying to deploy a proxy contract and it has the following constructor constructor(address beacon, bytes memory data,string memory assetId) These are the inputs I am trying to pass to this ...
2 votes
0 answers
148 views
Web3j - Why does my contract's method have a BigInteger param generated by the Java Wrapper? What is it for?
I'm using the Web3j cli to generate a Java Wrapper for my ethereum smart contract. function withdraw() external payable { address _caller = msg.sender; uint256 _userBalance = ...
2 votes
1 answer
432 views
Is there a way to get totalSupply of an ERC20 token using web3j java?
I'm developing an android app using android studio. I implemented web3j and successfully connected to ethereum using infura. I'm not sure how I can get the total supply of a specific coin. Tried using ...
0 votes
1 answer
121 views
java.lang.NoClassDefFoundError when deploying to Glassfish application server
I have created a simple demo rest service which queries Ethereum to get basic information. I am using the Web3j library version 5.0.0 https://mvnrepository.com/artifact/org.web3j/core/5.0.0 I have ...
0 votes
1 answer
337 views
How to call tokenURI() function in ERC721 using Web3j library?
I need to view NFT-image with all metadata. I decide to call tokenURI() function like it, but it's ain't working private fun getNFTMetadata() = viewModelScope.launch(Dispatchers.IO){ //tokenURI --...
0 votes
2 answers
1k views
Web3j - How to get timestamp for contract creation time?
I've successfully deployed a contract using Optional<TransactionReceipt> receipt = Contract.deploy(...).send().getTransactionReceipt(); The receipt how ever doesn't return a timestamp. It ...