Questions tagged [transfer]
The transfer tag has no usage guidance.
224
questions
0
votes
1
answer
131
views
Why Transfer function doesn't check for allowance comparing to TransferFrom?
Why Transfer function doesn't check for allowance comparing to TransferFrom?
Do I need to call increaseAllowance each time before calling TransferFrom?
Ex implementation of Transfer without allowance ...
1
vote
1
answer
2k
views
what is the cheapest way for sending ethereum from 10 account addresses to 10 account addresses?
What is the cheapest way to send ether to 10 addresses? By using smart contract or using externally owned account to send one by one...? I know that the gas limit of a normal transaction is 21,000......
0
votes
1
answer
853
views
I have WETH in my ETH wallet but I can't send it
As you see, I have 1.7 WETH. When I try to withdraw, it shows me this
0
votes
1
answer
2k
views
transfer Erc-20 tokens from an adress without Eth and pay the gas from another adress or destination adress
as the title completely explains I want to transfer some erc-20 tokens from one account that has no eth in it to another how can I do so without need to deposit some eth to that account?
Is it ...
2
votes
1
answer
2k
views
How to approve user to spend all my ERC20 tokens?
In ERC20 we approve a user to spend our token and then they can spend as much allowed using transferFrom, but if the allowance limit exceed then I have to approve again, is there any way to allow them ...
1
vote
0
answers
356
views
Revert error when sending ERC20 token on Ethereum mainnet fork
I am trying to send an ERC token (USDC) on the Ethereum Mainnet fork made with ganache-cli --fork. The transfer is made from the unlocked account that has both ETH and USDC balances available to the ...
2
votes
2
answers
1k
views
Sending token with contract interaction in Remix
I'm aware of using the value field in Remix to include ETH with my function call transaction but is there a way to send another token with my transaction, for example, LINK?
Additionally I would like ...
1
vote
1
answer
171
views
Request a transaction amount in a function
I'm trying to have a function generate a request such that it pops up a Metamask request.
I know I can do:
require(msg.value == amount);
to require the function call has a certain value.
But this ...
0
votes
1
answer
144
views
Should increase/decrease token supply on transfer to/from 0x0?
I am about both ERC-20 and ERC-1155.
Should totalSupply be increased/decreased, when:
transferring to 0x0?
burning an amount already placed at 0x0 address?
By the way, should 0x0 be allowed to have ...
0
votes
0
answers
94
views
Uniswap Fee or how 180 AMPL tokens suddenly "disappeared" from blockchain
If you look at https://etherscan.io/token/0xd46ba6d942050d489dbd938a2c909a5d5039a161?a=0xfe6c9c5a0d36eba3a767aaf6df2f335e666a74e7, you can notice that there were 3 transactions associated with the ...
0
votes
0
answers
80
views
What is the cause of an "APPROVED" transaction but doesnt do a "TRANSFER" for an ERC-20 Token?
I have a transaction that was approved and I paid $3 in fees. But the token was never "transfered" where and how can I debug what happen to my transaction of why it didn't transfer?
0
votes
1
answer
717
views
Take a percentage of msg.value on ERC721 transfer
I want to transfer part of the value paid to an address whenever an NFT is traded. If the value is 0, then nothing is transferred.
My original idea was to override the transfer function in ...
4
votes
2
answers
4k
views
Possible to transfer multiple tokens in one transaction?
Is it possible to transfer all / multiple ERC20 tokens to another wallet address in a single transaction?
7
votes
2
answers
2k
views
Make an erc20 transfer with web3py
how to send an erc20 in web3py please, I have that :
tx_hash = contract.functions.transfer(destination_address, value).transact({'from': myaddress })
and I get this error :
ValueError: {'code': -32601,...
1
vote
4
answers
406
views
Modifying erc-721 transfer
Say I want to take a cut of an NFT each time the token is transferred. If I were to change the openzeppelin erc721 transfer function to transfer 1% of the NFTs holding to myself, can that standard ...
0
votes
2
answers
249
views
Problem: Payment between smart contracts without reducing the balance of the sender contract
I work on Truffle. I have two smart contracts A and B. Codes of them are same. A should transfer some ether to B and store some information about this payment. I funded A with METAMASK. But, whenever ...
0
votes
2
answers
702
views
how to set an ether value as a function parameter?
I work on Truffle and my project is simple. contract A should transfer some ether to contract B. contract A is funded enough. In contract A, there is a function called payment that performs the ...
0
votes
1
answer
430
views
transfer ether from smart contract to my wallet : warning error encountered during contract execution out of gas
Hi I awant to transfer transfer ether from smart to my wallet so I ceated a sendEther function in the smart contract
function sendEther() public {
msg.sender.transfer(1 ether);
}
very basic ...
0
votes
2
answers
1k
views
Transfer eth to accounts in Remix javasctipt VM solidity V 0.6.0+
I am simple man, but learning Eth Dev.
I am testing a contract in Remix however I can't transfer Eth between the accounts in the javascript VM (using solidity V0.6.0 +). I have researched for a while ...
0
votes
1
answer
190
views
Gets reverted when calling ERC20.transfer in a contract, not reverted when transferring 0
I have this code inside a contract
interface ERC20 {
//standard variables
function allowance(address _owner, address _spender) constant returns (uint remaining);
function approve(address ...
0
votes
1
answer
2k
views
I am having trouble transferring my coin from coin-base wallet to coin-base pro [closed]
Hello guys i am trying to transfer my coin from coin-base wallet to coin-base pro. it shows me a message " you are trying to send an erc20 token which are issued on the Ethereum blockchain. This mean ...
12
votes
2
answers
8k
views
Using ".value(...)" is deprecated. Use "{value: ...}" instead
This works fine in Remix but when trying to work in VSCode (for compiling purposes; DApp course, trying to build .json through compile.js ) it throws the error
Using ".value(....
0
votes
0
answers
64
views
No transfer of ether
My Code below ( Following an Online Course, absolute beginner here ^_^)
pragma solidity >=0.4.17 <0.7.0;
contract CampaignFactory{
Campaign[] public deployedCampaigns;
function ...
1
vote
1
answer
1k
views
Metamask doesn't show token value on erc20 contract interaction [closed]
Why using the Transfer method is showing the value of the erc20 that I want to transfer while with a custom method is always showing 0 ETH on metamask instead of the token that I'm transferring via ...