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.

1
vote
0answers
71 views

Smart contract will not deploy to my private blockchain when using Remix IDE

So I'm a complete newbie and trying to deploy my first smart contract to a local Ethereum blockchain. I'm doing this on a Windows machine. I have created a private blockchain using geth, made an ...
1
vote
3answers
38 views

Is it possible to make multiple function calls in a single transaction?

Say I want to make a transaction that calls foo() and the calls bar() afterwards. I could make a contract that calls them both in sequence, but that's kind of a pain. Is there a way to just call both ...
0
votes
1answer
27 views

Etherscan how to get latest transactions?

I am using this api to get all transactions at an address, however I see it returns the last 1000 transactions, is there any way to make it return first 1000 transactions by date?
1
vote
2answers
67 views

Decode transaction input INSIDE contract with solidity? [duplicate]

I would like to know if it is possible to read blockchain transactions from a smart contract. How web3 has the possibility to scroll, read and decrypt the input data of the transactions, does solidity ...
0
votes
1answer
24 views

How to understand from web3py if I need a transaction or a call

I have a contract with a function in which only if a certain condition is true, it changes the state of the blockchain otherwise it emits an event and returns: address[] public global_state; function ...
1
vote
0answers
24 views

How to sign transactions offline via geth for a specific chain?

Is there a way to sign a transaction to be accepted on a specific chain? In other words, if I want to sign an offline transaction via geth, say 0.5 eth from external address A to external address B, ...
0
votes
0answers
75 views

MetaMask - Multiple transactions confirmation

Is it possible to somehow make one pop-up window with one group confirmation for multiple transactions in MetaMask? I need to send to the blockchain multiple pieces of data, 1 piece of data = 1 ...
0
votes
2answers
15 views

Create token exchange by defining decimal values

I just learnt a lot about solidity and decided to put it into practice. Something I truly don't understand is how I can bypass the limitations of this programming language. Assume the following ...
1
vote
2answers
84 views

Offline transaction signing with web3j?

I'd like to generate and sign a transaction offline and then send that transaction with a different account. I've found a few web3js sources and I've read the web3 documentation, but I haven't found ...
1
vote
1answer
15 views

Can I get the timestamp for a transaction added to mempool?

Can I get the time stamp on when a transaction was added to the mempool and when it was successfully added to a block? Is there an API to do this?
0
votes
2answers
48 views

How the “data” field of transaction is saved in the Ethereum blockchain? [closed]

as I imagine there are 2 options: in pseudo language: 1) block.add(tx.data); block.calculate_hash_for_blockchain(); 2) block.add(some_hash_function(tx.data)); block.calculate_hash_for_blockchain(); ...
0
votes
1answer
35 views

How should one approach the signing of ERC20 token transactions with an offline device?

I use an offline PC as a cold wallet. It works in combination with 2 USB drives: the 1st has Tails OS; the 2nd has my key files, a copy of MyCrypto desktop, and my encrypted account info. I can sign ...
0
votes
1answer
32 views

Solidity <address>.send() doesn't create a separate transaction?

