Questions tagged [bep20]
68 questions
0
votes
1 answer
How to generate same wallet address in both BEP20 and ERC20 using web3
How to generate same wallet address(same public key) in both BEP20(Binance Smart Chain) and ERC20(Ethereum) using web3?
I want to use one single key pair for both networks. I can see some exchange website provide same wallet address for both…

Alireza Asadi
- 11
- 1
- 2
0
votes
1 answer
invalid sender while transfering BEP20 token
Hello I want to transfer bep20 token one address to another address,using ankr api and provider for web3, but got error like
Invalid Sender
Here is code which i used for transfer token, i have used chaind id for binanace like bnb, bsc binance…

Dharmesh
- 1
- 1
- 7
0
votes
1 answer
ParserError in solidity, Expected identifier but got reserved keyword 'immutable'
I'm trying to compile my code on my token smart contract on solidity but this line is causing an error:
address public immutable BUSD = address(0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56); //BUSD
Error message:
contracts/Work Protocol.sol:32:20:…
0
votes
1 answer
Please how do I get ABI of my token after deploying on BSCMAINET
I deployed a contract on bscscan recent using remix but I forgot to copy the abi code...
Please how can I get it back...
I need to communicate with the contract using web3
Thanks.

Akintomide Ayodele
- 13
- 7
0
votes
2 answers
Pancakeswap liqidty not working with forked token
I have forked sprout token and I have changed basic things but I'm not sure that liquidity to pool is working or not please suggest me how I can sure that liquidity is working or also if is there any way to sending instead to pancakeswap liquidity…

Surrender Oz
- 81
- 5
0
votes
1 answer
I'm trying to code a malicious ERC20 smartcontract approve function (for study purposes) but this does not work
Here is the partial source code of a smart contract that I deploy on the Binance Smart Chain. What I would like to demonstrate to my teacher (if this can be done) is the draining of all the ETH/BNB that is on the caller's wallet, when he/she calls…

KotlinIsland
- 799
- 1
- 6
- 25
0
votes
0 answers
Scanning for all smart contracts creation on Binance Smart Chain (nodejs + web3)
I am trying to scan for smart contracts creation on the BSC but the processing stops after some seconds/minutes. Sometimes it lasts longer. When it stops then the exit code is 0.
Could you know what I'm doing incorrectly in the following code (made…

KotlinIsland
- 799
- 1
- 6
- 25
0
votes
1 answer
How do I generate wallets and transfer/mint tokens to them using python/solidity?
I have made a simple bep 20 token and I am trying to mint my wallet address 50% of the token supply and evenly distribute the remaining 50% of the supply between 10 different wallets that I would like to generate with code. I am not sure whether…

Reece
- 1
- 3
0
votes
1 answer
BEP20 How to exclude the burn wallet from the maxlimit function
Am trying to create a project and new to solidity.
I added a max limit to prevent whale wallets.
The limit is 150m tokens and i would like to burn a higher amount, how can i exclude the burn adress 0x0000000000000000000000000000000000000000 from…

Wooshh
- 1
0
votes
0 answers
How would I implement a buy/sell transfer tax within solidity
I want to put a transfer tax into my code but not sure how to go about it. I would apply a 2.5% tax on buys and sells. Any help/advice would be greatly appreciated. This is what I have so far:
pragma solidity ^0.8.4;
contract Token {
…

Sinyachta
- 1
- 1
0
votes
1 answer
Farm contracts for pancakeswap
I try to fork pancake swap and my question is Do I need to change the contracts for farming or I can use what's in pancakeswap repositories?
{
pid: 108,
lpSymbol: 'ZIL-BNB LP',
lpAddresses: {
97: '',
56:…

Maklei
- 76
- 15
0
votes
1 answer
BEP-20 Contract - Claim Name of contract
A very newbie question here, but is there a way to claim a BEP-20 token name kind of like buying a domain address? I understand that the contract is immutable so once deployed the contract is immutable.

Dennis O
- 3
- 1
0
votes
1 answer
Compile Error in pragma solidity 0.8.0 and others
When I try to compile my bep20 smart contract it says:
ParserError: Invalid token. --> bep-20.sol:6:53: | 6 |
constructor(uint256 initialSupply) public ERC20(“MilkyWayGalaxy”,
“MILKYGAL”) { | ^
I use the pragma solidity ^0.8.0; but the latest…

Milky
- 1
- 1
- 1
0
votes
2 answers
Solidity: TypeError: Function declared as view, but this expression modifies the state and thus requires non-payable (the default) or payable
I have been trying to create a smart contract/Token, will deploy this on the Binance Smart Chain test net. I followed some documentation and started with this. I am getting into this function issue. Function is declared as Read only. Here is the…

BlockChain Learner
- 125
- 1
- 10
- 18
0
votes
2 answers
Solidity: solidity declarationerror identifier not found or not unique
Trying to create my first smart contract with the REMIX IDE, however getting into a Declaration Error.
Here is the code of my contract
/**** Code start **/
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.2;
import "./Context.sol";
import…

BlockChain Learner
- 125
- 1
- 10
- 18