Questions tagged [transfer]

The tag has no usage guidance.

108 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
930 views

What is the difference between ERC-2665 and what is proposed in EIP-2981? Royalties vs Transfer Fee

There is an EIP for Royalty standards. But there is already a ERC for a Transfer Fee Could ERC-2665 be used to implement royalties across all market places for NFT? What is the difference between ...
Bard Ionson's user avatar
3 votes
0 answers
545 views

Bypassing metamask notice about "Insufficient funds for gas"

I wish to make a transfer of the remaining ETH from one wallet to an other. Trying to do it from metamask, it prevents me to do so with the "Insufficient funds for gas" error. Event though ...
challet's user avatar
  • 131
2 votes
1 answer
143 views

Solidity Clones Contracts: How to save deployer as a storage variable which can be called in created clones?

I am using the OpenZeppelin Clones Library so that users of my dapp can create clones of my implementation contract. My dapp will be following the EIP-1167 standard. For functionality, I will need to ...
ethereumboy's user avatar
2 votes
2 answers
710 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.
ratib90486's user avatar
1 vote
1 answer
15 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
1 vote
0 answers
27 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
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
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
1 vote
1 answer
64 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
1 vote
1 answer
241 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
  • 45
1 vote
1 answer
155 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
1 vote
0 answers
38 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
1 vote
0 answers
854 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
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
1 vote
0 answers
329 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 ...
ljenkins's user avatar
1 vote
1 answer
64 views

How can I know wether a token can be transfered before aping in?

Other than some speficif tools (tokensniffer, honeypot, poocoin...) and project-related websites, how can I spot in a smart contract whether a token has any restriction (lock-up period, volume etc...) ...
Henryctus's user avatar
1 vote
1 answer
102 views

Cannot sell more than 1% of a token on a single transaction (BSC)

I bought this token 0x096901cE2C5501eAE23AF2D3F6e465dE98BFc645 but it seems that I cannot sell more than 1% of it on a single transaction while a lot of adresses performed bigger transactions. I am ...
Henryctus's user avatar
1 vote
1 answer
506 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( ...
juju's user avatar
  • 11
1 vote
1 answer
194 views

How i can send my Ethereum from kovan test network to Ethereum main network

I have Ethereum in metamask which is in kovan test network so now I want to withdraw them so I want send Ethereum in Ethereum main network so I send to any crypto application
Gaurav Bishnoi's user avatar
1 vote
2 answers
547 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 ...
Sebastien VAX's user avatar
1 vote
0 answers
130 views

IERC20 safeTransfer sender issue

0 I need to transfer some amount of an especific token (100) when the "father"(TTDT01) token is used.It is some kind of tax on a "child" token (ttdttoken) when the "father&...
laxtnog's user avatar
  • 11
1 vote
2 answers
255 views

transfer money without specifying the amount

I have a list of products, each product has a price. I would like to create a function that can be called by a user and automatically checks whether the user's balance has enough money to buy the ...
sono's user avatar
  • 113
1 vote
1 answer
706 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 ...
zain101's user avatar
  • 11
1 vote
0 answers
71 views

I have a question about how to tell whether tx is 'transfer', 'call', 'create' or 'destruct'

I want to distinguish between the types of Ethereum TX. In the Ethercan, That is distinguish tx type like, transfer, contract create, contract destruct, contract call and etc... so, I check trace data ...
Minwoo's user avatar
  • 61
1 vote
1 answer
330 views

Cannot swapExactTokensForETH inside transfer of my token

I'm trying to create a token (calling it MyToken in this question) that on each transfer, it takes a fee from the transfer amount and does the following: calling the uniswap router to exchange this ...
xcsob's user avatar
  • 167
1 vote
0 answers
843 views

How to transfer an ERC1155 Matic token using Node.js?

I'm trying to write a Node script that will transfer an ERC1155 token on the Matic network from my address to someone else's address. Here's an example token: https://opensea.io/assets/matic/...
Kane's user avatar
  • 111
1 vote
1 answer
726 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 ...
The Chimpy Dev's user avatar
1 vote
0 answers
259 views

Transferring ERC20 token to a contract using custom function

I have a couple of questions related to transferring ERC20 token to a contract. I am developing a protocol that has its own token to provide incentive mechanisms. For certain operations I need to lock ...
DN_Euler's user avatar
1 vote
0 answers
332 views

Technical Question Ether to BNB transfer

I attempted to swap funds from Ethereum to BNB via the Binance Bridge feature and pancake swap via my Metamask. I was trying to send the ETH to myself. I did not have any BNB to do the transaction, ...
Femcrypto's user avatar
1 vote
0 answers
372 views

Revert error when sending ERC20 token on Ethereum mainnet fork

I am trying to send an ERC token (USDC) on the Ethereum Mainnet fork made with ganache-cli --fork. The transfer is made from the unlocked account that has both ETH and USDC balances available to the ...
Mttank's user avatar
  • 81
1 vote
4 answers
442 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 ...
YoungKidWarrior's user avatar
0 votes
0 answers
31 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
17 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
1 answer
29 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
61 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
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 ...
ratib90486's user avatar
0 votes
1 answer
21 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
0 votes
1 answer
152 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
69 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
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
  • 49
0 votes
0 answers
49 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
0 votes
1 answer
1k 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
0 answers
739 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
0 answers
88 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
67 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
29 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
0 votes
0 answers
509 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
0 votes
0 answers
71 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
321 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