Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:25
    HuaZhuangNan starred web3j/web3j
  • 09:53
    oneintellectual edited #1468
  • 09:53
    oneintellectual edited #1468
  • 04:41
    fishonline starred web3j/web3j
  • May 19 18:30
    tretonis commented #1710
  • May 19 18:30
    tretonis commented #1710
  • May 19 18:29
    tretonis commented #1710
  • May 19 18:29
    tretonis commented #1710
  • May 19 18:27
    tretonis commented #1710
  • May 19 18:27
    tretonis commented #1710
  • May 19 18:15
    tretonis labeled #1710
  • May 19 18:15
    tretonis labeled #1710
  • May 19 18:15
    tretonis opened #1710
  • May 19 18:15
    tretonis opened #1710
  • May 19 14:31
    arbing starred web3j/web3j
  • May 19 14:18
    mekery starred web3j/web3j
  • May 19 08:29
    jerry117 starred web3j/web3j
  • May 19 08:22
    ibeen starred web3j/web3j
  • May 19 03:56
    ZeroL starred web3j/web3j
  • May 19 01:46
    okenwa103 starred web3j/web3j
1772013
@1772013
Hi guys,What is the problem: Invalid response received: 429; Too Many Requests, [code:OVER_LIMIT current_limit:{requests_per_unit:1500 unit:MINUTE}]
Aelthien
@Aelthien
I'm getting a nullpointer when trying to use ethLogFlowable with a filter, anyone know about that?
Aelthien
@Aelthien
I am trying to build this from source but it's not working. What do you need to do in order to build it into a usable jar?
If I can't use the most recent Github version web3j is completely useless to me because the current release version has an issue that requires me to change the source code.
qiudaozhang
@qiudaozhang
how to get eth_feeHistory
qiudaozhang
@qiudaozhang
Transfer.sendFundsEIP1559 return Error processing transaction request: Invalid RLP. Does anyone know how to solve it?
AlphaDevs
@AlphaDevTeam
Hi Team, Sorry I'm new here but I'm having issues with Web3j , when I connected to Polygon Mumbai network Contract deploys and Contract Writes goes to a Pending State for like 15 -30 min and then disappears, i can read contracts without errors on Polygon , when i connected to Goerli Testnet Network though Deploys and Writes works within seconds , do i have to configure these 2 networks differently? any pointers ?
I've posted this on StackOverflow with more details hope it's ok to link it here for reference - https://stackoverflow.com/questions/70560195/web3j-pending-transactions-on-polygon-mumbai-network-but-works-with-goerli-testn
Soumyajit Samanta
@samanta.soumyajit:matrix.org
[m]
Hi, I am new to web3j and was going through readme and found a wrong link and some incomplete instructions can i raise a issue for this?
I have fix for it as well
Riaz Syed
@riaz7se
Hi,
I see web3j-quorum, web3j & web3j-spring-boot-starter in github
i have tried web3j-quorum, it works,
i would like to know which is latest & preferred lib to work with quorum connecting from spring-java ?
pls suggest
Livingston Antony
@livin-bad
how to get token id? after, addNewTokenAndSetThePrice, in android kotlin
Quicksilverfox
@samanta.soumyajit:matrix.org
[m]
Hi, it is mentioned in project readme that web3j works on http and ipc transport , is there any way to connect to remote ethereum nodes using tcp as most nodes may not have http started by default?
Livingston Antony
@livin-bad
Where can I get more test ETH? in kovan network
b-gyula
@b-gyula

Hi there, did anyone encounter:

A problem was found with the configuration of task ':npmInstall' (type 'NpmInstallTask').
No value has been specified for property 'packageJsonFile'.

The web3j gradle plugin uses old node and solidity gradle plugins, that are only compatible with gradle version 5.x and not 6.x or even 7.x. If you want to be able to use it with at least version 6.x you need to specifically apply newer version of these plugins: node 3.1.1 and solidity 0.3.2

