Questions tagged [transactions]

The term "transaction" is used in Ethereum to refer to the signed data package that stores a message to be sent from an externally owned account.

0
votes
1answer
71 views

How to find an ether account I sent to from CoinBase

I had some Ethereum. I originally bought at Coinbase, but after hearing talk about keeping a separate wallet for your digital currency I transferred them to another place. That was a year ago. I ...
1
vote
2answers
125 views

Transaction receiving ether from a contract address

Are transactions sending ether from contract addresses to normal addresses listed in block.transactions or are they not trivial to detect? If not in block.transactions than how to detect?
1
vote
2answers
19 views

To transfer tokens from owner address to an address, if latter address moves some other tokens to a given particular address

I am writing a contract for an ERC20 token (say ABC). Is it possible to airdrop some of these newly minted ABC tokens to those ERC20 addresses, every time, if they transfer a different token (named ...
1
vote
1answer
13 views

call: Warning: Unused local variable

I am trying to compile the following code: pragma solidity ^0.5.1; contract MKotET1_1{ address payable king; uint public claimPrice = 100; function calculateCompensation() public returns(uint)...
1
vote
2answers
67 views

Syntax Error with 'if'

I am trying to compile the following program: pragma solidity ^0.5.1; contract MKotET1_1{ address payable king; uint public claimPrice = 100; function calculateCompensation() public ...
0
votes
3answers
2k views

Transfer Ether from my wallet to another wallet

I have a wallet at MyEtherWallet.com . Is there any API which allows me to transfer Ether from my account to different accounts ? Does MyEtherWallet provides any such API's ? I saw the documentation, ...
1
vote
1answer
264 views

Signing a transaction: What is actually signed? [noob question]

I'm trying to wrap my head around how signing transactions actually works. As I understand ECDSA signatures roughly work like this: There is a magic function, let's call it sign that takes two ...
0
votes
1answer
113 views

transaction pending but now showing on MEW

I wanted to transfer ERC20 tokens to transfer from metamask to exchange. However I accidentally set 2 gwei, which was very low. Now my transaction is pending and it doesn't showing up in myetherwallet ...
0
votes
2answers
14 views

Transaction Ordering doubt for msg.sender.balance

I searched for SE and google, but did not find answer to this simple doubt. If I include two transactions (state changing ones which cost gas) in same block for execution. Then my question is: will ...
1
vote
1answer
700 views

Web3js Contract deploy never get receipt?

I am trying to deploy a contract with web3js. The contract will be deployed but I never get to see the address, which should be returned from the promise. Instead I always get an error returned: ...
2
votes
1answer
273 views

How to do batch transaction in Ethereum using web3j

I want to do batch transaction using the web3j,So how can I do it? Is there any way or feature web3J provides
0
votes
1answer
33 views

How to get transaction receipt using transaction hash?

I deployed a smart contract and done some transactions. Now I want to see the transaction receipt of the transactions. So I wrote this code: var Web3 = require('web3'); var web3 = new Web3(new ...
1
vote
3answers
186 views

understanding value on token transfer transaction

When a token transfer transaction has an ether price associated with it, is it fair to assume that that transaction used ether to buy the tokens? For example, this transacion triggered by account A ...
44
votes
8answers
21k views

How to get contract internal transactions

I'd like to get the contract internal transactions like: https://etherscan.io/address/0xd654bdd32fc99471455e86c2e7f7d7b6437e9179#internaltx I'm using web3 API. Is there any way to do it? Where do ...
0
votes
1answer
117 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
2
votes
1answer
139 views

Invalid transaction signature on sending transaction

Hello guys I'm having a "Invalid transaction signature." error. Can't get pass this one. Am I missing something? client, err := ethclient.Dial("path/to/geth.ipc") if err != nil { return err } ks :...
1
vote
1answer
107 views

How to simulate multiple consecutive transactions and get the resulting state?

I'm trying to simulate a transaction on the public blockchain that invokes a contract's method with certain parameters. Then I want to make a follow-up transaction with some other method call. I ...
0
votes
1answer
391 views

Creating a transaction from a webform - invalid number of args

I have a HTML web page where I am feeding user entries into a smart contract that is designed to "store" the entries in transactions. I have most of the application working, but I'm having trouble ...
0
votes
1answer
92 views

Ethereum mempool transaction of Uncle and Fork nodes

In the Bitcoin network when a fork happens, the block transactions from the shortest chain are reinserted again into the mempool. In Ethereum instead we have Uncle blocks and Fork blocks. What ...
2
votes
1answer
87 views

Exchange messages between two clients of Dapp without spending gas?

Let's say that I want to build a Dapp such that users can exchange messages between each other. I guess you can consider it a chat Dapp. Is there any way for the two users to find the "address" of ...
2
votes
1answer
87 views

Watching the transaction of an external account using smart contract

Is their any way to execute a function of smart contract whenever a transaction to a predefined external account occurs? I mean if someone transfers some ethers to account A, a function of a smart ...
0
votes
1answer
31 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
0answers
18 views

Why after managing to deploy contract to POA Ethereum blockchain I can't interact with it? [duplicate]

We are using a private ETH proof of authority blockchain. In order to deploy a contract I'm using 0 gas price and it deployed immediately. Then, Tried to deploy many types of contracts with ...
6
votes
1answer
290 views

eth.gasPrice is returning less value than expected

As mentioned in documentation eth.gasPrice returns the current gas price. The gas price is determined by the x latest blocks median gas price. I was relying on this method to estimate current gas ...
1
vote
1answer
126 views

Ropsten rejects my sendSignedTransaction function

This is my code: contractNoEvents.methods.myMethod().call(function(err,foo){ if (foo.length > n) { contractNoEvents.methods.myOtherMethod().call(async function(er, bar)...
1
vote
1answer
20 views

I've given Gwei less than 0.1 for a transaction, and it's been an hour, and it is not showing up in etherscan!

I know I pretty much messed up with Gwei, I've given it < 0.1. My doubt is if the transaction gets failed will the funds get back to my wallet or lost forever and how much time will it take for the ...
2
votes
1answer
207 views

Do all Ethereum addresses have a specific format?

I know all ethereum addresses start with 0x, but is there a common letter/number after the 0x to represent an address? Because I get confused on how to tell if its an Eth address or if its a ...
16
votes
3answers
3k views

What is the default ordering of transactions during mining, in e.g. geth?

I know that the yellow paper does not specify how transactions are to be ordered in a block and this is up to the miner to decide. But I am interested in how this is practically handled (I assume not ...
4
votes
1answer
31 views

Timestamp in Ethereum

I have a smart contract where the user inputs temperature readings, I'd like to add a time stamp to relate those reading with a current time of submission. I understand that in Ethereum we only have ...
1
vote
1answer
377 views

How to send data to smart contract?

I have the variable w1_temp, which i need to send to contract I have the following code: var W1Temp = require('w1temp') var Web3 = require('web3') var web3 = new Web3() web3.setProvider(new web3....
1
vote
1answer
28 views

Dates of ERC20 tokens transactions

I'm an individual who is interested to ICOs which are selling ERC20 tokens. My question is related to an issue that, for most of the ERC20 tokens, the dates of transactions do not fall within the ICO ...
0
votes
1answer
142 views

I have trouble finding tx hash

From 0x74e442b7ee73634cb55ce8d96d5ffa2b7a2f73ce To 0x9BC98204e90F3c5b827D5f097808A765D8EE1121 Amount 0.01 Please help me to find tx hash.
11
votes
6answers
23k views

How to get transactions by account using web3 js?

I'm sure this question was asked before, but I did not find any result that helped my problem. How can I get the transactions (in and out) for a given account? I use nodejs and web3? With this line ...
0
votes
2answers
405 views

Do Etherscan stores all the events and transaction history?

To get the history of a transactions for an account, we have to traverse the whole chain everytime, but etherscan provides the entire history of all the accounts instantly. Similarly it does the same ...
0
votes
1answer
125 views

Unable to send ether to account

I am trying to send ehter using this code web3.eth.accounts.wallet.add(privateKey); web3.eth.sendTransaction({ to:someAddress, from:onwer, value:amount*1, ...
0
votes
1answer
15 views

Is there any way to hide or encryt input data that sent to smartcontract? [duplicate]

After a While working with ethereum, I felt ethereum is not only public and also naked because whatever input data that we sent to contract function, it is visible to everyone when looked into the ...
1
vote
3answers
547 views

Tracking tokenholders of a token with web3

If I have a token address how can I navigate and find certain things like: tokenholder addresses transactions for the token holders including when they made the transaction I'm new to smart ...
3
votes
1answer
184 views

Create Accounts Using Web3.js in Browser

TL;DR - Replicated Ethereum Blockchain. Running Local Node. Connecting Local Node to Web3.js in browser using RPC. Want to create addresses & send transactions Details - I have a blockchain that ...
1
vote
1answer
115 views

Is there an explorer like Etherscan for Remix JS VM sandbox blockchain

I created a contract and did some transactions. I would like to explore the transactions in the sandbox blockchain in my brower (Chrome). But the tx hash is not found in the REMIX VM Debugger http://...
0
votes
1answer
20 views

How to calculate average gas price of several blocks?

I want to calculate average gas price of several blocks (in Gwei), however I don't see how a field on blocks for gasPrice. Do I have to calculate it by grabbing the gasPrice of each transaction in ...
7
votes
1answer
835 views

getBlock('pending').transactions vs txpool.status.pending?

I logged both getBlock('pending').transactions.length and txpool.status.pending while the Aragon ICO was ongoing. I'm interested in seeing transactions as they are coming to my node. The two graphs ...
0
votes
1answer
19 views

How expensive is it to manipulate the gas price?

Imagine that an evil billionaire decided to make Ethereum hard to use by making the gas very high. I'm wondering how expensive this would be to do for various timescales. For example, manipulating ...
0
votes
1answer
19 views

Smart contracts: is every public function payable?

I am aware of the payable annotation on the public methods. But just want to make things more clear: is every public function payable? Even without the payable annotation? what would happen if a ...
0
votes
0answers
13 views

How to get list of pending transactions for particular address on JavaScript using public API?

I'm building web-wallet on javascript, and I want to show not only available balance, but also pending amount. From web3js v1.xx documentation I've learned that I can do web3.eth.subscribe('...
0
votes
1answer
157 views

Using the Parity or Geth light client, how can I monitor an address for transactions?

I'd like to use Parity or Geth, in light client mode, to monitor an address for transactions. Essentially, I should be able to check each block for transactions involving a certain address. In the ...
1
vote
1answer
191 views

Why doesn't my contract call create a new transaction in my ganache transaction section?

goes easy on me because I'm quite new to all of this stuff. So I've created a function which signs my transaction using web3js library and looks like this: signTx = async () => { const { ...
0
votes
1answer
31 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("...
3
votes
2answers
440 views

Cannot send transactions with MetaMask Chrome plugin

I am trying to send an ETH transaction with the MetaMask Chrome addon, and have done so successfully in the past. However now, there is no "Send" button visible in the window, as shown in the image. I ...
2
votes
2answers
1k views

How to get transaction failed reason with transaction hash with web3?

I'm trying to get transaction failed reason with transaction hash with web3? I have checked getTransactionReceipt() method { blockHash: '...
0
votes
1answer
124 views

BlockCypher Account nonce too far behind transaction

I'm currently working on a DApp that involves sending transactions. I'm using BlockCypher to send the transactions since the API is fairly straight forward. One issue I'm finding is that when I run my ...