Questions tagged [transfer]
The transfer tag has no usage guidance.
166
questions
0
votes
0
answers
3
views
Transfer someone else's NFT asset with an approve
I got this NFT marketplace smart contract. Still at the proof of concept stage, so I got 2 options to go with, I was just wondering if someone tried, or has knowledge about it:
Here is the deal, I was ...
0
votes
0
answers
9
views
Transfer Balance in wei not i
I have this contract which reads the balance , I'm in BNB test , so it reads the BNB balance and then send to another adress half of the balance. The contract executes ok but the balance is sent in ...
0
votes
0
answers
7
views
is pull over push pattern recommended for erc20 withdrawal too?
I had a chance to read the pull over push pattern for transferring/withdrawing ethers, but i'm not sure if i need to apply this for erc20 transfers.
i.e.
function buy(uint256 _someId, uint256 _price)...
0
votes
1
answer
27
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
0
answers
11
views
Creating / Tracking ERC20 Transfers on Chain
I am creating a contract where users can come and deposit a certain stable coin to the contract.
Let's say using these invested funds, the contract owner can use it and be given a certain interest for ...
0
votes
1
answer
28
views
Different gas amount for erc20 Transfer functions
I have used Transfer function for an erc20 in different contracts with the same codes. The point is here, in different times there was different gas while the function was the same. The input of the ...
0
votes
2
answers
42
views
Funds stucked in smart contract
I have a question.
So there is a project named StarsLab that had it's mint live in the beginning of this year. They started first the WL sale. I wasn't WL but was able to mint so reported it to the ...
0
votes
1
answer
22
views
What are these 2 transactions with the same hash and different values?
I am browsing some erc20 transactions from a given ethereum address on the Etherscan API module account and action tokentx.
Example here :
Sometime I observe 2 consecutive identical result except ...
0
votes
0
answers
19
views
can we transfer custom token from one contract function to another contract?
can we transfer custom token from one contract function to another contract ? I want to transfer some custom tokens to another contract whilst using a contract function. Is this possible ?
e.g:
...
0
votes
1
answer
12
views
ERC20 TRANSFER function error error = false transaction [duplicate]
Want to use erc20 function transfer to transfer erc20
Made contract referring this video
https://youtu.be/-5j6Ho0Bkfk
function transfererc()payable public{
Token token = Token(address);
token....
0
votes
2
answers
39
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
2
answers
13
views
How can I get my money back if I have made a transaction from my bank account to Metamask and cancelled it but my money if gone from the bank account?
I have made a transfer from my bank account to metamask. Minutes later, I cancelled the transaction. The next morning I saw that my money if gone from my bank account and the money is not in my ...
0
votes
0
answers
11
views
to convert one token to another, is there something as simple and independent methods, or do we necessarily have to use a dex as a swap interface?
I use web3 with nodejs.
To transfer the main network token, which we put in the transaction value.
To transfer another token to another wallet, we use the smart contract transfer function of the same ...
0
votes
1
answer
25
views
Transfer function not changing custom token(ERC20) balance after successful transfer from transfer function?
Transfer function not changing custom token(ERC20) balance after successful transfer from transfer function ?
The transaction is successfully performed but the amount of custom token in my wallet does ...
0
votes
2
answers
41
views
Is it possible to send testnet eth from one testnet network to another?
Is it possible to send testnet eth from one testnet network to another? Curious because ain't getting much testnet eth these days.
0
votes
2
answers
65
views
Send msg.value to another address immediately
Is it possible to implement a payable function and transfer msg.value to another address immediately?
function purchase() payable public {
//transfer msg.value
}
I'm thinking this wouldn't work ...
0
votes
0
answers
19
views
ERC721 transferring NFTs and currency
I have a contract that I want to use as an NFT marketplace. It extends ERC721URIStorage
contract NftMarketplace is ERC721URIStorage ...
In on function I use _transfer() to move an NFT from the seller ...
0
votes
0
answers
12
views
How can I transfer this ROI value inside RateOI function value to the contract itself and the contract Balance gets updated
contract RATE {
function contractBalance() public returns(uint){
return address(this).balance ;
// store = address(this).balance;
// console.log(store);
// store =...
2
votes
2
answers
220
views
Can ERC-20 token transfers have re-entrancy?
I understand that re-entrance attack can happened when you send ETH, because of fallback() function. But in ERC20 transfer there is no call for fallback, so I wonder if there's a way to make re-...
0
votes
1
answer
20
views
What are some APIs that write transactions to the blockchain?
Are there any APIs that write transactions to the blockchain?
I am most interested in RESTful versions.
0
votes
0
answers
74
views
Invalid amount in MetaMask app on iPhone
I am using Moralis for simple token transfer from one wallet to another. My code:
And this works great on desktop (Chrome MetaMask plugin):
But when I wanna use this on my phone - iPhone (MetaMask ...
0
votes
0
answers
55
views
Contract not applying tax as expected in early sells
I need help with a tax loophole.
This is a early sell tax within the first 24 hours of token purchase
but when tokens are transferred to a new wallet taxes are not applied.
or maybe extend time on ...
0
votes
1
answer
76
views
erc20 transfer function not working
i am developing a locking smart-contract where user can add token address, amount and lock time. i imported erc20 standard from openzeplin but when i transfer erc20 tokens to my smartcontract is ...
0
votes
0
answers
17
views
How many transferFrom function executions can be done in one transaction? (airdrop use case)
I'm developing a dApp, with an Smart Contract, to be able to send multiple tokens at once, in order to save gas (like https://cryptomultisender.com/).
The tasks are pretty simple:
Take an array of ...
0
votes
1
answer
25
views
How to send ether from smart contract to a particular address
I initially transferred some ether into the smart contract when deployed and in one of the function I should be transferring ether to the address of the msg.sender. Help me out if you can!
1
vote
1
answer
53
views
Why ERC721 does not have direct transfer function?
I was researching the ERC721 standard on Openzeppelin and I have noticed that there is not public or external "transfer" function.
I see internal "_transfer" function, that is ...
0
votes
0
answers
12
views
Trace back an ERC20 token back to its minter
I am creating an ERC20 token. Lets assume once I mint these tokens I transfer them to some buyers. Say, token 1 is minted and transferred to user 1. Again, from user 1 to user 2 and so on to user n. ...
0
votes
0
answers
85
views
Solidity get event when NFT is sold on Opensea and distribute across token holders
I'm very new to solidity, blockchain and smart contracts and the whole crypto ecosystem and I can't get my head around how to approach this problem.
I'm planning to publish a NFT collection on Opensea ...
0
votes
2
answers
141
views
ERC20 how to transfer token from contract to an account?
This contract created token and has stored it in his own address (contract address).
I want to implement a function that transfer token from this contract address to an account address.
pragma ...
0
votes
0
answers
10
views
10 ERC 20 Tokens (2018) Cannot be Accessed
0xa4f6D6484cCCEBf5Ea35159F0D387647b2a3c86A here is our gnosis safe multisig address. 10 panda earth tokens were sent to the address. it is an older contract and they do not show up on etherscan as ...
1
vote
2
answers
59
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 ...
0
votes
1
answer
231
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
// ...
0
votes
1
answer
55
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
1
answer
30
views
Send Ether from SC to EAO
I came across many blogs saying the defacto standard to send ether from one contract to another and why one is better than the other. However, what is the best practice for sending ether from contract ...
0
votes
0
answers
15
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
0
answers
16
views
I can't implement the transfer function that calls the A contract through the B contract. who can help me
I want to call the function of contract A in my contract B. I call the balanceOf function to display the balance normally, but when I call the transfer function, it does display Note: The called ...
0
votes
1
answer
120
views
Calling payable function will directly transfer eth?
It seems that calling a payable function will transfer eth directly even without explicitly calling transfer(). For example:
contract Storage {
receive() external payable {}
// Fallback ...
0
votes
0
answers
23
views
Why do I see outgoing ERC20 token transfers from a given address that had no incoming transfers before?
I am trying to compute the balance tokens for some addresses, by taking the sum of tokens in minus the sum of tokens out. This lead me to a weird observation.
I'm finding that some addresses have sent ...
0
votes
1
answer
16
views
_addr.transfer(amount) dependent on value in message
I am trying to write a simple smart contract that accepts a small constant fee of eth. I am using the _addr.transfer(fee) function and the 'fee' is set in the contract at time of construction. I am ...
0
votes
0
answers
145
views
How to parse Ethereum transaction input and get token transfers (ERC20)?
I am parsing Ethereum transactions to get transfers of different (erc20) tokens in Java.
I know how to parse transfer, transfer_from, approve function calls, but I have problems with mint and execute ...
1
vote
1
answer
81
views
Is "approve" required only for transferring tokens? Not a native coin?
Speaking of Ethereum blockchain, or any other one compatible with it: Polygon, Avalanche and others: is calling the function approve(...) mandatory only, and only, when there's a token involved in ...
1
vote
1
answer
255
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 ...
0
votes
0
answers
80
views
Send ERC20 tokens(it is link) from an address to smart contract
I can not transfer ERC20 tokens from my address to the contract. But I can transfer from the contract to other addresses.
my account(msg.sender) has 10 link(ERC20) tokens . and i want to send these ...
0
votes
0
answers
111
views
How to retrieve Wrapped BNB tokens sent to Ethereum Smart contract instead of Binance Smart Contract address?
Need desperate help from experts here. I swapped my ETH coins to BNB first to buy some pre-ICO coins, but executed a contract in Ethereum network (accidentally forgot to create and transfer Binance ...
0
votes
0
answers
90
views
How to restrict ownership of my ERC20 token & allow only whitelisted individuals to trade it on Uniswap
I'm building a Community Token for my community and would like to make it tradeable on Uniswap via a Liquidity Pool.
For the time being, I want to only allow my community members to purchase that ...
0
votes
2
answers
185
views
Why is the address.call function failing?
Im trying to run the following solidity-by-example on remix:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Payable {
// Payable address can receive Ether
address payable public ...
0
votes
1
answer
23
views
How to perform an action when receiving tokens in smart contract
So I have some custom Tokens in a smart contract and whenever I receive BUSD in the smart contract I want to be able to send some of the custom Tokens back to the user that paid through a button from ...
0
votes
1
answer
29
views
Contract does not accept eth sent from another contract
Hi I try to send ETH from Sender contract to Receiver contract by calling sendPayment function. But I get an error. I know that the issue is the require statement in the fallback function because ...
0
votes
1
answer
90
views
Transfer() method with Web3 I got error and didn't transfer
I tried to make a button on we3 when click on it, the transfer method should start after 5 minutes.
when I click my button first of all metamask show me this
when I click on try it anywhay this error ...
0
votes
0
answers
14
views
Withdrawal method is just unwrapping BNB/ETH?
I have found an account on bscscan that first withdraws 100bnb:
https://bscscan.com/tx/0x77d4222ecd7f9fc704a34245ef270bebb9b0ece368117fb841108be4dc30726f
and then transfers it to another wallet: https:...