Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 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
18 views

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

I want to understand, how can 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
21 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
54 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
12 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
  • 47
1 vote
1 answer
43 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
  • 43
0 votes
0 answers
19 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
41 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
26 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
22 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
123 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
30 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
57 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
40 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
59 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
50 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
40 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
71 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
0 votes
0 answers
35 views

Tool or service to sweep extract all coins from a private key on multiple L2 chains?

Over the years I have a bunch of accumulated addresses on Ethereum and different L2's (Arbitrum, Matic, BSC, etc...). Currently I want to just consolidate all these dust amounts into a single address. ...
Patoshi パトシ's user avatar
0 votes
0 answers
19 views

Does vyper's `send` function have the same issue as solidity's `transfer`?

In solidity it's bad practice to use the transfer keyword because of how gas costs are subject to change, and the transfer function has it's gas costs hard-coded. Does vyper's send suffer the same ...
Patrick Collins's user avatar
2 votes
3 answers
280 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
1 vote
1 answer
163 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
0 answers
81 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
358 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
141 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
  • 71
5 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
  • 279
0 votes
0 answers
40 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
196 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
267 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
29 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
0 votes
1 answer
89 views

Transaction is getting reverted in the `refundToInsurer()` function call

The deployment of InsuranceProvider is working fine and the calling of newContract() with the required parameters is successfully creating/deploying the InsuranceConsumer contract. Even, the ...
SYED ASAD KAZMI's user avatar
2 votes
1 answer
69 views

call a function in the same contract

i have a contract who containt a function onTokenTransfer(address _sender, uint256 _fee, bytes memory _data), when i transfer some ERC-20 Token using ERC-677 function transferAndCall, the function ...
noro meb's user avatar
  • 328
1 vote
1 answer
115 views

ERC677 transferAndCall

i want to send some LINK to a contract B from a contract A, and in the same function call a function in contract B, im using transferAndCall(address _to, uint _value, bytes _data) function in the ...
noro meb's user avatar
  • 328
0 votes
1 answer
33 views

Kraken Japan is shutting down on the 31st Jan 2023, How to get staked Ethereum out?

Kraken (kraken.com) announced on the 28th of December that it's shutting down its Japan services. All accounts will be closed and any remaining funds will need to be retrieved from the Govt. I have ...
ussher's user avatar
  • 111
-1 votes
3 answers
54 views

How to prove to someone that you're the owner of an Ethereum wallet remotely?

Say someone you just met, Person A, claims that they had sent crypto to a scammer, Person B, and was defrauded by that scammer. Now Person A wants to get the money back, but has to prove that they are ...
user610620's user avatar
  • 1,446
1 vote
1 answer
125 views

How to check if safeTransferFrom succeeded?

safeTransferFrom function doesn't return any value: function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ...
Falcon Stakepool's user avatar
0 votes
1 answer
71 views

How to understand the difference between transfer and function call using assembly call(g,a,v,in,insize,out,outsize)

I understand that if there is an external function call, it will use all 7 parameters of the call(g,a,v,in,insize,out,outsize). However, I got a question I know low-level transfers like .transfer() ...
Yu.Pan's user avatar
  • 15
1 vote
2 answers
19 views

Try to transfer funds if they're available in solidity

I'd like to try to refund a call. However: If my contract doesn't have enough native tokens The sender is not payable, I don't want to fail. I've tried it in the following way: function performLoop(...
Ritzy Dev's user avatar
  • 271
0 votes
0 answers
15 views

Transfer fail, from Ledger-Nano-wallet to bisonapp.com

I have sent ETH from Ledger Nano to BISONApp wallet. The transaction was confirmed. Unfortunately nothing arrived on the new wallet. Can anyone look inside the transaction history and tell why? I am ...
laborheld's user avatar
0 votes
1 answer
122 views

How to transfer all the coins that an account may have?

I have a system where there'll be dozens of accounts, for ETH and tokens. I'll have access to the private keys of those. From time to time I'll need to withdraw all of the coins in each account, in ...
Camila326's user avatar
0 votes
1 answer
53 views

How to track for certain all addresses affected by a transaction?

So I am asking this question because I recently learnt about what is called "Internal Transactions". I was actually reading the answer here and from this I understand that a transaction ...
Finlay Weber's user avatar
1 vote
0 answers
36 views

How to identify where coin/token value is changed

I'd like to build an algorithm that analyzes value creation, transfer and destruction on a blockchain (such as new ETH minted, ETH gas burned, ERC-20 tokens transferred, etc.). Assuming I have a ...
Michael C's user avatar
0 votes
1 answer
158 views

How to transfer the ownership of a smart contract deployed using a proxy?

I have deployed a smart contract, with a proxy, using a factory. I want now to transfer the ownership of this smart contract every time an ERC721 gets transferred. For that, I am using ...
Falcon Stakepool's user avatar
1 vote
0 answers
596 views

How to override _beforeTokenTransfer correctly?

I have an ERC721Upgradeable contract that has a predefined _beforeTokenTransfer method. I want to override it by giving it extra features, like this: function _beforeTokenTransfer( address from, ...
Falcon Stakepool's user avatar
1 vote
1 answer
107 views

What's a transfer transaction having the same sender and receiver addresses?

I'm currently searching for transactions happening on a set of addresses on BSC network and i found the following transaction: 0xc6d3fc6a28abdc51341cf765e4a3a9879e032ff271047cd32e9ecd86c1733522 What's ...
zfou's user avatar
  • 115
0 votes
1 answer
445 views

How many transfer events are there in Ethereum?

So I learnt that ERC20 tokens have Transfer and TransferFrom event. From my understanding Transfer event is when a transaction comes from an address to the smart contract instructing the transfer of ...
Finlay Weber's user avatar
1 vote
1 answer
21 views

What happened to these tokens?

I send some Matic token in one of my wallets to the other for cover fee of a transaction (0.05)matic but as soon as transfer succeeded, this amount transferred to another address, without any approval ...
Alireza's user avatar
  • 350
0 votes
1 answer
42 views

How to match a transaction of incoming tx on blockchain with the one in DB?

I'm working on a TG bot used for exchange of crypto <-> fiat. Each customer gets assigned a single wallet, once, which he is to send coins to, however he wants to, priour to receiving fiat. ...
Kum's user avatar
  • 75
0 votes
1 answer
24 views

Truffle Console: Can't 'transfer' Ether from one SC to another

I am trying to execute the following sender SC to send funds to the receiver SC below it: // SPDX-License-Identifier: MIT pragma solidity ^0.5.16; contract OwnableWallet {//sender address payable ...
zak100's user avatar
  • 1,406
1 vote
2 answers
216 views

How do I withdraw/transfer USDC back into my wallet from my copied/created contract? [duplicate]

I copied/created a front running bot contract that has a WETH contract address. I made a mistake and sent USDC to the contract. Can anyone advise how to get the USDC funds sent back to my wallet ...
user113381's user avatar

1
2 3 4 5