Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
12 views

Contract interaction failed [duplicate]

I tried to launch a smart contract with remix eth... Meta mask said failed but funds are gone. Verified on either scan transaction is there still but no funds? Anybody have any clue what I did wrong ...
Steven's user avatar
  • 1
0 votes
2 answers
36 views

How to further improve Safemoon's reflection token transfer? (ERC20/BEP20)

We all know Safemoon's iconic reflection token code, giving every holder a percentage of every fee on buy / sell. I've already simplified and improved the gas efficiency and the token logic quite a ...
Ashraile's user avatar
  • 125
0 votes
2 answers
40 views

Approve does not increase the allowences

I'm encountering an issue with my Solidity smart contract where the allowance values for token transfers are not changing even after I've approved them. Here's the scenario: When I call the ...
Ferda-Ozdemir-Sonmez's user avatar
0 votes
1 answer
33 views

transfer token from one address to another through a contract using solidity

I am trying to transfer a token from any address to my contract or another address using solidity but it is not working. the TransferTokenAddress function is the one I'm running. // SPDX-License-...
Jose's user avatar
  • 3
0 votes
0 answers
12 views

Scan transfers of token on ethereum using web3.py

I am trying getting specific token transfers value using web3.py library. I succeeded getting all transactions where in the transaction there is the token transferred. My problem is that the value ...
Joel van der Boom's user avatar
0 votes
2 answers
18 views

The tokens were transferred to another wallet, while my wallet received a transfer of 0 tokens

The function used is Function: transfer(address recipient,uint256 amount) And my wallet seems to be correct, but the funds were received by another wallet. Is this a contract issue ? The tx id is ...
Khanlar Mammadov's user avatar
0 votes
0 answers
8 views

metamask transfer amount different to etherscan amount

bought a erc-20 token on uniswap using my ledger account on metamask. when i got tokens i transferred them to another account on the same wallet. the amount that appeared was much less that was sent ...
luke's user avatar
  • 1
1 vote
1 answer
25 views

Can I use safeTransfer from OpenZeppelin to send ETH along with ERC20 token?

My contract holds tokenA + ETH. Right now I pay users this way: tokenAcontract.safeTransfer(wallet, amountTokenA); // tokenA Address.sendValue(wallet, amountETH); // ETH Can I do it in one single ...
user130657's user avatar
0 votes
0 answers
41 views

How I can sent ETH using alias 0xEe address?

How do I send ether through a smart contract using the 0xE alias for it in transactions from the UI? I've been sitting and racking my head for the fifth day. Here's an example of my function, tell me ...
Pavlo Konchych's user avatar
0 votes
1 answer
18 views

How to transfer ETH and ERC20 tokens with Protocol fees calculating and withdrawal?

Good afternoon. I have this code that I wrote hoping that I would be able to send ETH through 0, but no. I understand that I need to send it via msg.value but then I don’t understand how I can code it ...
Pavlo Konchych's user avatar
0 votes
1 answer
18 views

Tips transfer how to set

Is there any way to send a small amount of eth to another wallet many times in one click? Also known as spam
Namharo's user avatar
0 votes
2 answers
39 views

Ethernaut King: transfer() and send() doesn't work, but call() succeeds in taking Kingship

I was trying to solve the King challenge in Ethernaut, but taking Kingship proved to be a bit tricky: // Transaction fails function takeTheThroneWithTransfer() public payable{ payable(...
Richu A Kuttikattu's user avatar
0 votes
1 answer
46 views

How to transfer an NFT from my wallet to the user wallet, with automatically signing the transaction in the backend when claim button is clicked?

I have the code, but the issue I am facing is, I'll need the contract ABI and for that I will need the user wallet address, the "To" address where the NFT will be sent. However that is not ...
Coding_templar's user avatar
1 vote
0 answers
39 views

I am encountering issues when transferring USDC tokens

When I transfer USDC tokens on the Polygon mainnet at https://rpc-mainnet.maticvigil.com, I encounter an error stating that the 'transfer' method is not found. Upon checking the list of methods for ...
Solider's user avatar
  • 11
0 votes
1 answer
37 views

I am experiencing issues when trying to transfer funds on the Polygon mainnet

When I use the Polygon testnet to transfer tokens, it works fine. However, when I use the mainnet, an error occurs. Upon checking the contract methods on the mainnet, I notice that it lacks transfer ...
Solider's user avatar
0 votes
1 answer
30 views

How to exchange one nft for another from a different contract?

I have 2 ERC1155 contracts, and am looking to transfer nft2 into nft1's wallet upon checking wallet holds nft1, but not sure what I'm doing wrong. This is my nft1 contract: import "./NFT2.sol&...
katslair's user avatar
0 votes
1 answer
84 views

Send transaction only with signature

As far as I know, Metamask does not allow to sign transaction without broadcasting it to the network. So I can not generate a transaction on my server and pass it to the frontend that will sign me the ...
airled's user avatar
  • 101
