Questions tagged [bsc]

Binance Smart Chain (BSC) is a blockchain network built for running smart contract-based applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How to send TX with Input Data in C#

I'm looking for a way to send the same transaction as here: https://bscscan.com/tx/0x52bfe52e6a63929d4e2cec79df424b0f73735f98e3082830269bcd8a2ff60044 I was trying nethereum, succeded sending TX, but ...
0
votes
1answer
10 views

finding the sequence of functions executed when interacting with a contract

I have interacted with a contract on BSC Blockchain and know I want to know the sequence of functions executed with my transaction. I got my hands on transaction GETH traces using BSCscan but that ...
0
votes
0answers
15 views

Estimate transaction fee on BSC

When I make any transactions on BSC through TrustWallet I can see "estimate" of the gass fee I need to pay. On average for 5 gwei it's around 16 cents. Is it possible to calculate the gas ...
0
votes
0answers
6 views

How to use NodeReal's Meganode service in BSC Testnet?

This question seems even a bit stupid to me, but I read in Binance documentation about Nodereal, and they state in their documentation about Meganode service, the following: Supports mainnet and ...
0
votes
1answer
16 views

How to use web3 to send ETH from wallet A to wallet B through an intermediary Smart Contract?

I want to send eth from 1 wallet address A to wallet B address but through an intermediary Smart contract, what should I do? I don't know how to solve that problem yet. EX: https://bscscan.com/tx/...
0
votes
0answers
9 views

Verification problems on BSC Scan

Have a nice day, I have such a problem when verifying a smart contract on BSC Scan, I'm trying to pass code verification, I get an error that no matches were found, but if you look at the byte code, ...
0
votes
0answers
41 views

Got honeypotted. Which lines of the smart contract code did the damage?

Here is the smart contract code. I need to understand how this works. // SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.0; library SafeMath { function mul(uint256 a, uint256 b) internal ...
1
vote
1answer
16 views

Unable to transfer funds to contract address using Brownie

I have deployed a contract, testContract, onto bsc testnet I have a test wallet with sufficient funds and can seemingly make transfers to other wallet addresses without any issues. I am just trying to ...
0
votes
2answers
18 views

Sync from snapshot

I'm trying to do a sync on geth node from snap for 7 days, however that never ends. so That's filling up my SSD that has 3TB (currently It is using 76% from my SSD) and I think that's not normal my ...
0
votes
0answers
17 views

Importing holder data from one contract to another in safemoon fork

I have a safemoon fork contract with 1000 holders. I have holder data in both CSV and JSON. Now I have a new and better contract, still safemoon fork. What is the simplest way to import the holder ...
0
votes
0answers
18 views

please help... How do I fix these issues

from solidity: DeclarationError: Non-abstract contracts cannot have internal constructors. Remove the "internal" keyword and make the contract abstract to fix this. --> .deps/npm/@...
0
votes
0answers
9 views

'Invalid account name or access token' when deploying to Thegraph

I'm currently working on deploy a subgraph to the hosted service on thegraph. It's to track volume and liquidity of a new token on the bsc. The thing is, I'm using a v1 clone from PCS, and everything ...
0
votes
0answers
13 views

Creating BEP20 Token

new user here. So I have an idea for a coin/token I want to create and I have chosen to go with BSC. However, there is a technicality that's unclear to me. After I create the token, for the amount in ...
0
votes
0answers
13 views

Web3 socket with options doesn't work

I'm trying to set some options in my wss connection but that seems don't have any effect using the moralis endpoint to connect in BSC I tried to keep the connection but that's dropped yet const Web3 = ...
1
vote
0answers
10 views

Spin up custom ETH based blockchain: just changing the genesis and toml?

If I wanted, lets say, to power on a clone of BSC (just to have a PoA version of the thing), would it be enough to follow the full node setup guide from Binance and just edit the config.toml and the ...
0
votes
0answers
14 views

I couldn't verify my BSC smart contract address

I made use of this token code editted it to make mine . I deployed but I couldn't verify my contract . I need help ASAP . What could be the issue https://bscscan.com/token/...
0
votes
0answers
22 views

Solidity - Transfer token from owner to another account

I have my token (myToken) deployed on bscscan. Now I am making a web application that will be based on blockchain technology. For that I have made a contract (ABC Contract) that contains all the ...
0
votes
0answers
11 views

