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

Trying to Deploy copy of safenebula token smart contract on bsc testnet, keep getting an error. using remix on chrome. Is it problem with my remix?

The error Im Getting - Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code&...
0
votes
1answer
27 views

Is there an Infura equivalent for BSC?

I am new to infura and was wondering how people interact with other smart chains. Is there an equivalent service like infura for the Binance Smart Chain? Or can you still use infura for BSC?
0
votes
0answers
5 views

BSC Chaindata from Binance snapshot

I've been trying to get BSC sycned up in a node that I can use. I can't seem to get it to start syncing after downloading and extracting the chaindata from Binance, https://docs.binance.org/smart-...
1
vote
1answer
20 views

How to point web3j to other networks such as BSC?

I would like to use web3j and to execute the functions of contracts that are found on Binance Smart Chain. How is this done ? Would it be just Web3j web3 = Web3j.build(new HttpService("https://...
0
votes
0answers
30 views

Calling function from web3 fails, calling it from truffle console works

I have the following JS code to call a contract: const txHash = await timelockContract.methods.executeTransaction( "0x71c1179e3C351De2641845cDAe537aCFC1808Fd2", 0, "&...
0
votes
1answer
9 views

How get estimated block with timestamp

So for example, I want to enable my contract 1 week after deployment, thats now() + 1 week, how could I know which block that will be so I can send my clients a countdown to that block with https://...
2
votes
0answers
20 views

trouble understanding the usage and calculation of INIT_HASH and precompiled contracts

I am working with pancakeswap and I was following a tutorial which just said that we need to calculated the INIT_HASH and that we can follow this link enter link description here for guidance. The ...
1
vote
0answers
14 views

“Good enough” random number in BSC

I'm trying to develop a weighted probability selection algorithm on BSC and I think I need an algorithm that can generate a random number within a given range for that. What would be a "good ...
1
vote
0answers
81 views

I can't approve and sell a token I bought on pancakeswap. I saw someone else sell it in the transaction list on bscscan

Okay, so obviously I bought a scamcoin, but theres this one guy who still managed to sell it, most likely by using a bot. I want to sell the token as well, the liquidity isn't pulled and I would make ...
0
votes
0answers
24 views

Invalid response at function call from time to time

I am continuously trying to fetch all pair addresses from a PancakeSwap contract but while doing so it always fails after some time saying: Error: invalid response - 0 at exports.XMLHttpRequest....
0
votes
0answers
11 views

Contract Created successfully but I don't receive tokens ? Bscscan testnet

I'm really sorry for the basic question. I've made some basic contracts from youtube videos, now I've tried to take contracts from BSCscan and put them through Remix on Testnet to try them, but I ...
0
votes
0answers
42 views

Truffle deployment to BSC main net fails [closed]

Im trying to deploy my smart contract to BSC, I had 0.13 bnb on my account which at that time was worth (100$), I tried many times and funds are gone now... Is 100$ not enough for deploying a bunch of ...
0
votes
1answer
29 views

Why BSC is used more in DeFi apps? [closed]

I decided to deploy my NFT collectibles in BSC (Binance Smart Chain) because of Gas Prices in Ethereum blockchain. So, I researched some Dapps deployed in BSC. I've found that most of the applications ...
0
votes
0answers
38 views

how to decode JSON-RPC BSC output result

How to decode the JSON-RPC result of bsc-dataseed1.defibit.io? these are two examples of output: { "jsonrpc": "2.0", "id": 1, "result": { "...
0
votes
0answers
45 views

Serious question, I sent BNB from Metamask's Binance Smart Chain to Binance's ERC20 address? Never arrived [closed]

I had 7.4 BNB in Metamask using the Binance Smart Chain Mainnet tab and I clicked “send” to deposit all 7.4 into the ERC20 wallet address on Binance.us. I should include that in the transaction ...
0
votes
0answers
13 views

Transactions are mined before monitored transaction with same params (BSC)

On BSC chain, i am facing this situation. I am scaning mempool for a transactions ( nodejs and web3.eth.subscribe('pendingTransactions', ...) ) and when i find the one i am concerned, i fire a ...
1
vote
1answer
38 views

Why I am not able to decompile this contract?

I wanted to decompile this, contract but for some reason the output saying only: No regular functions. That's it. Here is the full output: # # Panoramix v4 Oct 2019 # Decompiled source of bsc:...
0
votes
1answer
35 views

Trying to send transaction on next block

I'm trying to understand block time and speed of transaction. For now I'm testing on Binance Smart Chain and then I will go to ethereum network. I have a simple code in nodejs using web3 library, I'm ...
0
votes
1answer
20 views

What are the self destructs in this transaction for?

I have been using websites like Etherscan and Bscscan for almost 2 months and recently I have found this random transaction and realised that I have no idea what is going on with this self destructs......
0
votes
1answer
420 views

Retrieve price data from PancakeSwap [BSC]

Does PancakeSwap use the same constant product formula as Uniswap (x * y = k)? Because then I should be able to calculate a token pair exchange rate by just dividing the amount of token1 reserves by ...
0
votes
1answer
49 views

Why are PoS (e.g. BSC) transactions costly?

How much may cost PoS transactions in such networks as future Ethereum mainnet or already existing BSC? Why do BSC transfers cost $0.05? Why doesn't gas cost about the cost of electricity used for the ...