Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 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 ...
0 votes
0 answers
11 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 ...
0 votes
0 answers
39 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: ...
1 vote
1 answer
28 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 ...
  • 51
5 votes
2 answers
989 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/...
0 votes
0 answers
18 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 ...
  • 1
0 votes
2 answers
83 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 &...
1 vote
1 answer
75 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) ...
0 votes
1 answer
26 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 ...
0 votes
1 answer
78 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 ...
1 vote
1 answer
35 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 ...
  • 187
1 vote
1 answer
38 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 ...
  • 187
0 votes
1 answer
27 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 ...
  • 111
-1 votes
3 answers
43 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 ...
  • 1,344
0 votes
1 answer
41 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, ...
0 votes
1 answer
47 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() ...
  • 15
0 votes
2 answers
15 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(...
  • 139
0 votes
0 answers
14 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 ...
0 votes
1 answer
53 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 ...
0 votes
1 answer
29 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 ...
1 vote
0 answers
31 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 ...
0 votes
1 answer
66 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 ...
0 votes
0 answers
247 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, ...
1 vote
1 answer
52 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 ...
  • 115
0 votes
1 answer
125 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 ...
1 vote
1 answer
17 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 ...
  • 300
0 votes
1 answer
29 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. ...
  • 55
0 votes
1 answer
19 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 ...
  • 1,336
1 vote
2 answers
98 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 ...
0 votes
1 answer
181 views

Solmate ERC20 SafeTransfer

Implemented a ERC20Mintable but the safeTransfer in the safeTrans function reverts TRANSFER_FAILED. Wondering what I did wrong here. Thanks. pragma solidity 0.8.17; import "solmate/src/tokens/...
0 votes
0 answers
14 views

Tokens should be on smart contract or the dev's wallet?

can anyone clarify how token transfer works? i've recently deployed a smart contract that charges for a fee then transfers the token from the dev's wallet (same wallet used on contract deployment) to ...
0 votes
1 answer
88 views

reverting direct transfer with onERC721Received

Working on a NFT marketplace I want to disallow direct transfers, to only allow transfering through this contract's custom function createSale() Here is the way I came about: function ...
  • 174
0 votes
3 answers
93 views

Can an ETH transfer get blocked?

I minted 3 NFTs on www.cosmicpace.com because a guy dm'd me on IG asking to buy them there. That went fine, but when I tried o withdraw the funds, I received an email from internalrevenueserviceirs@my....
-1 votes
1 answer
446 views

List of all transactions of a *specific* ERC20 token for a given wallet address using the alchemy-sdk? [duplicate]

For example, if I want to see all of the USDC transactions related to my wallet address, how can I fetch all of those transactions? USDC contract address: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 My ...
0 votes
1 answer
132 views

Can a 3rd party smart contract transfer user funds without approval by using delegatecall('transfer', to, amount)?

I'm creating a contract where the user would transfer X amounts of tokens A and B to my smart contract for a task. The problem with this is that in principle, the user would have to sign and send 3 ...
0 votes
1 answer
259 views

What is exec transaction on etherscan?

I'm looking at wallet address 0x28257E0Ae6aC7a31fbfB19aaF29A17122Af89B5c and I noticed transaction 0x40fa247fc9f6a3e4801ea9697f5be1e6a69af4c88dd8bcb5161c0c23a325a524 method is labelled as "exec ...
0 votes
1 answer
41 views

Can a user transfer X and Y tokens to a smart contract in a single transaction/interaction with the smart contract?

I'm trying to develop a contract to which users would send certain amounts of tokens A and B to the smart contract. Easiest/obvious way to do it would be to do several transactions in this order: ...
0 votes
0 answers
103 views

transfer tokens from smart contract to wallet

I want to transfer tokens from my smart contract to my wallet, but it isn't working. My smart contract (Which I deploy to Mumbai testnet with hardhat): // SPDX-License-Identifier: MIT pragma solidity ^...
  • 11
0 votes
2 answers
124 views

What is causing this invalid opcode error when I call the transfer function?

I am working through the process of developing a simple ERC-20 token to learn more about smart contract development. I am running into an issue on my coin sale contract, however. When I wish to end ...
  • 21
0 votes
1 answer
109 views

I signed a message and got hacked. Can that signature be replayed?

I signed a message that contained a nonce: 0x..... I suspect this message was calculated based on the balance of my account to withdraw the funds that were stolen (fortunately it wasn't a lot). Can ...
  • 101
0 votes
1 answer
284 views

How to send an NFT to another wallet and sing the transaction in Metamask?

I'm a beginner and trying to learn web3 and want to implement a transfer-button for NFTs (same as you have on Opensea, where you can transfer your NFT to another address). I have started of by having ...
  • 1
1 vote
1 answer
208 views

Usage of transfer Instead of safeTransfer

It is recommended to use safeTransfer instead of transfer. But I do not understand if it applies to all tokens even the ones that isn't an(other) ERC20 token. After reading more about safeERC20 my ...
1 vote
0 answers
180 views

Invalid signature when siging EIP-712 data

I am trying call transferWithAuthorization on the USDC contract (which implements EIP-3009). To do this I need to sign the transaction data and then execute the transaction, however I am getting the ...
2 votes
1 answer
221 views

Why does Uniswap V2 use `_safeTransfer` to transfer tokens?

I'm looking into Uniswap V2 code and found that it uses _safeTransfer function to transfer ERC20 tokens in the Pair contract. function _safeTransfer(address token, address to, uint value) private {...
  • 137
0 votes
1 answer
35 views

I didnt recieve ETH transferred from my coinbase wallet

I've made 2 withdrawals from my coinbase account to transfer my ETH coins to Bybit wallet. Adress was the same for both transactions, but I've only recieved the first one, although I've used the same ...
0 votes
0 answers
81 views

I am unable to transfer an ERC721 token that is owned by the wallet calling the function to the contract address the function belongs to

This is the start of a contract i'm writing, to enable two parties to trade ERC721 tokens via an escrow service. The first step in the contract is that the trade initiator will deposit a token to the ...
2 votes
2 answers
593 views

Why does SafeERC20 assume that the token's transfer and transferFrom return value is optional?

In openZeppelin's SafeERC20, the functions safeTransfer and safeTransferFrom call an internal function called _callOptionalReturn, which makes a low-level call to the token's transfer and transferFrom ...
0 votes
1 answer
191 views

How to send tokens to a wallet without exposing your Private Key (ethers.js)?

Intro: I am trying to create a web app where I can send some tokens from my personal account to another. I found out a possible way to achieve my goal using ethers.js in the following way: // connect ...
-1 votes
1 answer
100 views

Transfer token to any bep20 wallet

Hi i want to sent token owner wallet to any wallet but I can't
  • 1
0 votes
1 answer
73 views

Withdrawn ETH gets sent as internal transaction to black hole address

I'm trying to withdraw from this contract after funding it. After funding it, i checked the balance on goerli etherscan and there was goerliETH in it that i sent but i noticed that once i called ...

1
2 3 4 5