How Can send tokens to another wallets ? (web3js) [duplicate]

I have learning to blockchain and I want to send some popular crypto tokens (such as Dogecoin, Shiba Inu, ...) from BEP20 wallet to other (using by by Web3js) How i can do it? I understood must using ...
0
votes
1answer
28 views

Gas Error when I try to deploy a bnb rewards contract on testnet

I made a contract - code here: code link Contract Compiles. Now I have tried to deploy on BSC testnet and it failed with: Gas estimation errored with the following message (see below). The transaction ...
-1
votes
0answers
17 views

Contract is failing with Gas errors - Urgent help

my contract on BSC scan has started failing when transferring tokens. I understand this is a gas issue, how do i solve it and push the gas through? Or is there anyone who can help me with this? https:/...
0
votes
0answers
15 views

Transaction not done. exceeds the configured cap 1.00 ether [duplicate]

I am using Metamask connected to Bscscan. Transactions with a fee of more than 1 BNB will not be executed and will be accompanied by the error message below. Is there any way to fix this, thanks. [...
0
votes
0answers
6 views

How do I find specific functions from a storage location in a proxy contract?

https://ethereum.stackexchange.com/a/113749/85815 Sorry I have posted this question under another thread as what I’m looking for was pretty related to that thread. Regards, Ash
0
votes
0answers
128 views

How to get Pair Contract Address or LP Pool Address of a Token in web3.py

I managed to have this code run after few hours of searches but unfortunately, this does not produce the output I wanted. Any ideas what could be the problem? from web3 import Web3 from eth_abi....
0
votes
1answer
35 views

How to estimate gas cost (not gas price) per transaction?

Sorry for the newbie question. So i had 2 different transactions with the same gas price and same function called But it used different amount of gas unit (not gas price) https://bscscan.com/tx/...
0
votes
1answer
20 views

I get an error whenever I try to deploy on BSC testnet. It only works on the ETH mainnet. The source I am using is on BSC

I cant deploy this source code myself on BSC even though the creator can, I can only deploy it onto the ETH testnet, not BSC. Here is the original contract: https://bscscan.com/address/...
0
votes
0answers
15 views

Retrieving info stats from pancakeswap pools

I cannot retrieve the stats displayed for each pool in the https://pancakeswap.finance/info/pools page (data concerning Volume 24h, Volume 7d, LP Reward fees 24h, LP Reward APR, Liquidity). By ...
0
votes
0answers
26 views

Binance Smart Chain - address.transfer runs out of gas - locked forever?

I'm having quite a troubling situation on the Binance Smartchain Mainnet. I have a contract that I created and it owns some BNB. I wrote a onlyOwner function to transfer the BNB over to another ...
0
votes
2answers
65 views

swapExactTokensForTokens failing

Ive been reading other results but none of them fits my situation* I cannot resolve this issue for a while. When im running this script: WBNB to DOGE - Works. DOGE to WBNB - Fails. What am I doing ...
0
votes
0answers
16 views

How do you calculate profit from DeFi token swapping in USD?

I have been learning a lot about DeFi token swapping (ERC-20, BSC ,etc.) but I'm having trouble understanding how to calculate potential profits in USD. Is there a formula using original investment ...
0
votes
0answers
145 views

Getting the Liquidity Pool Address of a token using web3.py connected in Binance Smart Chain

The snippet below checks for the latest added Liquidity Pool of a token. In poocoin.app, the LP Pool Address can be checked based on the pair (TOKEN/BNB LP Holdings). I wanted to know if web3.py can ...
0
votes
1answer
23 views

I could not find the deployed smart contract and coins

I took the safemoon contract from github, changed the name, compiled and deployed with remix. there seem to be no errors, but I can not find any contract or coins ...
0
votes
0answers
27 views

Swap/buy pegged ETH using BNB using BSC pancakerouter swapExactETHForTokens: how to understand the "path" variable?

(web3 in python) I would like to "swap" BNB for pegged ETH on the binance smart chain using pancakeswap. However, I have difficulties understanding what to put for the "path" ...
1
vote
1answer
45 views

Multiple transfer on single transaction?

Sorry for a newbie question, i currently trying web3.py for swapping in pancake Here i found someone able to do sequenced transfer on a single tx https://bscscan.com/tx/...
0
votes
0answers
18 views

Web3 js unknown account error on approve function

So i have an approve function that im calling, its on the testnet await tokenContract?.methods.approve(process.env.GATSBY_CONTRACT_ADDRESS, web3Inst.utils.toWei((1e50).toLocaleString('fullwide', { ...
0
votes
0answers
55 views

TxPool size on public BSC node

Something happened to BSC public node(https://bsc-dataseed.binance.org/), and I am confused. I usually call this BSC public node to get block transactions and content of txpool. Average number of ...
0
votes
0answers
29 views

Found suspicious function in Coin Contract code

I'm new to creating cryptos and doing all the programming of it. Recently I came across a very suspicious token called BEAR that might be a Honeypot scam. Here's the function I don't understand and ...
0
votes
0answers
24 views

Using BSC API to obtain Tokens Transferred information

Is it possible to use the BSC API to get a swap method transaction to return the "Tokens Transferred" information as viewed from bscscan.com, for example ? Would it just be a case of using ...
0
votes
0answers
28 views

How to simulate buy/sell to know taxes like honeypot.is does?

I am trying to know how much tax on sell and buy are needed before buy. How can I do that in nodejs ?
0
votes
0answers
12 views

Play-to-Earn - How to safely store user gems without generating new transactions on the blockchain

I'm studying to build a simple in browser play-to-earn game in the BSC chain, I've already looked how to use oracles and I can store the user gems in my backend and when he requests I use the oracle ...
0
votes
0answers
26 views

How to know if liquidity is locked using ethers.io?

I want to check if the liquidity of a BSC token is locked. I heard that you can get that information if you can check whether the liquidity is under contract, but I don't know how to get that. If you ...
0
votes
0answers
71 views

Check for locked liquidity programatically on BSC

Is there any way to check the locked liquidity for a specific pair? (Let's say token X / BNB). Currently, I can get the token liquidity by getting the pair between both (using the factory) and then ...
0
votes
1answer
385 views

What is that error called "code: -32000, message: 'header not found'" when I deploy smart contracts to BSC?

I am just stuck with this error as follow; Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code: -32000, message: 'header not found' }) I have no idea of any reason why I got this since I could see ...
0
votes
1answer
343 views

What is the BNB decimal on BSC

I made a button to send 1BNB to another account by using Ether.js. As I know, 1BNB has 8 decimals. However, when I have to send 1 BNB to another, I need to put 1*10**18 which is 18 decimals So, the ...
0
votes
0answers
85 views

How to send BNB (or other networks) with web3 on a dapp?

So, I tried the many examples found around but I never manage to get it working. I have this snippet: async function pay(cost) { code = 0 message = "Please approve the tx" ...
0
votes
0answers
40 views

Where i can take ABI this contract?(BSC)

contract_address = 0x1EE6539c12361B6Bc1fB930435c70D557DEE392f example transaction = 0xc6f7c6f441d01a05347f1758d90154095f47240a74180ac6abd6a02cc1614dac I need do transaction with python code, but i can`...
0
votes
1answer
59 views

Pancakeswap trade occasionally reverts without a reason

I'm calling the swapExactTokensForETH in order to exchange some Eternal token for BNB. amountOutMin is set to 0 (I swap small amounts) and timestamp is set to uint256 max. Here's an example of the ...
0
votes
0answers
63 views

web3.py " filter not found "

im using web3.py v5.19 in my project and we are on BSC mainnet also i use bsc urls recommended in site to connect to nodes this is my code to get events : block_filter1 = contract.events....
0
votes
0answers
129 views

bsc node fast sync : diff layers too new from current

I'm trying to do a fast resync of my node running on a 36gb ram, Ryzen 9, nvme ssd. But now i have an error but can't find anything on it... ERROR[10-28|11:29:47.644] diff layers too new from current ...
0
votes
2answers
95 views

Pending transactions are incomplete

I have written a simple web.js program to monitor the pending transactions on the BSC chain and output the tx hash on the console. I want to monitor a specific token, but right now I am outputting ...
0
votes
1answer
15 views

how i redirect the transaction to use my wallet rather than metamask on chrome?

how I redirect the transaction to use my wallet rather than metamask on chrome ? I have created a wallet and I want to use it in my next transactions, but I don't know the process of linking it with ...

1
2 3 4 5 6