Questions tagged [bsc]
86 questions
4
votes
0 answers
ethers: processing response error code -32000, SERVER_ERROR on BSC testnet while trying to approve on MetaMask
I am trying to get MetaMask to popup to approve a dapp to use my erc20 tokens like:
const provider = new ethers.providers.JsonRpcProvider(url); // url === bsc testnet rpc
const erco20Contract = new ethers.Contract(
erco20ContractAddress,
…

sdfsdf
- 5,052
- 9
- 42
- 75
3
votes
2 answers
gas required exceeds allowance (8000000)
My smart contract runs in bsc normally on local ganache and the public test network,
but in the private chain built by myself, it always prompts gas required exceeds allowance (8000000).I can not find the solution to solve the problem at all.help…

robert
- 31
- 1
- 4
3
votes
2 answers
How get estimated gas before sending the transaction?
How do you get the "estimated gas" from a "swapExactETHForTokens" function? As shown in metamask (before one can accept the purchase)
Binance Smart Chain (BSC)
From the pancakeswap contract…

luisbriyan
- 95
- 9
2
votes
0 answers
truffle run verify SomeContractName --network bscTestnet not working
I followed the instructions:
https://docs.bnbchain.org/docs/truffle-new/
Could already deploy the SmartContract and migrate to bscTestnet, but verifying with the plugin truffle-pluging-verify is not working. I get the following error…

Hakikat41
- 172
- 3
- 9
2
votes
1 answer
nodejs web3 bsc bep20 token transfer no confirmation
I'm trying to transfer a BEP-20 token on BSC from one Wallet to Another. I actually had it at one point and somehow messed up while doing code cleanup. Anway, I need some help. When I send my transaction I never get a confirmation.
I get a hash for…

Jim_M
- 273
- 1
- 2
- 10
2
votes
0 answers
How to send BSC transaction with golang
I have a Smart Chain wallet which i want to send a token or BSC from it to another address programmatically using Go.
I tried go-ethereum library and bnb-chain but i can't figure out how to do this.
Note: i don't want to run a full/light node to…

mohammad
- 31
- 3
2
votes
1 answer
Truffle migrate --network bsc error: header not found
When trying to run truffle migrate --network bsc, truffle usually (not always) manages to deploy the migrations contract, then fails with an error: header not found.
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code: -32000, message: 'header not…

Nate F
- 23
- 3
2
votes
2 answers
Truffle '"Migrations" -- cb is not a function'
I wrote a simple smart contract in Solidity 0.6.6 that I'm trying to deploy to the BSC Testnet.
This is what I have in my truffle-config.js file (privateKeys is an array with a single entry of ['0x + privatekey']:
networks: {
bscTestnet: {
…

edoyle23
- 21
- 2
2
votes
1 answer
Pancakeswap - getAmountsOut getting strange results
I'm making first steps in web3, that's why question can be silly.
I can't figure out, why results from getAmountsOut method of Pancakeswap's v2 router differs a lot from swap results I see on a frontend of Pancakeswap.
BAKE decimals should be…

PokatilovArt
- 1,111
- 11
- 13
2
votes
0 answers
web3.exceptions.ContractLogicError: execution reverted
Hello!
Help me please.
I have just created own
tokens on bsc testnet via PancakeFactory.
Then I created liquidity pool with these tokens.
I minted tokens and I want approve
this tokens to PancakeRouter
and add liquidity in this pool.
You see my code…

Ivan
- 303
- 3
- 13
2
votes
0 answers
the method eth_maxPriorityFeePerGas does not exist/is not available
Help me, please!
I don't understand, why i can't do approve from my token contract.
I do so always and this code worked. But now I've got error.
My code:
def approves(w3, token_contract, router_contract, my_account, my_pk):
allowance_value =…

Ivan
- 303
- 3
- 13
2
votes
2 answers
BSC websocket endpoint lantency
I'm recently trying to monitor transactions of a contract address on BSC chain for my dex limit order and I finally found a stable solution to monitor the log event -- 'using web sockect connection'.
bsc =…

Yu Wan
- 63
- 2
- 5
2
votes
0 answers
Not able to deploy contract on bsc network using truffle
same code I have deployed on bsctest network and ropsten but unable to deploy on bscmain network
ERROR : Unhandled error. ({ code: -32000, message: 'header not found' })
privatetest@testcms:~/signcontract$ truffle migrate --reset --network…

ML680
- 99
- 1
- 1
- 10
1
vote
0 answers
AptosBridge in BSC Chain script bot problem (Node.js)
Writing script for transactions thru Aptos bridge from BSC Chain. The problem is - every time I get the same transaction revert reason. LzApp: Not enough native token. I checked everything in aptos docs. Everything seems to be right but still…

Tim Reznik
- 11
- 1
1
vote
2 answers
I want to create two identical tokens in ETH and BSC networks and that they would always have the same price
I searched all over the Internet and found nothing. Projects often have tokens in different networks with the same name and all have the same price. How can this be achieved?
I need a solution to this problem. I can't find it on the Internet

StrongBuy
- 11
- 1