Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
1 answer
462 views

Proper ethereum exchange workflow

I've recently found out, that there's no convenient way to monitor transactions to 'externally owned account' generated by some contract. I went to various forums and ethereum bugtrackers for an ...
curious's user avatar
  • 51
3 votes
1 answer
275 views

How can I set the gas price of a transaction initiated by a contract?

I am writing a contract that will interact with another contract: contract A will call a function defined by contract B. Is it possible to set the gas price that contract A is willing to pay when ...
troyth's user avatar
  • 63
1 vote
1 answer
113 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: ...
Jocelyn's user avatar
  • 71
1 vote
1 answer
51 views

How does contract of dapp figure out who buyer is?

How does contract of dapp(eg. market place) figure out who buyer is? If buyer wants to purchase servive(or product) at certain dapp, he should transfer tokens to contract address of the dapp. At ...
lagoiz's user avatar
  • 147
1 vote
1 answer
278 views

Bad Jump Destination, how can i tell programmatically?

Let's say i'm programmatically making a transaction to a contract. How can I tell (programmatically) that the confirmed transaction has a Bad Jump Destination? Right now, the only way I know of is ...
LampShade's user avatar
  • 640
0 votes
2 answers
212 views

how to loop call token transfer function in a single transaction

I find a transaction here which contains multiple inner transfers. It seems that it saves a lot gas. May I do this with web3j?
xuanzhui's user avatar
  • 235
0 votes
1 answer
148 views

Need Solidity software for smart contract, for Multiple Token dispatch [duplicate]

Please I need to distribute tokens to at least 1,500 wallets and can't go through the stress of sending them one by one. What I need is a smart contract to enable multiple dispatches to several ...
solomonsojay's user avatar
1 vote
1 answer
105 views

What happens when transaction is sent from smart contract?

If during smart contract execution it decides to send a transaction, then transaction would be created, validated and broadcasted to the network from all the nodes executing this smart contract. ...
Joe's user avatar
  • 11
3 votes
2 answers
156 views

Simplest way to find percentage of transactions that invoke EVM?

Firstly I want to make sure my understanding of the Ethereum is correct: A "normal" transaction of Ether from one account to another does not usually invoke the Ethereum Virtual Machine? Secondly: ...
Gawnie's user avatar
  • 331
1 vote
1 answer
179 views

Which scope of variables changes the state of the contract?

I had been reading about the state of a smart contract. Here It also gives a small example of a contract. contract SimpleStorage { uint storedData; function set(uint x) { storedData ...
Donut's user avatar
  • 547
1 vote
0 answers
74 views

Possibly hacked but not sure Help!

I recently had most ERC20 tokens moved from a MEW wallet through the individual ERC20 contracts. Does anyone know how this may have happened? I am sending pertinent info from one on etherscan.io 1)...
Daniel Landry's user avatar
1 vote
1 answer
126 views

How to be notified with bad transactions when sending to a JSON-RPC server?

With Ubuntu, I've tried Wallet/Mist and MetaMask on Ropsten testnet: they both notify me with bad transactions before inputting my password. I've tried to do the same thing with a JSON-RPC server, in ...
Vincent J. Ruan's user avatar
0 votes
1 answer
224 views

Sending parameters via the transaction Object

This works just fine: myContractObject.doSomething(i, function(err, result) { if (err) { console.log(err) } else { doSomethingElse(result) } }) However, this doesn't: ...
glowkeeper's user avatar
0 votes
1 answer
171 views

How to form the transactionObject in a metamask enforced async call?

Normally, for a contract call (i.e. something that does not update ethereum), I would simply do: var something = myContractObject.getSomething(). I've just started using metamask, and unfortunately, ...
glowkeeper's user avatar
1 vote
1 answer
93 views

Is gas ultimately *only* sent to miners while the computation defined in a smart contract is performed by each node of the network? [duplicate]

To my understanding, the execution of the code inside a smart contract is done by all nodes in the network. However the miners are the only ones who receive the paid gas. Also, when setting up the ...
SGMoore's user avatar
  • 11
0 votes
1 answer
148 views

Contract killed twice

Due to a delay (not minutes, but hours probably) in mining first a kill transaction https://testnet.etherscan.io/tx/0xf087a137e7f4962260da26928d205cabd71eed68fd79f8f35fb1027073f03812, and minutes ...
Juan Ignacio Pérez Sacristán's user avatar
1 vote
1 answer
336 views

Approval + Deposit each time, vs a one time Approval then only Deposits after

I've noticed that some token contracts are requiring me to do an approval before I make a deposit and some do not. For example. SNT and CVC do not require me to do an approval before I deposit. ...
LampShade's user avatar
  • 640
0 votes
1 answer
64 views

Is it safe to assume that a smart contract can hold Ether for years if the withdrawal is not triggered?

Given that ethereum continues to run for few years, is it safe to assume that the smart contract will hold the ether that was deposited into it for years until its triggered to transfer/withdraw the ...
Kaushik Wavhal's user avatar
1 vote
0 answers
115 views

Implementing a reinforced invoice?

I have a question. My contract structure involves 2 user at address A and B respectively: First A trigger the logging method from the contract with B's address as parameter. This will record a ...
lab's user avatar
  • 11
0 votes
0 answers
43 views

How do i get to return value form one smart contract function into another smart contract on private ethereum network?

Here it is my called function. pragma solidity ^0.4.19; contract Called{ string public name; function set(string _var) { name = _var; } function get() view returns (...
Anand Kumar's user avatar
3 votes
1 answer
104 views

Same functionality, new contract for new usage?

When different people use the same contract functionality, do they send to the same contract address? Or do they create their own new copies of the contract at a different address? If they use the ...
Wang's user avatar
  • 2,426
3 votes
1 answer
72 views

High level discussion: anomaly monitor

I was reading about past attacks on Ethereum network and I pictured the following hypothetical scenario: there is a tool or automated, machine learning based anomalous monitor to check out constantly ...
Saulo Ricci's user avatar
1 vote
0 answers
60 views

Can two state-changing transactions be in a single block? [duplicate]

I don't know how Ethereum verifies the atomicity of the state of a contract in the mining process. Say I have a greet-counting contract. If two people call the greet function in (almost) the same ...
Q-chan's user avatar
  • 11

1 2
3