Questions tagged [transfer]
The transfer tag has no usage guidance.
241
questions
0
votes
1
answer
22
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 ...
0
votes
1
answer
25
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&...
0
votes
1
answer
36
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 ...
0
votes
1
answer
12
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 ...
0
votes
1
answer
13
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!
1
vote
0
answers
9
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 &...
2
votes
1
answer
26
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 ...
1
vote
1
answer
36
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 ...
0
votes
1
answer
42
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 ...
0
votes
1
answer
39
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 ...
2
votes
1
answer
75
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 ...
1
vote
1
answer
60
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 ...
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 ...
1
vote
1
answer
135
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 ...
0
votes
0
answers
31
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 ...
1
vote
1
answer
58
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;
...
0
votes
1
answer
335
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 ...
0
votes
2
answers
39
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 ...
0
votes
0
answers
369
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....
0
votes
1
answer
31
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 ...
0
votes
1
answer
111
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 ...
0
votes
1
answer
82
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 ...
0
votes
2
answers
73
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?
1
vote
1
answer
77
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()...
1
vote
1
answer
54
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 ...
0
votes
0
answers
77
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 ...
0
votes
0
answers
49
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. ...
0
votes
0
answers
21
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 ...
2
votes
3
answers
392
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 ...
1
vote
1
answer
246
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 ...
1
vote
0
answers
109
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
438
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: ...
2
votes
1
answer
189
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 ...
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/...
0
votes
0
answers
51
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 ...
0
votes
2
answers
248
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
369
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
33
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
90
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 ...
2
votes
1
answer
83
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 ...
1
vote
1
answer
143
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 ...
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 ...
-1
votes
3
answers
59
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
vote
1
answer
145
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
105
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() ...
1
vote
2
answers
24
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(...
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 ...
0
votes
1
answer
161
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
57
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
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 ...