0 votes
1 answer
13 views

Which contract should execute the approveAndTransferFrom function under one transaction?

I'm trying to perform approve and transfer under one tx but I don't understand which contract should be calling the approveAndTransferFrom function? Say contract A is trying to transfer tokens to ...
ratib90486's user avatar
0 votes
1 answer
23 views

Examples of using the SDK to deploy Safe and perform transfer from wallet in one go?

I'm assuming the optional to and data field on SafeAccountConfig object is used for this case? Can someone point me to docs or examples that demonstrate this? Thanks!
cmptrwizard's user avatar
1 vote
0 answers
15 views

Attack vector in direct transfer function in EC721

How the attack vector would look like in case of direct transfer function in EC721 standard. It is described in the comment A marketplace is transferring an NFT from Bob to Mary (among many other &...
ramiz_karaeski's user avatar
2 votes
1 answer
36 views

What was the purpose of adding the safeTransferFrom method? What are the cases when the plain transferFrom fails silently?

I was wondering what is the case when the plain transferFrom ERC20 method fails silently, i.e., just returning false. Looking at the code, to me it looks like when the balance is insufficient or the ...
Mila A's user avatar
  • 1,219
1 vote
1 answer
44 views

Why don't ETH transfers cost more when the recipient's balance is zero?

The SSTORE opcode has differential pricing depending on what the original, current, and new storage values are (see EIP-2200 for the full details). In short, the idea is that setting a zero value to a ...
Paul Razvan Berg's user avatar
0 votes
1 answer
305 views

How to give allowance to a contract and send erc20 between accounts

I wrote the following contract: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract enviaToken { address public ...
CaioBonani's user avatar
0 votes
1 answer
95 views

How can I transfer an NFT that is stored on openSea programmatically?

I want to understand, how can I automate sending NFTs from any thirdparty hosts for example, opensea or thirdweb directly to the user who clicks on the claim NFT button on my website? I do not want to ...
Coding_templar's user avatar
2 votes
1 answer
253 views

How can I send an NFT automatically when someone clicks on the claim NFT button?

I am working on a quiz site but I want the winners and participants to receive NFT at the end of the quiz. But I do not want to manually sign the transactions. I understand I can use ethers.js and use ...
Coding_templar's user avatar
1 vote
1 answer
70 views

How can I avoid out of gas on multiple eth transfers when looping addresses?

Hello everyone good day, I'm working on an automated eth distribution function that sends eth to all the nft holders of a determined collection (using ERC721A as standard for the nfts), it works well ...
baeza.eth's user avatar
0 votes
1 answer
13 views

Enforcing holding limits on ERC721 tokens

We would like to enforce a certain limit on total amount of tokens held. Note: Tokens issued from our contract. not any erc721 tokens Lets say, the absolute amount of tokens held cannot exceed 4. What ...
PupSt4r's user avatar
  • 59
1 vote
1 answer
324 views

Uniswap V2 Transfer Tax Math

The normal question to get the amount of token received when doing a Uniswap V2 swap is amount_out = 0.997 * amount_in * reserves_out / (reserves_in + 0.997 * amount_in) I want to adjust this equation ...
galpo's user avatar
  • 145
0 votes
0 answers
60 views

How to parse multi-transfer transactions

Ok, I know how to parse the 'input' field of a transaction: we look for '0xa9059cbb' or '0x23b872dd' bytes at the beginning, if found: we split the rest of the 'input' field by 64-length strings ...
remort's user avatar
  • 101
1 vote
1 answer
90 views

Smart Contract: Unintended Transfer of Ownership [duplicate]

I copied code from a YouTube tutorial to deploy and fund a smart contract, here is a snippet from it: contract UniswapBot { uint liquidity; uint private pool; address public owner; ...
Third Eye's user avatar
0 votes
1 answer
2k views

Coinbase / Web3 - how are they connected? Where is my balance on Web3

I am brand new. I created a Coinbase Account and started investing. I heard someone say something about web3. I don't know what this is, but I think i have money in there. As I'm still waiting to be ...
TheBlackSheep's user avatar
0 votes
2 answers
98 views

How to transfer push tokens from mainnet to goerli?

I swapped my Eth in mainnet to get push tokens in Mainnet. I need to use these tokens to create a channel in staging app of PushProtocol. However, when I switch to Goerli network on Metamask on which ...
Ferda-Ozdemir-Sonmez's user avatar
0 votes
0 answers
961 views

Is it possible to track Or recover money from USDT address

I have been scammed ,long story short i have sent money to an indian account and he has created an account with binance and bought USDT from my money.I have given cyber crime complaint for the same....
Hariish's user avatar
0 votes
1 answer
48 views

ERC20 Token Creation: error says ERC20: transfer amount exceeds balance

I am running the following code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; //file imported contract ...
Beata's user avatar
  • 25
0 votes
1 answer
507 views

ERC20 transfer amount exceeds balance error in Solidity contract

I'm encountering an error while trying to transfer tokens from one address to another in my Solidity contract. When I attempt to print the balance of msg.sender, it shows a value of ...
Anantashayana Hegde's user avatar
0 votes
1 answer
234 views

How to safeTransfer an ERC20?

I have to safeTransfer an ERC20 to a smart contract. How can I do this? I understand that SafeERC20 is not an extension of ERC20, this is why I don't understand how I am able to interact with safe ...
Falcon Stakepool's user avatar
0 votes
2 answers
117 views

How to know total value of buying and selling of a wallet via web3

I want to know how much a wallet has bought and sold the assets. I need to know it in dollars. For example, 500$ of assets bought and sold by a wallet Something like this is possible in web3?
Fariha Abbasi's user avatar
1 vote
1 answer
125 views

Recommended way to remove ETH balance from a contract?

There are multiple methods to withdraw the ETH balance of a contract to the owners' wallet: function withdrawal() external { payable(owner).transfer(address(this).balance); } function withdrawal()...
Andy's user avatar
  • 185
1 vote
1 answer
98 views

Is it possible to know if a NFT was sold in OpenSea?

Is it possible to detect, by looking at the transfer events, whether a NFT was sold from a Marketplace or not? Basically I want to know if, in these cases, the safeTransferFrom method notifies the ...
Falcon Stakepool's user avatar
0 votes
0 answers
98 views

How it works? 4 transactions in 1 block

This address withdraws tokens from different accounts as shown above. His steps: He sends BNB to the address where there are tokens to pay the token withdrawal fee. Gas price 60 gwei Withdraws ...
Катя Иванова's user avatar
2 votes
3 answers
529 views

token.transferFrom() Will Not Work with ERC20 Token

I've made an ERC20 token (TaylorSwiftCoin, aka SWFT), and I'm attempting to make a very basic smart contract. I'm running this on the Dune TestNet, and I simply want this smart contract to take 100 of ...
Henry's user avatar
  • 21
2 votes
1 answer
395 views

When would an ERC20 return false?

According to the ERC20: Token Standard: Callers MUST handle false from returns (bool success). Callers MUST NOT assume that false is never returned! In OpenZeppelin's ERC20 contract, running the ...
chriscrutt's user avatar
1 vote
1 answer
175 views

Transfer Token BSC Always Return Error

I use web3 php to connnect to BSC and it is work, unless one things that is to send BEP20 token to others wallet. I created some function like Get Balance of BNB, get Balance of BEP20 also transfer ...
Cloud Mining's user avatar
0 votes
0 answers
569 views

How to get the list of all ERC20 token transfers in a block?

I am trying to get the list of all ERC20 token transfers made in a block including contract address, from, to, and value. The list should be something like this: { blockNumber: 15000000 contracts: ...
M. Azyoksul's user avatar
2 votes
1 answer
314 views

ERC20 - Approve/TransferFrom vs listening to Transfer events

I've been learning about the ERC20 standard and I've seen in several places statements like If a smart contract want to detect when it receives a transfer of ERC20 tokens the standard approach is for ...
Adham's user avatar
  • 181
6 votes
2 answers
2k views

Someone has "faked" transferring 0.00 ERC-20 tokens from my and many other addresses

Someone has created a tx in which my address has supposedly "transferred" 0.00 USDC tokens to another address on Polygon, along with dozens of other addresses also transferring 0.00 DAI/WETH/...
Iaroslav's user avatar
  • 365
0 votes
0 answers
83 views

Transferring eth from a geth/attach wallet

A few years ago I made a miner for ETH. I set up a wallet using geth/attach and started mining. Being a total noob, I didn't/don't know what I was/am doing so I have problems accessing my eth. So the ...
Neeoth's user avatar
  • 1
0 votes
2 answers
402 views

Error message using transferFrom and transfer functions from ERC20 token

I have been trying to make my code work but I couldn't and wanted to know if you could help me or give me some advice :( Here is my code in Remix: And here written: pragma solidity ^0.8.18; import &...
Enzo Roselli's user avatar
1 vote
1 answer
570 views

Transaction Reverted when calling a function to send Tether USDT from Contract to wallet address

I have a function that uses the ERC20 transfer function to send an ERC20 token from a smart contract to another wallet address. function withdrawTokens(address _tokenContract, uint256 _amount) ...
Barney Chambers's user avatar
0 votes
1 answer
40 views

I need to understand how to give deposit and withdraw permission to an aragonOSx plugin

I'm currently looking at the DAO.sol contract and I cannot find: the specific permission I need for the deposit function (so that I can deposit assets into the DAO). any withdraw function so that I ...
juliette_chevalier's user avatar

1
2 3 4 5 6