id "org.web3j" version '4.8.8'
id "com.github.node-gradle.node" version '3.1.1'
id "org.web3j.solidity" version '0.3.2'
kunalbarchha
@kunalbarchha

@kunalbarchha did you figure out how to interact with an ERC1155 from web3j?

Sorry for such a late reply. I did figure out yes. Might need to refresh how I did it, but I did it :-)

Luca Costa
@Zap123
Hi everyone, I noticed this issue has been opened for a year web3j/web3j#1580 and the rpc call ethGetFilterChanges it's broken in hardhat and everything I could find. I was trying to use Eventeum, which seems abandoned for another closed source solution, as I applied the patch it started working but not for contract monitoring, and I was wondering if there was someone I could contact to get more information on this issue and why those functions are not compliant with the rpc-json specification.
EAOE
@EAOE3
How can i create a two-dimensional array in web3j to use as input parameter for a function ?
Smily
@rzh0001
hey guys, how can i use Transfer.sendFundsEIP1559 to transfer ether?
TransactionReceipt receipt = Transfer.sendFundsEIP1559(
                web3j, credentials,
                toAddress, //toAddress
                BigDecimal.valueOf(1), //value
                Convert.Unit.ETHER, //unit
                BigInteger.valueOf(8_000_000),
                DefaultGasProvider.GAS_LIMIT, //maxPriorityFeePerGas (max fee per gas transaction willing to give to miners)
                BigInteger.valueOf(3_100_000_000L) //maxFeePerGas (max fee transaction willing to pay)
        ).send();
        System.out.println(receipt.isStatusOK());
        System.out.println(receipt.getTransactionHash());
here is my code , and it doesnot work , it just keep running and not response
otherwise , Transfer.sendFunds is work fine
Tobi
@tobq
How do you read the result of a smart-contract interaction - that is non-view? I get a transactionreceipt object in response - rather than the method result
Abstract Aesthetics
@4bstractanimation_gitlab
Hi

`const getHistoryTransactionFromWeb3 = async (
transactionHash: string
) => {
let newAmount;
await web3.eth.getTransactionReceipt(transactionHash, (err, result) => {
newAmount = Number(result.logs[1].data);
});

return newAmount;
};`

Whats the web3j equivalent to this web3js function

Quicksilverfox
@samanta.soumyajit:matrix.org
[m]
Hi All, I was thinking is somebody working on a server for artist or creatives to self host and only those who have a specified nft will have access to resources inside the server. So artist releases nft and that gives user streaming access to songs in a album.
Quicksilverfox
@samanta.soumyajit:matrix.org
[m]
Hi Devs, For web3j sokt versions after 0.7.2 all windows url are empty and can not use the solidity compiler on windows.
But the release in ethereum contains the exe files
Aleksandar
@manko:matrix.org
[m]
Hi, is there any info on when the next release of web3j-maven-plugin is going out? I need a fix that available on master at the moment, but it's not released yet, I'd like to avoid forking the repo.
Yegor Chumakov
@egopher
Hi guys. I have a question about web3j maven. For some reason maven can't find and download it. What Am I doing wrong?
        <plugins>
            <plugin>
                <groupId>org.web3j</groupId>
                <artifactId>web3j-maven-plugin</artifactId>
                <version>4.8.7</version>
                <configuration>
                    <packageName>mypackage.poc</packageName>
                    <sourceDestination>src/main/java/generated</sourceDestination>
                    <nativeJavaType>true</nativeJavaType>
                    <outputFormat>java,bin</outputFormat>
                    <soliditySourceFiles>
                        <directory>src/main/resources</directory>
                        <includes>
                            <include>**/*.sol</include>
                        </includes>
                    </soliditySourceFiles>
                    <abiSourceFiles>
                        <directory>src/main/resources</directory>
                        <includes>
                            <include>**/*.json</include>
                        </includes>
                    </abiSourceFiles>
                    <outputDirectory>
                        <java>src/java/generated</java>
                        <bin>src/bin/generated</bin>
                        <abi>src/abi/generated</abi>
                    </outputDirectory>
                    <contract>
                        <includes>
                            <include>greeter</include>
                        </includes>
                        <excludes>
                            <exclude>mortal</exclude>
                        </excludes>
                    </contract>
                    <pathPrefixes>
                        <pathPrefix>dep=../dependencies</pathPrefix>
                    </pathPrefixes>
                </configuration>
            </plugin>
        </plugins>
