Questions tagged [bep20]

68 questions
0
votes
1 answer

i want implement ICO Contract for token contract

I have some simple ico contracts for airdrop and presale with lock token future to lock token until ico end and I want to know how to connect it to token contract
0
votes
1 answer

airdrop and lock tokens for specific time

I want to airdrop and presale my won token so in the next step I want to lock them until my IDO data come and unlock in this time 30% of user wallet balances and next month 50 % what is the best way to do this
0
votes
2 answers

Why can I not deploy this BEP20 token with Remix?

I am trying to deploy this contract https://github.com/juustesout/EtherRanger/blob/main/EtherRanger.sol to BSC Testnet, and I get this error in return : "revert The transaction has been reverted to the initial state. Note: The called function should…
0
votes
1 answer

BEP-20 tokenized investment fund smart contracts

I’m working on a security token for a tokenized hedge fund and I need help in how to structure the project. My background is in algorithmic trading and I’ve developed and tested an algorithm for trading cryptos. My goal is to turn this into a token…
0
votes
0 answers

use walletconnect nodejs client How do I set up custom token transfers?

transfer() { const tx = { from: "0x57B1c15E83A87bF856e3eDb8765ac2d2b3CaA94C", // Required to: "0x1C6B45866aff7Ac71628bd93F0307e28E783EB76", // Required (for non contract deployments) data: "0x00", // Required …
ka a
  • 1
  • 1
0
votes
1 answer

How to get tokens transferred in transaction details using web3 js?

I am using web3js to get transaction details my code: const transactionHash = this._req.query.transactionHash; const transaction = await this._web3.eth.getTransactionReceipt(transactionHash); const logs = await transaction.logs; const log = await…
Dinh Luong
  • 127
  • 3
  • 15
0
votes
1 answer

How to paid gas charges from another account when transfer bep20 token using web3?

let contract= new web3.eth.Contract(BUSD_TOKEN_ABI, BUSD_TOKEN_ADDRESS) await contract.methods.transfer(toAddress, transFerValue).send({from: defaultAddress}) I can send easily bep20 token by using above code from one address to another and its…
Mehedi
  • 25
  • 1
  • 7
0
votes
1 answer

How get USDT balance BEP-20? web3.eth.getBalance

Good day! Can you please tell me how you can get the balance of the USDT address? I found a way to get BNB balance (https://docs.binance.org/smart-chain/developer/BEP20.html), but there is no example for USDT
0
votes
1 answer

How to get ETH or BSC unverified contract ABI

I want to find a deployed but not verified contract ABI~ There is api to find verified contract ABI but not support the unverified.Is there any ways to find a deployed but not verified contract ABI~ Like this contract…
0
votes
1 answer

Implement IBEP20 interface in smart contract

contract Main { string public name_ = "Test"; mapping (address=>bool) addressIsApproved; IBEP20 public immutable busd; constructor (IBEP20 _busdContract){ busd = _busdContract; } function approve (uint256 _amount) public { …
DougZo
  • 23
  • 9
0
votes
2 answers

Smart Contract - BEP20: transfer amount exceeds allowance

I'm new in solidity and I'm trying to swap tokens from "Address A" to "Address B". I used the functions approve and transferFrom, but I'm still getting the error: "Error: VM Exception while processing transaction: reverted with reason string 'BEP20:…
0
votes
1 answer

Solidity: Binance smart chain token: Why I can't find definition of transaction fee setting?

There is the code of one bsc (binance smart chain) contract. It is quite clear. But I can't find one thing here. They have written on the website that 2% of each transaction goes to charity, 3% to liquidity pool and 2% are tipsy rewards. These fee…
0
votes
1 answer

Sending a token via bep20 shows the wrong token on Metamask

When it goes to transfer, it shows the wrong token in the metamask (async ()=>{ const contract = new web3.eth.Contract(ABI, contractAddress); const transfer = await contract.methods.transfer(reciever, 1); const data = await…
0
votes
1 answer

After compiling my erc20 token, can I modify any function?

I am getting into a Token project. Can I append more functions to the token and more smartcontract after compiling the token to the BSC, or is there nothing else to be done at that point?
0
votes
2 answers

Token (solidity) - Reward a user X amount of token from main app wallet with user paying the gas

Hello Everything is fine? I'm now starting to study Solidity, I'm making a centralized game, and after some successful missions, I want to give the user the option of "Claim tokens", where I would transfer from the game wallet to him, and the amount…