Questions tagged [transfer]

The tag has no usage guidance.

47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
456 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 ...
1
vote
0answers
99 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 ...
1
vote
0answers
263 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, ...
1
vote
1answer
78 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 ...
0
votes
0answers
7 views

Fee on transfer causing error “Uniswap invariant not satisfied”

I am working on building an ERC20 token with the help of the OpenZeppelin project. I wanted to add a burn fee on transfer, so I overrode my transfer function as follows: function transfer(address _to, ...
0
votes
0answers
15 views

Trying to give tokens the new users on my Dapp

pragma solidity ^0.8.0; contract Coin is ERC20{ mapping(address => uint256) private _balances; mapping(address => bool) private _airdrop; uint private _totalSupply; string ...
0
votes
1answer
16 views

How to set payment amount to be passed in msg.value

I am working on truffle (solc 0.5) and trying to fetch amount in wei from user and send it to another account. Following is my code: contract pay { uint amount; function payment(uint _amount, ...
0
votes
0answers
8 views

ERC20 transfer not updating account values

I'm doing the DAPP university create a token tutorial as a way to learn solidity,etc. Things look good - except that the transfer function doesn't see to actually do anything. When the contract ...
0
votes
0answers
24 views

Interaction between my webapp and smart contract

I am experimenting for the first time with smart contracts and NFT stuff. So I am at the point where I have a react webapp with metamask integration. The user can connect his wallet. I want to ...
0
votes
0answers
20 views

Getting error: 'approve caller is not owner nor approved for all' when calling approve() from ERC721 owner wallet

I am getting this error message when trying to call approve() on an ERC721 token: "code": 3, "message": "execution reverted: ERC721: approve caller is not owner nor approved ...
0
votes
0answers
150 views

web3 how to send transaction with BNB

i'm begin working with web3.js api and i cant understand how to send transaction in BNB. According to documentation https://eth.wiki/json-rpc/API#eth_sendtransaction i cant find some parameter that ...
0
votes
0answers
22 views

No chance to transfer ETH from contract to address whatever gas I set

I looked through suggested similar tickets. Not my case. The problem is that I can't transfer ETH from contract to any address: (bool success1, ) = payable(recipients[index]).call{value: uint256(...
0
votes
0answers
18 views

Questions concerning the modification of an existing contract. Two liquidity pools, fee that can be taken out, testing on remix, buying the token

I am learning Solidity, and I am trying to modify an existing contract. But the questions I have I can ask independently from the contract. is there a possibility to have two liquidity pools? One as ...
0
votes
0answers
11 views

Is it possible to stop a deposit, while being in process by the contract owner?

function disableDeposit() onlyowner public{ require(timeToWait + userdeposit[msg.sender].timeCreate < block.timestamp); ERC20(tokenContract).transfer(msg.sender, userdeposit[amount]); } Would I ...
0
votes
0answers
6 views

How to validate transfers?

As far as I understand, events associated with transactions are completely arbitrary pieces of data emitted by a contract, i.e. just because transaction event log says that a Transfer took place, ...
0
votes
0answers
152 views

How to transfer ERC721 token to address from the smart contract?

I am working on a smart contract (OpenZeppelin ERC721), where trades can be created by only the owner of smart contract, and then regular users can buy them. When owner creates a trade, a new ERC721 ...
0
votes
0answers
19 views

How to send a fixed amount of ether to a smart contract from an account?

Is it possible to send a fixed amount of ether to smart contract from an account every time a function is executed or button is clicked? No input fields should be used.
0
votes
0answers
8 views

options to retrieve 24h transfer data between main DeFi protocols

I am trying to build a daily graph showing the transfers between the main DeFi protocols as well as some of their properties (for example, collateralization). What are your recommendations for places ...
0
votes
0answers
10 views

Transfer ether between two EOAs without security breaches

I have this function (is a SC implementing and auction): /// @notice Register a new participant /// @param _preferences agent' preferences function regAgent(uint[] memory _preferences) notOwner ...
0
votes
0answers
17 views

How do get every token transfer for a token?

I initially thought this would be trivial, just using the tokens transfer event but this misses transactions done by disperse, multisend and I am sure there could be a few more methods I don't know ...
0
votes
0answers
16 views

Multisender.app transactions aren't emitting transfer events for Ampleforth

I am trying to collate the whole of Ampleforth's transaction history. To do this I was grabbing the transfer events every 1000 blocks since Ampleforth's inception. In doing this I noticed that some ...
0
votes
1answer
93 views

Pancake/Uniswap: tell inside contract if a transfer is a buy or sell

I have a token contract that will exclusively use Pancakeswap as trading platform. How can I tell in the contract if a transfer represents someone buying the token or someone selling it?
0
votes
0answers
12 views

Truffle test - doesn't send funds to msg.sender

it seems like I have a wrong gnache or truffle setup ... I already ask a simular question here: Owner of contract is set to contract address? Basicly there is some mess up with addresses on my local ...
0
votes
0answers
71 views

ETH token transfer Fail and error is: Warning! Error encountered during contract execution [Bad instruction]

sometimes I am encountering a problem where I am trying to send tokens (USDT in this particular case) to other address and the transaction fails, because of "Warning! Error encountered during ...
0
votes
1answer
127 views

Different Transaction Costs For Different ERC20 Tokens?

I just went to send some OXT from my wallet to an exchange and noticed that the cost was much higher than if I were to send ETH or UNI while using the same gas price. My wallet shows a different ...
0
votes
0answers
17 views

Transfer token sent to wrong address (contract address)

Good day/eve. I purchased the OMI token and initiated a withdrawal to my trezor hardware wallet as an ERC20 token. This was an error (isn't an ERC20 token any longer) and therefore the transaction ...
0
votes
0answers
24 views

Different ways of exchanging tokens

I am conducting a study on transaction behaviour and dynamics on the Ethereum blockchain. Currently, I am analysing the token transfers of different user groups. After leveraging Google Big Query and ...
0
votes
0answers
29 views

I sent my eth to the wrong address

Instead of transferring my Eth token to my wallet, I accidentally sent it to the contract address of of the offshift XFT token 0xabe580e7ee158da464b51ee1a83ac0289622e6be Would the contract creator be ...
0
votes
0answers
23 views

Build and interact with contract

I'm developing a new token and I'm curious how I can interact with the token after is build and deployed. For example: Token1 has 10M tokens of total supply, I want people to can get those tokens, how ...
0
votes
1answer
116 views

Attempting to transfer erc20 elrond to elrond gold in trust wallet - error insufficient funds

Does anyone have a step by step guide to transfer my 7566 elrond to elrond gold? My elrond is in Trust Wallet and tried to send to my elrond gold wallet but network said I have insufficient funds and ...
0
votes
0answers
257 views

How to transfer POLS token from Metamask Eth wallet to DOT wallet?

Could anyone describe the procedure of transferring POLS token from Eth Metamask wallet to DOT wallet (for example polkadot{.js}) wallet?
0
votes
0answers
24 views

Can sending msg.value to owner be dangerous?

I have an erc721 token with a payable function added to it. It just needs to mint the token and then owner.transfer(msg.value). Assuming owner is my own address which I used to deploy the contract.
0
votes
1answer
31 views

Sending Ethereum to the contract owner on purchase

I have a smart contract that allows one to purchase a set number of NFTs for 0.2 ether each. I have set the owner of the smart contract to the one who deploys it and whenever someone purchases an item ...
0
votes
0answers
48 views

How to get rid of “Gas estimation errored with the following message” in this case?

In my front-end, I try to call a function called endAuction. In endAuction, I transfer payment to a seller and participants. While calling it from the front-end the transaction fails without any ...
0
votes
0answers
68 views

i need some help transfering funds back into my account from a smart contract i accidentally sent funds to

i was using uniswap and i thought i was easily transfering one token into another and somehow i put myself into a smart contract and cant get my funds back.... yesterday i had figured out with the ...
0
votes
0answers
58 views

Tron smart contract TransferOwnership function error

I want to implement TransferOwnership function in already made tron smart contract but it keep throwing error whenever I want to compile the code. I guess 1 thing maybe I'm using an Owner modifier and ...
0
votes
0answers
302 views

Incorrectly sent ERC20 (C20) token to a contract address

I mistakenly sent ERC20 (C20) tokens to a C20 contract address. There are two transaction hashes on the block. One shows that the C20 was sent (to a C20 contract wallet address) and is successful (...
0
votes
1answer
315 views

I have WETH in my ETH wallet but I can't send it

As you see, I have 1.7 WETH. When I try to withdraw, it shows me this
0
votes
0answers
1k 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 ...
0
votes
0answers
128 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 ...
0
votes
1answer
48 views

Should increase/decrease token supply on transfer to/from 0x0?

I am about both ERC-20 and ERC-1155. Should totalSupply be increased/decreased, when: transferring to 0x0? burning an amount already placed at 0x0 address? By the way, should 0x0 be allowed to have ...
0
votes
0answers
80 views

Uniswap Fee or how 180 AMPL tokens suddenly “disappeared” from blockchain

If you look at https://etherscan.io/token/0xd46ba6d942050d489dbd938a2c909a5d5039a161?a=0xfe6c9c5a0d36eba3a767aaf6df2f335e666a74e7, you can notice that there were 3 transactions associated with the ...
0
votes
0answers
27 views

What is the cause of an “APPROVED” transaction but doesnt do a “TRANSFER” for an ERC-20 Token?

I have a transaction that was approved and I paid $3 in fees. But the token was never "transfered" where and how can I debug what happen to my transaction of why it didn't transfer?
0
votes
1answer
172 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 ...
0
votes
2answers
288 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 ...
0
votes
0answers
49 views

No transfer of ether

My Code below ( Following an Online Course, absolute beginner here ^_^) pragma solidity >=0.4.17 <0.7.0; contract CampaignFactory{ Campaign[] public deployedCampaigns; function ...
0
votes
1answer
76 views

Gets reverted when calling ERC20.transfer in a contract, not reverted when transferring 0

I have this code inside a contract interface ERC20 { //standard variables function allowance(address _owner, address _spender) constant returns (uint remaining); function approve(address ...