Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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 ...
1
vote
2answers
16 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
1answer
36 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
1answer
20 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
0answers
26 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
0answers
11 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
1answer
40 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 ...
1
vote
1answer
75 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?
4
votes
1answer
57 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
1answer
21 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
1answer
37 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
1answer
30 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
1answer
44 views

transfer ether from smart contract to my wallet

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
2answers
41 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
1answer
38 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
0answers
19 views

Which are the best and most secure multisend contract? [duplicate]

I am making a system where I need to withdraw funds from 1 wallet to 2 or more wallets at the same time. I have been looking for the solution to this problem, it seems like Multisend is the way to do ...
0
votes
1answer
29 views

I am having trouble transferring my coin from coin-base wallet to coin-base pro

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 ...
2
votes
2answers
647 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
0answers
45 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 ...
0
votes
0answers
36 views

TransactionException: Transaction has failed with status: 0x0. Gas used: 50434. (not-enough gas?)

I’m new to ethereum and have small experiance with write contracts (in solidity). I think I have a very simple question but is very hard for me. I wrote a contract to manage erc20 tokens. Most ...
1
vote
1answer
101 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 ...