All Questions
Tagged with transactions go-ethereum
313 questions
1
vote
0
answers
1k
views
Transactions from multiple addresses to a single address in Ethereum
We are currently in the process of developing a payment plugin for merchants to accept crypto payments. We are currently generating a unique order for every order which is placed in the merchant store....
0
votes
1
answer
4k
views
Python script - get balance and send transaction
I'm a developer who is new to ETH and I would like to write python CLI that can check balance of ETH address and can create -> sign -> publish transaction to network via locally running Geth node (I ...
2
votes
2
answers
817
views
How to transfer erc20 coin multiple to single wallet
I have many eth adress with ERC20 tokens. How can i transfer to single wallet all of them?
2
votes
2
answers
5k
views
Batch transactions for MetaMask using sendAsync
I have MetaMask working nicely - it's so cool! However, I have a (react) form that gathers in lots of information and creates 14 distinct calls to sendTransaction. Hence, I (currently) get 14 popup ...
0
votes
0
answers
90
views
All Transactions from Genesis
I need all transactions from genesis block, I dont care about replaying account states. I try fast mode sync and I am able to get transactions under each block in recent blocks. But when I try to get ...
4
votes
2
answers
471
views
personalUnlockAccount.accountUnlocked() giving NullPointerException even if correct passphrase has been inserted
When I trying to unlock the account with personalUnlockAccount.accountUnlocked() method of PersonalUnlockAccount class of web3j library, it's giving NullPointerException even if I am entering right ...
0
votes
1
answer
547
views
Modify Geth miner to filter which transactions include in the blocks
Where should I start if Im trying to modify the Geth client to filter transactions by sender to include only specific transactions in the mined blocks ? What files of code should I understand to do it ...
0
votes
2
answers
453
views
Mine transaction but do not broadcast
I have four transactions which I would like to include in the same block, T1, T2, T3, T4.
There is a race condition so I do not want to broadcast these transactions unless I can be sure they will ...
1
vote
0
answers
266
views
How to decode input field(data) of a transaction object?
I have tried with
web3.eth.decodeParameter(type,hexString)
var input="0x0121b93f0000000000000000000000000000000000000000000000000000000000000004";
console.log(web3.eth.abi.decodeParameter('uint'...
0
votes
1
answer
263
views
How to get notification right after account has received eth by geth?
My server stores many accounts.
How do i know when and what account has received eth or i have to check them manually one by one by looping many address to check the balance?
account := common....
1
vote
1
answer
800
views
How to use "etherscan" to push a raw transaction without running a node?
According to this answer, how to use etherscan to push a raw transaction without running a node? In this case, do not we need to install Parity or geth or any Ethereum client ?
2
votes
1
answer
693
views
How to get Code from Contract Acccount?
I have a piece of code that connects to the network and displays transaction data.
package main
import (
"context"
"fmt"
"log"
"github.com/ethereum/go-ethereum/common"
"github....
1
vote
1
answer
1k
views
Get time when the transaction was included in your node
Is there any way to obtain the time when you have received a transaction? I would like to know when is a Smart contract included in my node. (local testnet)
0
votes
2
answers
1k
views
Getting pending transactions for a past block
I want to get historical list of pending transactions. For example, for a block number 1,000,000 is it possible to get this list?
Right now I have downloaded blockchain data up to block 1,600,000 , ...
0
votes
1
answer
26
views
What happens when you send a non-state-changing transaction to the transaction pool
I understand that there are 2 endpoints for smart contracts. Call() for running view/pure function and SendTransaction() for state-changing transactions. Obviously a state-changing transaction sent to ...
0
votes
0
answers
17
views
In Go Ethereum private chain what is the maximum limit of number of transactions in a single block
What is maximum limit of transaction packaging in single block ?
Can it be increased ? If yes how ?
1
vote
1
answer
144
views
getTransactionCount return different response
geth version 1.8.27
The pending nonce is 8 at first, then I send a transaction and use eth.getTransactionCount to get the next pending nonce.
> eth.getTransactionCount("...
1
vote
1
answer
2k
views
JSON RPC sendTransaction data paramether
I'm trying to make a sendTransaction json rpc call and I don't know how to calculate the data paramether.
From the documentation:
data: DATA - The compiled code of a contract OR the hash of the ...
1
vote
1
answer
131
views
personal_sendTranaction for token tranfer return hash but transaction isn't found in the blockchain
I am using Geth as a provider to the blockchain. I perform JSON-RPC method send_Transaction to transfer tokens, it returns me hash of the transaction but I can't see this transaction in the Etherscan. ...
1
vote
1
answer
1k
views
How to scan ether transfer from smart contract to my addresses programmatically?
Correct me if I am wrong, the transaction receipt contains only the log of contract events. So we can only use it to examine the internal transaction that produces a event.
How about ether transfer ...
5
votes
1
answer
3k
views
How to get signature parameters from a transaction?
In my application I have to manually verify certain transaction signatures on the ethereum blockchain. Atm I am running geth and parity nodes and query transaction information via the rpc interface ...
0
votes
0
answers
77
views
In Ethereum, is it possible for a malicious client to duplicate a coin by double executing a transaction?
Is it possible a scenario in which a malicious client executes two transactions with the same nonce of a specific account and copies and sends coins?
Suppose users A, B, and C have the following ...
0
votes
0
answers
988
views
Pending Transaction / Transaction not found
This is one of the issues I face in almost any DAPP I build on ethereum. Transactions are not found on etherscan or any block exlorer.
Currently, I have a web wallet running. As a part of application,...
1
vote
1
answer
686
views
How do the other nodes know which particular node has the account used in the transaction?
A brief about my setup. I am using a private Ethereum network with 3 nodes.
I have made all the nodes as peers of each other by using:
admin.addPeer("enode:1234abcd..")
When mining takes place, all ...
2
votes
1
answer
2k
views
Understanding and using eth.newFilter
Situation:
I am using web3.js with geth for my application to know which clients are depositing money into 1 specific account (instead of making a new wallet for each new client). The way I am ...
2
votes
3
answers
414
views
What happens if already processed transaction is submitted to the network again?
I have a script that sends transactions automatically using JSON RPC API call eth_sendRawTransaction to a node that has RPC enabled.
My question is, what is going to happen if I send these ...
1
vote
1
answer
4k
views
web3.eth.filter({fromBlock:0, toBlock: 'latest', address: account}) not working?
My goal here is to list all transaction from an given account, without any success yet.
I wonder why I always have an empty result when I'm using this web3.eth.filter. I know there is a valid ...
0
votes
2
answers
934
views
Two transactions: same `from`, different `to`. What will happen?
Let's imagine that I've two pretty same transactions - the only difference is their to field. The first transaction - A, has 0x1111.... and the second one - B, has 0x22222.... in the to field.
If I'm ...
3
votes
0
answers
681
views
how to send transaction with geth running in light mode on testnet
I am having troubles to sendTransaction with geth running in light mode.
Startup:
geth --testnet --syncmode "light" --rpc --rpcport 10001 --rpccorsdomain "*" --rpcaddr 127.0.0.1 --datadir /opt/...
4
votes
1
answer
1k
views
What are those multiple transactions in the transaction pool?
I am running geth. Via txpool.content.pending I am looking at the transactions that my node currently sees. It gives me a bunch of transactions by their transaction hash (I think), in the below ...
2
votes
1
answer
689
views
Interact with smart contract via tx offline signing - possible?
In MyCrypto/MEW you can send an offline tx by signing it offline and broadcasting it online. Can I also somehow interact with a smart contract in the same manner (eg. the kyber network contract)?
...
-1
votes
1
answer
2k
views
eth subscribe logs not working [duplicate]
I want to get list of transactions by address and found example using web3.eth.subscribe. I wrote simple code from example
const Web3 = require('web3')
const web3 = new Web3(new Web3.providers....
1
vote
1
answer
571
views
What's wrong with my code, I am signing a transaction? Invalid v,r,s error?
func main() {
privateKey, err := crypto.GenerateKey()
if err != nil {
log.Fatal(err)
}
auth := bind.NewKeyedTransactor(privateKey)
balance := new(big.Int)
balance....
5
votes
1
answer
3k
views
Listing transactions in a private blockchain?
In a private blockchain, is it possible to list the transactions based on from and to parameters in a transaction.
Is it possible to check the latest transaction from or to an address?
Also, is it ...
14
votes
1
answer
3k
views
Why do some blocks contain no transactions?
While poking through my Geth logs I noticed that block 1,000,006 doesn't actually contain any transactions. Why is that?
3
votes
1
answer
729
views
Ethereum client - minimum for sending transaction
Requirement:
Reliably send Ethereum transactions
Be connected to main nodes directly (speed)
Limitations:
Disk size (20-40 GB)
Given this, what is the recommended configuration to run an ...
0
votes
1
answer
59
views
What is the best combination of transactions to send to an Address for a given target amount?
Let's suppose I have 100 unlocked accounts with different balances and I want to have in a target account an amount X.
Knowing that I have to make an individual transaction for every account, what ...
0
votes
1
answer
124
views
Execution of sending transaction never ends [UPDATED]
I send a transaction with web3 1.0.0 from a script like:
async function sending(deployed_contract) {
await deployed_contract.methods.mymethod(1).send({from: account})
.on('...
3
votes
1
answer
2k
views
How can I receive ETH at Mist sent from other wallet
I want to receive ETH in my Mist account to test ETH transfer. But it doesn't work well so far.
I tried to send ETH to my Mist account from other bitcoin and ETH transfer service. but I cannot receive ...
3
votes
1
answer
106
views
Is it possible to check the Thrid party token ( USDT ) within my ERC223 contracts?
I want to check how many tokens are received in my contracts, so that I am able to allocate MY TOKENS to the TOKEN Sender.
I tried several ways like approveAndCall, but its not working.
I don't ...
7
votes
1
answer
2k
views
How does coinbase.com manage multiple addresses?
Coinbase generate a new btc or eth address after every deposit. But how does it send funds from these addresses to another address.
In case of btc, a transaction can have multiple from addresses. But ...
8
votes
3
answers
1k
views
Is it possible to get contract messages from Geth?
When I use the etherchain.org API to get all the transactions in a block, it also returns contract messages. For example for block 911516, this call returns 7 transactions:
https://etherchain.org/...
8
votes
1
answer
2k
views
sendRawTransaction results in queued TXs
I attempted to send raw TXs via eth.sendRawTransaction API but get stuck. I'm using EthereumJS to generate and sign TXs, and indeed, I can submit TXs through eth.sendRawTransactin, but the TXs always ...
1
vote
1
answer
2k
views
Ethereum web3.eth bitcoin move equivalent?
Is there a Bitcoin "move" equivalent for Ethereum web3.eth ?
In Bitcoin:
move
<fromaccount> <toaccount> <amount> [minconf=1] [comment]
Move from one account in your wallet to ...
0
votes
1
answer
804
views
Calling contract function via web3.eth.sendTransaction doesnt work
Im learning how Blockchains work and created a private Blockchain to test some things. I deployed the following contract:
contract Greeter
{
address creator;
string greeting; ...
0
votes
0
answers
132
views
How can execute function that send ether in geth console?
I want to execute the send function that sends ether from the sender to the receiver, the code is as shown below.
contract Sender {
function send(address _receiver , uint amount) public ...
1
vote
1
answer
725
views
Tx hash after submitting tx to smart contract [duplicate]
I use geth. When I submit a tx to a smart contract, the tx hash appears on the same screen with info about my node, like what block it’s on, etc. however, is there a way to receive the tx hash as ...
4
votes
2
answers
722
views
Transaction Confirmations in the transactions log
I setup a private net where only 4 nodes are connected. But when I am doing transactions and checking my transactions log. I am getting hundreds of confirmations.
Who can see my private Ethereum ...
0
votes
1
answer
116
views
Does transaction hash in Ropsten ( testnet) deprecate ever?
I want to know whether transaction hash created in testnet stay forever or after sometime it gets deleted? Like in IPFS garbage collector deletes unpinned files after two weeks. IPFS is also ...
1
vote
3
answers
144
views
Identify when a smart contract is deployed again in the network
I would like to automate the response of a Smart Contract from a script. Is there any way to identify when the contract was deployed again in the network to send a response?
UPDATED: If the solution ...