Questions tagged [address.transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
295 views

Transfer function gives infinite gas warning in remix

If I use this simple payout contract in remix, it gives me a warning that the gas costs is infinite. Is this an intended behaviour? contract Payout { function payout() public { msg.sender....
0
votes
0answers
169 views

Problem with invoking a function

I have a function as follows i.e. transfer. function transfer(address _to, uint256 ENvalue, uint256 PWvalue) public returns (bool) { require(_to != address(0)); balances[_to].bEN = balances[_to]....
0
votes
1answer
233 views

Simple transfer from contract not working

this is very basic but i just want to test the transfer function. I load the contract with the constructor with 1 eth, then when i click the transfer function 0 wei is transferred. I understand this ...
3
votes
4answers
946 views

Can't transfer value from mapping inside mapping

The title of this issue might seem strange because I can't figure out exactly what the problem is. But here is what is happening: pragma solidity ^0.4.13; contract Escrow { address public owner; ...
2
votes
1answer
165 views

tx.origin for factory

I want to use a factory so that people can create a standardized contract. People should be able to transfer money directly by this creation which led me to the problem of the msg.sender during the ...
0
votes
1answer
4k views

How to send Ether to a contract successfully?

New to Solidity... I am studying how to deposit Ether into a smart contract by setting a parameter in a function. Based on the value the function receives, the msg.sender is able to send a ...
0
votes
1answer
179 views

How can Ether be withdrawn from a contract successfully using transfer?

New to Solidity... I am studying how to withdraw Ether from a smart contract by setting a parameter in a function. Based on the value the function receives, an amount of Ether is sent to a contract ...
2
votes
2answers
621 views

Can a fee in Ether be added to ERC20 Token transfers

New to Solidity... Is it possible to have a fee for transfers of an ERC20 Token in Ether? The fee would be 0.000001 Ether per transfer. Each time the ERC20 Token is sent to another user, the fee in ...
2
votes
0answers
63 views

Out of gas while using transfer function

I simply want the transaction to occur in integral ethers. I wish to refund the balance amount. I am using the following function in my contract for that. I am getting out of gas while running this ...
2
votes
0answers
277 views

withdraw eth from contract

I have contract and function which accepts ether. How can I transfer ether from contract to any other wallet? I'm using ganache-cli. Function work, and I spent 10 eth on contract(private network). ...
1
vote
2answers
372 views

Three tokens transfer between each other

I would like to write three token contracts A, B and C that can interact with each other. A is the main token, B and C are the sub-tokens. A buyer can buy the main token(token A) and use them to buy ...
3
votes
1answer
470 views

How can I instantiate a contract from a factory and, in the same call, send msg.value to it?

WHAT I WANT TO DO: call another contract's constructor function, instantiate that contract, and subsequently send Ether to it in the same function. WHAT HAPPENS: an instance of the other contract ...
1
vote
1answer
1k views

How might you identify eth addresses with the same owner?

Given an ethereum address, how might you identify (or make a good guess) as to which other ethereum addresses belong to the same owner? Note: I'd come across some content that somewhat answers this ...
1
vote
1answer
434 views

How to write a function that is automatically called when a contract receives an ERC20 token?

Fallback functions only work when a contract receives ether. Is there a way to write a fallback-style function that is automatically called when a contract receives an ERC20 token?
0
votes
0answers
1k views

Getting a contract's fallback payable function to fire from another contract?

My contract (contract A) is meant to send txs to another contract (Contract B). I want to end up having the fallback payable function of Contract B get called. I try to accomplish this by making a ...
1
vote
2answers
453 views

Contract transfer between two address, pay gas from third address

The scenario is to transfer from Address B to Address C, deducting the transaction fee from Address. Here A will have some ether amount, which should be used to deduct the gas. The ERC20 Token ...
1
vote
1answer
2k views

Transfer ERC20 Tokens from my wallet to another wallet

before I start just wanted to say that I started a few time ago with solidity and I'm still noob, but I've been reading and researching about this and can't get it working. I'm using ethereum wallet ...
3
votes
2answers
660 views

Explain working of address.send function in solidity

I have been trying to get documentation for address.send() function, but i am unable to do so. Can someone please explain how address.send() function works, and how it can be used to send currency ...
2
votes
1answer
565 views

Cannot transfer ERC20 token, “Bad instruction” error

I'm trying to transfer an ERC20 token from account A to account B. Account A deployed the contract and owns all tokens. Looks like I'm missing something very obvious. Every time I try to transfer ...
4
votes
1answer
420 views

Search in Address[] if exist the same address sender

I want to check if the Address sender is already in Address[]. If true, then do not allow this address to make the payment. Contract Hello { address[] internal Pool; function () public payable { ...
2
votes
2answers
182 views

Does ether transfer consume all gas in case of exception?

If addr.transfer() fails, does it use a revert- or throw-style exception? In other words, does a failed transfer consume all provided gas?
1
vote
1answer
966 views

How do I get the transaction hash and boolean return value? [duplicate]

I'm making a simple time-lock contract in Solidity. In my funds withdraw function I have: function withdraw_funds() public returns (bool) { if (getAccounts[msg.sender].amount > 0) { ...
0
votes
1answer
1k views

how do I send ether from msg.sender to contact in solidity [closed]

in solidity, how do I send eth from the msg.sender to the contract? For learning purposes, I want to transfer eth from one address(msg.sender) to a contract. thank you!
1
vote
2answers
2k views

Questions about some details on Ethereum transfers and Gwei

I read up about Gas and Gwei but there are some things in practice that i don't understand / know what to do. I just started learning about Ethereum (received my first ETH coins today and started ...
1
vote
2answers
504 views

Yesterday I made a tron ​transaction but I never got it verified by etherscan and it appears but in my balance

Yesterday I made a tron ​​transaction but I never got it verified by etherscan and it appears but in my balance it does not appear what should I do?
1
vote
1answer
135 views

What are options re: transferring ETH and ERC-20 tokens out of Mist without having to synch?

I have some ETH and many custom tokens sitting in a Mist wallet that will take many days to synch. I assume I can use the 'transfer from' function to move these tokens from this wallet without having ...
0
votes
1answer
73 views

What proof do I have that I own a token?

I bought some tokens using the mnemonic phrase of my Jaxx.io wallet through myetherwallet. I got a confirmation in the tansaction history of Jaxx and a transaction ID (etherscan) The token is https://...
2
votes
2answers
3k views

How to create unique addresses for custom ERC20 tokens

We can create ERC20 tokens using solidity or even metamask.. but how to create unique address to transfer them? I mean token like Gold reward or coins like Bitconnect has it's own pattern of address ...
0
votes
1answer
289 views

what happens if I try to send my gdax btc to an eth address?

My question is about transferring btc to and eth address by accident?
0
votes
1answer
249 views

Transfer a fixed value of ether

pragma solidity ^0.4.19; contract Test { address one; function Test(address _one) public { one = _one; } function send1() public payable { one.transfer(10); } function send2() public ...
1
vote
1answer
58 views

Differences between nameFunction.value and address.transfer

What is the difference between using nameFunction.value(n)(parameters of nameFunction) and address.transfer(10)? I know that in the case of address.transfer, I'll send the amount to the fallback ...
0
votes
1answer
141 views

How to verify whether an address variable points to an existing account?

function pay(address payee, uint value) public { // How to ensure that payee is an existing account? payee.transfer(value); } Many thanks!
1
vote
0answers
598 views

Etherdelta error when calling withdraw, deposit or transfer

Everything I do with Etherdelta. I get an error. I really don't know where is it coming from. It is pending the whole time.
1
vote
1answer
4k views

Transaction revert in Remix

Here is my contract pragma solidity ^0.4.14; contract Sample { address private receiver; uint public amount; function pay(address _receiver, uint _amount) payable public returns (bool) { ...
0
votes
1answer
3k views

ETH sent to incorrect address [duplicate]

I've recently started looking at blockchain so have bought a small amount of bitcoin and ethereum to allow me to understand the processes. I may have some ETH but would appreciate some help as it ...
0
votes
1answer
477 views

Contract to Contract Transaction with Ether

I have some trouble creating two interacting contracts. The first contract should receive ether from a user at a function payRate() and forward the amount to another contract, which is saved at the ...
2
votes
0answers
34 views

Ethereum Exchanges compatibility matrix? <- concerns due to warnings regarding “smartcontract deposits”

Is there a "exchanges compatibility" features list/matrix, so I know between which I can move Ether directly? Context+example use case: I've tried to move Ether between exchanges, however warnings ...
2
votes
1answer
497 views

Transferring ethers using a “for loop” in a smart contract

I am trying to send funds to the users who deposited ethers to my contract. I am currently achieving this by having the list of address and looping through them sending those addresses ethers. Right ...
0
votes
0answers
128 views

can't get transfer to execute

I am trying to run the following solidity function: function test() payable { msg.sender.transfer((balances[msg.sender]/1000)*this.balance); } Where this.balance is 0.1 Ether and balances[msg.sender]...
0
votes
1answer
72 views

Where's Submit button to register .ETH domain?

When I attempt to register a .ETH domain at https://registrar.ens.domains, there is no button for me to submit my request. Right below the message "I understand how the process works and my risks and ...
1
vote
1answer
991 views

Why there are 'OUT' token transfers from the zero (0x00…) address?

There are no 'OUT' transactions with ether (link), but there are a lot of token transfers (link). In my understanding, most likely no one has a private key for this address, so where do these ...
0
votes
3answers
413 views

Send fixed amount on contract deployment

I managed finally to get an erc20 contract working and creating an MCN (MyToken in this example) but can't figure out how to send a fixed amount of the MCN to multiple addresses on the contract ...
1
vote
1answer
620 views

address.(send|transfer), recipient not receiving

In a Solidity contract I am using address.send() and address.transfer() to send money to a recipient. When I execute that function the balance of the contract gets deducted but the recipient address ...
1
vote
0answers
42 views

Where can I find my EUT tokens?

I've paid with my cb account to obtain during an ICO for EUT tokens. Looks like per etherscan that token were disbursed successfully, but not sure where I can go or wallet I can use to see my token ...
57
votes
4answers
44k views

<address>.send vs <address>.transfer best practice usage?

I noticed that address's offer two member functions that perform the transfer of ether to the specified address. send returns false upon failure and transfer raises an exception. In the Solidity ...
3
votes
1answer
2k views

How to monitor all your addresses and send payments out immediately to a main address

Say I have separate addresses for ethereum that are getting regular payments through different channels. How do I monitor these and immediately send balances to the main account and leave all the ...
0
votes
1answer
2k views

Transfer of Ether from one party to another

I'm trying to transfer ETH from one account to another using web3j and a java program using following code. public void transfer (String from, String to, BigInteger amount) throws ...
1
vote
2answers
785 views

Does `address.transfer` forward all gas (suceptible to re-entrancy)?

From the Solidity documentation I do not understand if the recently introduced address.transfer forwards all gas to the target contract or just gives a minimal gas stipend. I.e.: Would it facilitate ...

1 2
3