Sree
@bvinayakh_twitter
@FabianSchuessler I'm trying to invoke a smart contract function using web3j, but get this error
Web3j: java.lang.RuntimeException: Error processing transaction request: transaction underpriced
@egopher try this
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>5.0.0</version>
</dependency>
znitecki
@znitecki
Hi everyone! I have a question regarding web3j core versions. On the Maven repository, the latest version (considering version numbers) of web3j core is 5.0.0, but it was released in May 2020. Version 4.9.0 looks like the newest one, released in February 2022. 4.9.0 is the latest on Github too. Which version should I use? I assumed that I should use 4.9.0, but I decided to ask this question nevertheless.
znitecki
@znitecki
And a second question: is the Ledger signature format supported somehow? Using Sign.signedPrefixedMessageToKey() on a Ledger signature throws SignatureException with message: "Header byte out of range: 1". Shifting the V byte + 27 (+ 0x1B) solves the problem, but maybe I'm unaware of something.
SalvatoreCataniaVS
@SalvatoreCataniaVS
Hello everyone! I'm trying to call a custom function of my smart contract deployed on ropsten by using java wrapper class, but I always getting the error:
org.web3j.protocol.exceptions.TransactionException: Transaction receipt was not generated after 600 seconds for transaction
I think the problem should be the gasPrice value, can someone please help me?
I'm using these values:
BigInteger gasPrice = new BigInteger("22000000000");
BigInteger gasLimit = BigInteger.valueOf(100000);
Thanks in advance.
Kingsley Hendrickse
@kingsleyh
hello - does anyone know why in the web3j testing - I can't deploy a contract with Credentials I just created like this:
   val contract = Contract.deploy(web3j, Credentials.create(Keys.createEcKeyPair()), DefaultGasProvider(), "Name", "Symbol").send()
java.lang.IllegalStateException: worldState.get(Address.f…String(w3jAddress.value)) must not be null
Kingsley Hendrickse
@kingsleyh
works fine in the App just not in the Test
Ashutosh Gupta
@sir-argupta
Hi,
I'm getting
web3j Error processing transaction request: insufficient funds for gas * price + value
Is there any way I can change the gas price to 0 in web3j or to send transaction with 0 gas price ..!? I'm using my private chain on geth.
rgdzh1
@rgdzh1
Hello, I use ethestimategas to obtain gas, but if the contract is obviously wrong, I will also get a gas value. Shouldn't an error be prompted here?
image.png
val ethEstimateGas = mPancakeSwapRepo.WEB3J.ethEstimateGas(mTransaction).send()
No matter whether the method is executed successfully or not, I will get an error free result
fangzhongwei
@fangzhongwei
hi, can help with maven plugin error: Error: Source "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol" not found: File outside of allowed directories.
maven plugin error: not found: File outside of allowed directories.
how to fix that?
Atılım Çetin
@atilimcetin

Hi, with web3j, I'm trying to decode binary data of a simple tuple like (uint256,string). Although I can encode like

        final Type uint256Type = TypeDecoder.instantiateType("uint256", 12345);
        final Type stringType = TypeDecoder.instantiateType("string", "foo");
        final DynamicStruct dynamicStruct = new DynamicStruct(List.of(uint256Type, stringType));
        final String encoded = TypeEncoder.encode(dynamicStruct);

I cannot decode the data back. Is there a way to decode a tuple without generating classes, etc.

Evan Saulpaugh
@esaulpaugh
you could try esaulpaugh/headlong but i'm biased