Questions tagged [transfer]
The transfer tag has no usage guidance.
224
questions
0
votes
2
answers
14
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
2
answers
276
views
Is there any way to transfer ETH in a contract function just like transferFrom for ERC20 tokens?
I know that you can request an authorization and the transfer of ERC20 tokens from a contract user to another address with approval() and transferFrom().
But it here any equivalent to do the same for ...
1
vote
1
answer
21
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 ...
1
vote
1
answer
26
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()...
0
votes
3
answers
1k
views
Transfer ERC721 tokens in BULK to single address
I want to know what is the gas effective manner to code to transfer many (e.g 1000) ERC721 tokens to a single address.
I have tried the way below but I want something more efficient.
function ...
0
votes
0
answers
39
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
13
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
11
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
112
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
311
views
Possible to send ether to another smart contract without function call?
I've created a contract, let's call it Contract A that mints an NFT when it receives .001 Ether.
This is the receive() function in Contract A:
receive() external payable {
require(
...
0
votes
1
answer
2k
views
transfer Erc-20 tokens from an adress without Eth and pay the gas from another adress or destination adress
as the title completely explains I want to transfer some erc-20 tokens from one account that has no eth in it to another how can I do so without need to deposit some eth to that account?
Is it ...
1
vote
4
answers
406
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 ...
2
votes
2
answers
524
views
Send ETH using ethersjs without private key
Most tutorials I googled need wallet's private key to send ETH, such as this. How can we send ETH without knowing the private key using ethersjs? So, that user can just call their MetaMask and send.
1
vote
1
answer
41
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
27
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
1
answer
404
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 ...
0
votes
1
answer
413
views
Using signature to send NFT
is it possible to use signatures (EIP-712) to execute transactions.
For example Person A gives his signature to a Smart Contract, to transfer A's NFT.
Now there is person B, which wants to buy the NFT....
0
votes
1
answer
346
views
payments ( pre set value) in solidity
I am developing a movie renting smart contract where the owner can add new movies, clients can search movies and pay for the movies they select. Adding and searching is working to my liking.
The ...
0
votes
0
answers
157
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
75
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 ...
-1
votes
3
answers
45
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 ...
0
votes
1
answer
101
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
59
views
Subscriptions - Recurring payments (Fiat to Crypto wallet)
I checked several platforms (BitPay, Stripe, Plaid etc..) but none seem to enable me to setup a recurring payment from fiat to a crypto wallet the same way you would do it on Netflix with your bank ...
0
votes
1
answer
717
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 ...
5
votes
2
answers
1k
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
1
answer
26
views
EIP4626 Vault Deposit "SafeERC20: low-level call failed"
I am trying to write a foundry script that deposits the asset token into a newly deployed EIP4626 Yearn vault. However, when I try to call the EIP4626 "deposit(uint256)" function on the ...
0
votes
1
answer
748
views
Getting Fail with error 'TransferHelper: TRANSFER_FROM_FAILED' while trying to swap part of tokens during transfer
I have created ERC20 token and want to modify transfer function so that swaps part of transferring amount to another token.
I'm using OpenZeppelin ERC20 contract.
// SPDX-License-Identifier: MIT
// ...
3
votes
2
answers
1k
views
Front End: Transfer (send) your NFTs (ERC-721) using Ethers.js or Wagmi.sh
I'm a front-end dev getting my feet wet in the crypto nft space.
I built a simple site for displaying all the NFTs in your wallet. Users can connect to the page using Rainbowkit (built on top of WAGMI,...
0
votes
2
answers
122
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 &...
0
votes
0
answers
27
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
1k
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 ...
1
vote
1
answer
618
views
Transferring ERC721 tokens with web3j using an operator
I've been struggling using web3j (the web 3 Java library, not JS) transferring ERC721 tokens from one user to another, using an operator. I get that we need to approve the operator from the user that ...
1
vote
1
answer
131
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
27
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
2k
views
execution reverted: "ERC20: insufficient allowance" on transfer method (not transferFrom)
I'm developing a Smart Contract that transfer tokens that are owned by the Smart Contract itself. The function to do that is pretty simple:
pragma solidity 0.8.1;
import "@openzeppelin/contracts/...
0
votes
1
answer
83
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
50
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
646
views
How to call .increaseAllowance() from another token
I'm deploying a contract that is the owner of a token. In that contract i want to say that the token increaseAllowance to msg.sender and the amount that msg.send have putted in arguments of the ...
1
vote
1
answer
67
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
32
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 ...
0
votes
1
answer
52
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 ...
4
votes
2
answers
4k
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?
1
vote
2
answers
18
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(...
1
vote
1
answer
81
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
56
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() ...
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
81
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
42
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
34
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 ...
1
vote
0
answers
424
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,
...