Questions tagged [ethereumj]
For questions regarding the installation or use of EthereumJ, a Java library that implements the Ethereum protocol.
55 questions with no upvoted or accepted answers
6
votes
0
answers
162
views
EthereumJ IO Error Too many open files
While using EthereumJ: SocketException or leveldb.DBException are thrown:
leveldb.DBException: IO error: /data/bitgo/database/state/549361.ldb: Too many open files
4
votes
0
answers
208
views
Whisper protocol: Version conflict between geth and ethereumj
I am trying to use whisper in a permissioned network with both geth and ethereumj nodes. The Java nodes detect the capability shh version 2 of their geth peers, but only check for nodes with ...
4
votes
1
answer
152
views
How to work with inherited contracts in EthereumJ?
In EthereumJ, I have two contracts i deployed them individually,first one was deployed but for the second i got error as in that i was calling function of first one and example i have second is first ,...
3
votes
0
answers
574
views
How can i confirm transaction in geth from other peer of blockchain?
I have a query , I have create a private blockchain in which one geth node1 is use for transaction taking and other one(node2) is for mining .They are peered with each other and perfectly ...
2
votes
0
answers
1k
views
get event logs and debug trace from eth_call
I am looking for a way to execute a transaction locally (using local geth/parity node) for simulation only, before actually submitting it to blockchain.
I know that I can use 'eth_call' RPC call and ...
2
votes
0
answers
246
views
What is the physical location of Blockchain?
Hello everyone i am new in this technology and i am confused please clear my few doubts. Thanks in advance.
Blockchain consist of Blocks but where these blocks are stored, i mean what is the physical ...
2
votes
0
answers
131
views
EthereumJ handshake failure
I've just enabled my app to connect to the Ethereum Ropsten network to test some new functionality, but I seem to hit a regular "handshake failure" error with the connection.
I configure my set-up ...
2
votes
0
answers
328
views
How can I connect to Kovan using Ethereumj
I'm trying to connect to Kovan using Ethereumj based on the way that I used to connect to Ropsten. The sample example works, however when I try to do peer.discovery.enabled=true I'm not sure which IPs ...
2
votes
0
answers
154
views
Is it possible to avoid sync in Ethereumj, but still register a listener?
I'm attempting to create an contract analysis application using Ethereumj. I don't need to participate as an Ethereum node on the network and thus I'm trying to avoid having to sync the entire ...
2
votes
1
answer
307
views
EthereumJ: Private Network: How to I set my sender account?
I'm currently using EthereumJ and I'm trying out a use case to send an amount to a specific account in my own private chain. But I'm getting this error:
Not enough cash: Require: 14000000000000001, ...
2
votes
0
answers
78
views
EthereumJ Connection refused
I am getting a wired exception ConectionException on the server my node is connected to.
java.net.ConnectException: Connection refused: /my_local_ip:52062
at sun.nio.ch.SocketChannelImpl.checkConnect(...
2
votes
0
answers
126
views
Where in EthereumJ transaction signature is validated?
I am having some troubles with finding code responsible for transaction signature verification in EthereumJ. Does anyone can point me somehow ?
I already investigated ethereumj source code but only ...
1
vote
1
answer
72
views
How to setup a private GoEthereum network
I'm studying Ethreum by creating by own private ethereum network. I have three basic question. I will give as much information as I can to help to get great responses.
My network setup is very simple:
...
1
vote
0
answers
62
views
How to encrypt a message with multiple public keys for multiple recipients
Is it possible to encrypt a message using multiple Ethereum public keys for multiple recipients of a message, e.g. using
https://github.com/pubkey/eth-crypto#encryptwithpublickey
, so that each ...
1
vote
0
answers
196
views
convert time to utc in Dune Query
I can create a query on the DuneAnalytics site, but the default date format for a field is "2022-02-08 02:44", which downloads to csv as "2022-02-08T02:44:46+00:00". Does anyone ...
1
vote
0
answers
1k
views
Opensea-js What is the actual rate limit?
I am wondering what is the actual rate limit of this api? Even with using an api key I get rate limited or throttled requests quiet fast. I can not find any resource about the actual rates they are ...
1
vote
0
answers
311
views
Not able to decode the input data from transaction using web3j (Java)
I am creating transactions using web3j and passing some private data in that transaction. The transaction is also getting mined . I have subscribed to the mined blocks, where I am fetching the ...
1
vote
0
answers
60
views
How to run private node on EthereumJ
I would like to run a private node on EthereumJ. I don't know how to start mining on EthereumJ and how to start EthereumJ node. I will be very grateful if someone tell me where to start looking (...
1
vote
0
answers
312
views
How to completely empty an Ethereum wallet using W3.py
I have an ethereum wallet, I need to calculate the amount to completely empty the wallet.
So currently i calculate the needed gas like this,
needed_gas = w3.eth.gasprice * 210000
amount_to_send = ...
1
vote
0
answers
394
views
How to write a mock method for getting ether balance using Web3j Api. I am trying to mock Web3j and callig EthGetBalance method but I am getting Null
public static BigInteger OriginalMethod(){
// connect to node
Web3j web3 = Web3j.build(new HttpService()); // defaults to
http://localhost:8545/
// send asynchronous requests to get balance
...
1
vote
1
answer
201
views
LoadCredentials function returns file not found exception
I am using the following code to deploy my contract:
@RequestMapping("/")
public String index() throws Exception {
Web3j web3j = Web3j.build(new HttpService("https://rinkeby.infura.io/v3/...
1
vote
0
answers
107
views
Ethj spring boot blockchain transaction app error the method subscribe is undefined for the type object
package org.web3j.web3jspringbootstarter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure....
1
vote
0
answers
117
views
Why transaction hash isn't available inside solidity function call
I recently bumped into this
Is it possible to get the transaction hash from within a Solidity function call? while I was looking for a way to save the transaction hash inside my contract. And ...
1
vote
0
answers
109
views
Out of Gas Exception
I have a smart Contract which generates a random number within a range and then check if the number is equal to the user's input.
For the same input sometimes it works and sometimes it gives me ...
1
vote
0
answers
2k
views
Is it profitable to mine Ethereum on AWS?
I got $5000 on AWS from Facebook by being part of FbStart. Since I wont be using these credits for web development, I want to know if it would be profitable for me to mine Ethereum? Can I at least ...
1
vote
1
answer
529
views
Correct way to calculate Gas Price and Gas Limit using offline mode in ethereumj
Please help me to understand the correct way to compute Gas Price and Gas Limit using offline mode in ethereumj.
I have been using EtherScan's API eth_gasPrice and eth_estimateGas as of now. Just ...
1
vote
0
answers
234
views
How to convert Ethereumj byte arrays to Strings?
Ethereumj gives a lot of byte arrays, when the equivalent would be a string in Bitcoin. A few examples (in Scala)
ECKey.getAddress // returns Array[Byte], need String
Transaction.getHash // returns ...
1
vote
0
answers
80
views
Cannot see ethereum in main account on mist wallet
I created a mist wallet yesterday and sent some ethereum to the account address but I cannot see ethereum in the main account. Is there something I'm supposed to do in order to see the ethereum amount ...
1
vote
0
answers
249
views
How to create an account from a Spring MVC project
I am working on Ethereum blockchian.
I have create a login page using Spring MVC 4 and it is connected to MySQL DB.
Now I want to assign coinbase to the successful registration of the user.
My Idea ::...
1
vote
0
answers
121
views
How do I commit an Account Creation when using EthereumJ
I'm currently using EthereumJ-StandaloneBlock and I'm trying to create an account.
Account account = ApiServer.jsonRpc.addAccount(aSCreateAccountIncomingVO.getEmail());
logger.info("...
1
vote
0
answers
148
views
Can EthereumJ connect with geth in my private network?
I0908 10:55:59.650726 p2p/peer.go:301] Peer c944075180d7ede0 172.21.101.100:30303: Starting protocol eth/62 I0908 10:55:59.650903 eth/handler.go:252] Peer c944075180d7ede0 [eth/62]: peer connected [...
1
vote
0
answers
202
views
Configure EtherumJ with Redis
How do you configure the host/login/password of Redis to use with Ethereumj.
in ethereumj.conf, I have the values:
# Key value data source values: [leveldb/redis/mapdb]
keyvalue.datasource = redis
#...
1
vote
0
answers
217
views
How do I parse filter log in ethereumj
As mentioned in this link How do I parse the transaction receipt log with web3.js? it works fine for web3 js but how do i parse in ethereumJ. Event tracking and decoding from ethereumj I believe it ...
1
vote
0
answers
313
views
Possible ways to search Blockchain using ethereum-java api based on input/output parameters supplied as part of any transaction?
Although we know ethereum-java provides required api support which facilitate us to identify any block or transaction from Blockchain based on either block number or hash of transaction id. Do ...
0
votes
0
answers
307
views
Pikamoon not showing value in TrustWallet
I recently got on the Pikamoon train. I claimed my tokens as a 3rd round investor today. The tokens went into my trust wallet and are shown there, but they have no value. My buddies have coinbase ...
0
votes
1
answer
66
views
Ethereum Mainnet Error: "Migrations" could not deploy due to insufficient funds
Newbie to Ethereum NFT contract deployment here. So please bear with my questions. I am trying to deploy a ERC-721 contract to ETH Mainnet and I have 0.285 ETH in my wallet. But I am still getting ...
0
votes
1
answer
27
views
Explanation of a sample transaction details is needed
I am to the blockchain space.
I was reading the Ethereum whitepaper, and I couldn't understand this example:
Suppose Alice wants to send 11.7 BTC to Bob. First, Alice will look
for a set of ...
0
votes
1
answer
113
views
how to get "internal transactions" from transactions that have multiple erc-721 transfers in them? (web3 py)
Take a look at this transaction:
https://etherscan.io/tx/0x542eb6e70c8122283fefc596f3fcc02a59579f5f43df7f3396f1b1ec72d03647#internal
There are multiple erc-721 token transfers happening in the same tx,...
0
votes
2
answers
503
views
Type uint256 is not implicitly convertible to expected type address
My aim is to return all the family members inside of the mapping but i keep getting this error from remix Type uint256 is not implicitly convertible to expected type address. --> members[i] = ...
0
votes
1
answer
157
views
Why (balance == wei) return false, when I use ethers.js
I'm begin learn ethers.js. I wrote like this
const balance = await provider.getBalance("0x862...99");
const ether = ethers.utils.formatEther(balance);
const wei = ethers.utils....
0
votes
1
answer
417
views
Smart Contract Deployment through React JS
I have deployed multiple contracts using Truffle and Hardhat from a NodeJS project, but I wanted to know if there is a way to deploy smart contracts from ReactJS?
0
votes
0
answers
612
views
web3 transaction value always 0
Can anyone explain to me, why the transaction object I receive via web3 always has a value of 0?
When I open up the transactionhash in etherscan, it shows under the to field which is named "...
0
votes
1
answer
45
views
Why the need for different tokens?
So, ERC20 tokens are bought depositing equivalent Price = amount to be bought*price of tokens) in eth to the smart contract eth address.
So lets talk about BAT ERC20 token:
If I am verified BAT ...
0
votes
1
answer
134
views
Having a problem compiling a ERC20 token smart contract - Code inside
Basically i'm using a cut and paste erc20 token code from this site:
https://hashnode.com/post/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes-...
0
votes
0
answers
307
views
Just not able to install Web3 through powershell
After reading a lot of articles about how to install Web3j in windows.
I also tried following this article : https://kauri.io/generate-a-java-wrapper-from-your-smart-contract/...
0
votes
0
answers
2k
views
TypeError: Operator != not compatible with types string storage ref and int_const 0
Im using blockchain technology for the first time, for a college project. Im trying to run a smart contract from Github (in Powershell windows 10). Im unable to compile the contract due the following ...
0
votes
1
answer
416
views
Im getting the following error: ParserError: Expected primary expression. struct ManagingOrder.Parking memory new_Parking = Parking({
Im using blockchain technology for the first time, for a college project.
Im trying to run a smart contract from Github.
After debugging the errors shown while compiling the smart contract (in ...
0
votes
2
answers
109
views
Calling smart contract functions and submitting transacions in BACK-END in high level
I have read some references to create ethereum transactions by a BACK-END server, all in low level, for example, requiring that I control the nonce by myself. Are there safe ways to avoid this control ...
0
votes
1
answer
629
views
Query Ethereum Blockchain for functions return value of a Specified Smart Contract
I want to get smart contract functions return value sent by a specified smart contract within a range of blocks.
I found a [manual] working method to achieve this:
async function getTxsByAccount(...
0
votes
2
answers
41
views
Struct Properties Cannot Be Identified
I have been learning Solidity and I have run into a scoping issue with the structs. I thought by default, all properties of a struct are put into storage. When I try to add the battles variable as an ...