I am new to Ethereum and I deployed a contract in Ganache which has a function like this: function withdraw(uint256 amount) public payable returns(bool) { require(accounts[msg.sender].balance &...
2
votes
0answers
33 views

Signed transaction vanishing from testnet (Kovan & Rinkeby)

I've been attempting to broadcast transactions to both Kovan & Rinkeby, I'm building and signing them offline and using the Etherscan API to broadcast the signed transactions. I see them in the ...
0
votes
0answers
28 views

How is it possiblle - Although one or More Error Occured [Reverted] Contract Execution Completed?

How is it possible that the txn is reverted due to some error but completed? https://etherscan.io/tx/0xc35fde759557f7742224373ea0777cc7ec36bac98dd678aa621ab96063c29e1c
0
votes
1answer
37 views

Ethereum transaction order

I have a contract for saving some data with a time stamp. Saving data needs to have later time stamp than the last saved data. User will send the data to blockchain in correct order, lets say like ...
1
vote
2answers
81 views

Invalid Sender when Using Quorum

I followed this tutorial (https://github.com/jpmorganchase/quorum/wiki/From-Scratch) to start up Quorum with 4 nodes using istanbul consensus. The nodes can connect and blocks are being generated but ...
0
votes
1answer
36 views

EIP155. How chainId works?

I know signed transaction got v=37. now I am wondering how 'v=37' is used to check that the transaction is right one. nodes check v of every transaction they received?
0
votes
0answers
19 views

How do i retrieve the transaction hash to DApp's frontend?

I have a simple DApp that stores data, developed with truffle and deployed on rinkeby, and I want to show the transaction hash in the frontend. I've read a lot about web3.eth.getTransaction() or ...
3
votes
1answer
312 views

Infinite loop in a view

How is ethereum network protected against infinite loops in views? In normal transaction you have to pay a gass, so it would be too expensive for you, but calls to views are for free. For example ...
2
votes
1answer
50 views

Calling payable state changing function on client side with metamask in ethereum infura testnet

I can't seem to find an answer for my problem, or it's either impossible and I'm missing something, or it's trivial and I'm missing something. I have this function on client side: const bet = web3....
1
vote
1answer
21 views

How do I send multiple transactions from one wallet in Nodejs?

Hi I've been reading around and I came across Web3.js It's not apparent to me how I can send Ether from one wallet to multiple recipients other than in a batch-style request (which inevitably takes a ...
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 ...
6
votes
1answer
1k views

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

This is the transaction hash: 0x90e923ee01d9dfeb95ee176819eeec67d247fc6cb009c8cdc4d8ae1939e5ecc6 And this is the screenshot my friend sent me: If you check the hash in Etherscan, some informations ...
0
votes
0answers
25 views

Ethereum parity high IO - slow response for getBalance

We have a strange problem with parity after our smart contract addresses are increased. There is a scheduled process to check for the transaction records and we have web3j calls to getBalance/...
0
votes
1answer
28 views

How do I get the transaction fee used by a transaction in web3py

I am using web3py to do transactions for token and ether. Now I need to keep a track of transaction fee applied for each transcation. How can I get the transaction fee from transaction hash?
1
vote
1answer
24 views

I am trying to build a land registry of land titles on the blockchain, [closed]

Good Day. I am trying to build a land registry of land titles on the blockchain, with the intention of being able to sell such title to someone else. Therefore, the title eventually has to be ...
1
vote
1answer
103 views

How to get the value of the transaction?

I am using web3.py but I need help to know the value of the transaction sent. I know that the information is stored in the input but how do I parse the string. I know nothing about ABI. Here is the ...
0
votes
0answers
50 views

How do I send a transaction to a smart contract?

I need to build this transaction and send it to the blockchain how do I do it ? I always used ethsendrawTransaction just to send eth but never I never built this type of transaction: { "data": [ ...
0
votes
0answers
13 views

Should Ethereum wallet need to be imported to a node to send eth from it using CURL JSON rpc?

I created 2 wallets using MyEtherWallet. Noted down the private key, public key pairs. If I then use one of the wallet's public key as the from address and the public key of the other wallet as the to ...
0
votes
1answer
14 views

does the transaction trie include the contract internal transactions?

Does the transaction trie include the contract internal transactions besides the transactions collected from the network? if not, how the contract internal transactions are handled in the EVM and ...
0
votes
0answers
17 views

Verify transaction was included in certain block within smart contract

Is there a good resource for proving that a particular transaction was included in block x?
1
vote
1answer
34 views

Method to verify an address nonce within a contract?

Hey I'm looking for a simple way to verify that a certain address has executed x number of transactions? I noticed that this can be accomplished by having them deploy some contract and verifying ...
0
votes
0answers
14 views

How can I better set up automatic sending of ethereum from the first address to the second address when I receive any amount for the first one?

I use Node.js. Every 5 seconds I check the address balance using the function eth.getBalance. When I receive funds to the first address, the function of transferring funds to the second address is ...
1
vote
2answers
30 views

How are transactions stored in a block?

In State, use Merkle Patricia Trie for storing data. "key value" is account address(hash value). And also, Ethereum block uses MPT for storing transactions. However, Additionally Ethereum Block use ...
0
votes
1answer
44 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
2
votes
0answers
100 views

The sendSignedTransaction function does not activate the on('receipt') event at an appropriate time

console.log(transacting...); web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex')).on('receipt', receipt => { log(receipt); log(`https://ropsten.etherscan.io/tx/${receipt....
0
votes
0answers
10 views

Transaction added to already mined block

i run a private blockchain and i have realized some strange behaviour there. Concret i started a transaction and save the timestamp, when it has been started. Then i wanted to figure out, how long ...
1
vote
1answer
26 views

Where is the position of each paramter in a smart contract function when encoded as inputdata in a transaction

When I reviewed the BEC attack, I found the position of each parameters value in real transaction was not corresponding in to definition of function in smart contract. The exploit transaction is at: ...
1
vote
0answers
35 views

is there a library to convert transaction receipt to rlp?

I found ethereumjs-tx for transaction to rlp, but i didnt find any libraries to convert transaction reciept to rlp. or is there a way to get rlp format transaction receipt from a service like infura ...
0
votes
0answers
42 views

Spending from an Ethereum Private Key Paper Wallet

I have an Ethereum paper wallet with the private key. I want to only spend a fraction of the ethereum on this private key. I also have a few USDC tokens on it that I want to also spend. How can I ...
0
votes
0answers
17 views

Ethereum Multi Node network design - nonce management for address

I am running two nodes on two different machines and geth installed, and for educational purposes I would like to make both nodes work concurrently. I know that nonce management is quite pain in the **...
1
vote
1answer
35 views

How to parse input data in transaction using go programming language?

I know there are some resolutions about parsing transaction input data, but they don't work with go. I wander if there is any way i can use with abi available. Specifically, When i receive a ...
0
votes
1answer
29 views

how can we set auto transfer of my tokens to the wallet which transferred me ethers

Okay so I have deployed my contract to network, and my wallet or account via which I deployed it contains all my tokens of the newly created contract. I dont want to list my token anywhere since since ...
0
votes
1answer
54 views

Is there any way to decode to_address from getTransaction(hash).input of a token transfer?

Here is my code, web3.eth.getTransaction(txns.transactionHash,function (err,res){ console.log(res.to); // consoles contract address var input = res.input,erc20=input.slice(0,10); if(erc20 == '...
0
votes
0answers
20 views

Error - received an error when i sent transaction

Error - received an error when i sent transaction but it seemed to go through no problem. a few mins later it came up insufficient funds. My account has a positive balance. receiving address of my ...
1
vote
1answer
23 views

Ethereum transaction fails in simultaneous calls

I am making two calls simultaneous call with a single wallet. First I am making a contract call then I am making a ether transaction call. The first call succeeds, but the next call fails. I got this ...
0
votes
1answer
76 views

KBC to ETH transaction [closed]

I withdrew KBC from my HitBTC account to my countries local crypto app LUNO which only supports ETH. This transaction was sucssesfull however I can not retrieve it from my Luno account. They say it ...
0
votes
2answers
21 views

Is there any command-line tool to sign transactions offline on a Linux machine?

I have an air-gapped machine with Ubuntu Server. Is there any command line tool which I can quickly download to sign offline transactions? Something like: sign-tx private_key_file nonce=10 gasPrice=.....
1
vote
1answer
13 views

Function which only reads data still using gas/tx fee

I have a function call which only reads data from contract but it still costs gas to execute: function foo(int256 x) public returns (bool) { if(tuna[x].validOnce == true){ if(dog[x] == ...