Questions tagged [binance]

Binance is a cryptocurrency exchange that provides a platform for trading various cryptocurrencies.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Binance Smart Chain RPC Rate Limit

In the BSC documentation, it says that we can make 10K/5mins RPC requests to their servers. Do you guys know if it's 10K per app or user?
3
votes
4answers
12k views

where can i find the addresses of the pancakeswap coin pairs smart contracts

where can I find the smart contract address of all (or the major) coin pairs of the pancakeswap AMM. I can't find it anywhere and searching on google yields random articles.
3
votes
1answer
1k views

Running BSC node in light mode?

Is it possible to run BSC node geth -—syncmode light mode? This is what i get following steps https://github.com/binance-chain/bsc only using -—syncmode light t=2021-05-08T11:56:12+0300 lvl=info msg=&...
3
votes
2answers
4k views

How to get always the right price for all BSC tokens? Ethers.js

I'm coding my small app and I'm having trouble getting BSC token prices. The problem is: I'm getting weird values for some specific pairs (eg. SHARD/WBNB, SAFEMARS/WBNB) How can I get a basic and ...
2
votes
1answer
2k views

BSC Testnet: Truffle Migrate ETIMEDOUT

I need to deploy my smart contract to BSC Testnet I always got this : Error: PollingBlockTracker - encountered an error while attempting to update latest block: Error: ETIMEDOUT I tried to change the ...
2
votes
1answer
596 views

Uniswap Router initialization in Ethereum mainnet versus BSC

I analyzed the source code contracts of several tokens, and I noticed a line of code that differs between two similar ones that I am trying to make sense of. Specifically, I would appreciate your ...
2
votes
2answers
1k views

Can I avoid impermanent loss if I only as a LP of BETH/ETH pair in binance?

Can I avoid impermanent loss if I only stake ETH as a LP of BETH/ETH in Binance? Is BETH's price stable? If I don't want to hold any crypto assets except ETH,what are the best DEFI options to improve ...
2
votes
1answer
265 views

Solidity - String Template Literal

Is it possible to write a multi line string in the solidity language on the same fashion as JavaScript allows us to do so by levering back-ticks? I'd like to now an optimal way to save a long string ...
2
votes
0answers
763 views

Why can I no longer mine on the binance pool? [closed]

This question was closed due to being off-topic, which is fair enough, but I'll add the solution here in case it helps someone: Change protocol to stratum1+tcp. I have been using the ethminer client ...
2
votes
1answer
44 views

How to replay all events from the start?

I want to replay all events on a bsc chain and index them. If I understand correctly, the only way of doing this at the moment would be to call getBlock(0) and go from there, checking every ...
1
vote
3answers
13k views

Is there a way to convert Binance pegged tokens into Ethereum based tokens?

This is confusing me a lot. Basically if you have a metamask wallet and have some BNB there, and you use PancakeSwap for example, even if you convert the BNB into ETH or BTC, it won't be the real ...
1
vote
1answer
254 views

Prefunding wallets in HardHat

I know that Hardhat automatically prefunds each default wallet with ETHs, however I have a few questions with regards to that. How does this prefunding work when I change the network (Say from ...
1
vote
1answer
494 views

Binance smart chain wallet open using web3modal

Web3modal provides ethereum wallet connect in dapp. I'd like to connect binance smart chain wallet extentions. I think it would be possible to edit providerOptions for the each wallet extensions. ...
1
vote
1answer
78 views

Unable to connect to BSC testnet with web3.js

From this tutorial, I learned the RPC URL for BSC Testnet is https://data-seed-prebsc-1-s1.binance.org:8545, but when I use it with web3.js like: const web3 = new Web3('https://data-seed-prebsc-1-s1....
1
vote
1answer
997 views

Can a Binance SmartChain / BSC full node be run on Windows?

If Geth is available on Windows, shouldn't that mean it's doable, or am I misunderstanding how it works? I was under the impression that Geth is essentially the node software. Is that not so?
1
vote
1answer
150 views

can't find contracts on the BSC via fully synchronized local node

I am trying to find a deployed contract via my fully synchronized local node, but I can't find it. it turns out that I can't find any contract in fact. I tried running eth.getcode("...
1
vote
0answers
18 views

Binance network: secure transaction verification

I have a BEP-20 token deployed under Binance Smart Chain. I'm also trying to implement a web3 dapp that will send tokens from one address to another one and I need to verify this transaction on the ...
1
vote
0answers
13 views

Setting up a full node while getting err="etherbase must be explicitly specified"

I was trying to setup a full node and getting err="etherbase must be explicitly specified". I followed the steps here https://docs.binance.org/smart-chain/developer/fullnode.html and syncing ...
1
vote
0answers
126 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....
1
vote
1answer
70 views

Keccak 256 Error

I encountered keccal256 error in binance smart chain based coin. This error occurred in a token generated with cointool.app. I came across this example. how to solve this error? https://blog....
1
vote
1answer
138 views

balanceOf giving wrong value on Binance chain using Ethers.js

I just started with blockchain programming, I tried experimenting with ethers.js and BSC. While using Token_contract.balanceOf("address") some contacts are giving wrong values, Example ...
1
vote
0answers
532 views

Transaction Underpriced at gas price less than 10Gwei on Binance Testnet

I am working on BEP20 token which I eventually want to deploy on the Mainnet. I have currently deployed the token on the Testnet. I am using metamask as my wallet. When I interact with the contract ...
1
vote
0answers
48 views

Re-creating transaction flow for specific wallets (BSC)

I was thinking of doing some good for the community. By my general profession, I am a lawyer and an Anti-money laundering specialist. I wanted to graph some transactions tracking funds from their ...
1
vote
1answer
34 views

Is it possible to take out more tokens than what's in a reserve?

My understanding was that one cannot transact more than what is available in a liquidity pool. However, this transaction seems to prove me wrong: https://bscscan.com/tx/...
1
vote
1answer
312 views

What should be done first: extract snapshot or create genesis?

bsc documentation describes a method of accelerating creation of a full-node using a snapshot. However, it is not clear in which order these commands should be executed and if it makes any difference: ...
1
vote
0answers
31 views

Minimum transaction value on token in solidity

Is there a way of setting a minimum transaction value on token in solidity? The point is that for transaction (purchase) to happen, the value has to be of some equivalent of ETH (say 0.2). Always. ...
1
vote
1answer
130 views

How to add my custom BNB Token on my shopify or woo-commerce store

I have created my own custom BEP20 token on Binance smart chain and want to add it as a payment method on my Woo-commerce or shopify store. Actually my store is running on shopify and it would be good ...
1
vote
0answers
49 views

How does PancakeSwap Lotery work? What is the Contract flow..?

I'm trying to figure out how the Lottery works... What is the flow..? How are Contracts connected? If I look at the Contract they listed ob BscScan (0x3C3f2049cc17C136a604bE23cF7E42745edf3b91) and ...
1
vote
0answers
248 views

Problem starting BSC Full Node - GraphQLPort is not defined in node.config

Trying to start running a full node as per the steps here: https://docs.binance.org/smart-chain/developer/fullnode.html Upon running the last step, "Start your full node" ## start a full ...
1
vote
1answer
755 views

how to get the reserves of all coin pairs at once on pancakeSwap

I am trying to query the pancakeSwap token pair contract for the reserves, and since I am trying to get it for 10000 tokens at a single time. My current solution is to basically loop over the 10000 ...
1
vote
1answer
67 views

BSC Op Code Costs

Where can I find the current cost of gas for each OP Code on the Binance Smart Chain? Is the gas per opcode always going to be the same as Ethereum? I'm specfically trying to figure out how much gas ...
1
vote
0answers
809 views

How to find the reserves of each coin pair on the pancakeswap coinPair smart contract

I am trying to calculate the reserves of each coin in the pool of a coin pair at a given time. using the https://api.pancakeswap.info/api/v2/pairs API, I can't seem to find that value. the API does ...
1
vote
0answers
60 views

How much total supply should I have to a newly created token? [closed]

I've created a BEP20 token and I can't figure out some steps. The total supply? How big the number must be?
1
vote
0answers
300 views

How do I get a random number on the binance chain in solidity?

How can I get a random number on binance smart chain in a solidity contract? I am seeing these articles from binance about chainlink: https://www.binance.com/en/blog/421499824684901349/New-on-Binance-...
0
votes
1answer
33 views

this coin is about to launch to a huge amount of people and i think it's a scam. can anyone take a fast look? [closed]

this coin will be pumping a lot in a couple of hours and i trully believe it's a scam. But i'm not sure how to check. Can anyone take a look at the contract and check if there's a mint function or ...
0
votes
3answers
59 views

Use ERC contract as a BEP20?

Is it possible to use an ERC token contract on the Binance chain? Would you just replace the uniswap router for the pancakeswap router? Or is it more complicated than that?
0
votes
1answer
2k views

Failing to add liquidity to pancakeswap on bsc testnet

Here is the error message. Fail with error 'PancakeRouter: EXPIRED' Here is the transaction details I suspect its because of the deadline attribute? I have no clue on how to do a block.timestamp , ...
0
votes
1answer
24 views

Persistent out of gas error with truffle latest on receive (Fallback) function

I am having a persistent issue programming receive fallback function on an smart contract where I am programming an staged pre-sale of a Token. When I try on Remix transaction looks as done, but it ...
0
votes
1answer
2k views

Why did my transaction fail? (BEP20 token in BSC)

I just created a BEP20 token in Remix and deployed it on the BSC Testnet. When I try to transfer tokens from my Metamask account, give me this message in Transaccion Data: Transaction decoding is not ...
0
votes
1answer
31 views

How do I get currency ratio between Binance Coin and US Dollars?

I'm selling items online, and I would like to accept Binance Coin. Becaue of that I would like to know how much my item costs in Binance Coin to be able to accept offers from users using that coin. My ...
0
votes
1answer
20 views

How to track ether received from smartcontracts without internal transactions?

I want to track the ether received from smart contracts, in the case of uniswap we can track using withdraw function, but if the smart contract does not raise this event it's difficult to track the ...
0
votes
1answer
2k views

Swapping Tokens On BSC Testnet

I'm having problems swapping two tokens on BSC Testnet, now i'm aware this code will probably work on mainnet, but i'm trying to get it to work on testnet first, It might seem trivial but I would ...
0
votes
1answer
864 views

Blacklisting Addresses?

We have been running tokens to prepare for a larger project and we have been getting sniped/botted the instant liquidity is added. This results in this sniper dumping 20 minutes later and killing any ...
0
votes
1answer
2k views

What are the Pancakeswap "*SupportingFeeOnTransfer" methods for?

There are a couple of methods in the Pancakeswap router contract ending in *SupportingFeeOnTransferTokens, such as swapExactTokensForTokensSupportingFeeOnTransferTokens Example: https://github.com/...
0
votes
1answer
390 views

calling updating functions from mainnet contracts within hardhat tests

im trying to test out a portion of my token contract code using hardhat, however im facing an issue. What im trying to do In my testing code, im trying to add liquidity to an external contract (...
0
votes
2answers
532 views

Should I limit the amount of tokens a person can buy/sell per transaction/per 24 hours

I'm creating a token and want to solve the big whale issue of pump and dump, or just the dump problem. As such, I thought about limiting how much an address can sell per transaction or per 24 hours. ...
0
votes
1answer
121 views

Binance Smart chain - private network implementation - guideline required

I am trying to understand the way Binance proof of stake authority(PoSA) works by implementing a private local blockchain. Therefore, I tried their official documentation but it seems like they simply ...
0
votes
3answers
2k views

Pancakeswap pools and farms not working on bsc tesnet. Undefined allownaces

We are tryting to make pancakeswap to work on bsc testnet. What we have done is as follows. We have renamed the cake token to another token e.g BarToken with Symbol BARS We have added liquidity using ...
0
votes
1answer
219 views

What chain is better about gas costs? Ethereum or Binance Smart Chain?

I am developing an smart contract and i want to know what chain is better about gas costs. Ethereum or Binance Smart Chain? Thank you
0
votes
1answer
656 views

Is the ETH in this Address Mine to Claim? Etherscan Shows Balance Left [closed]

I was wondering if someone could help me understand some confusing situation with a Binance ETH address I have. I was going through my records and noticed that one of the addresses I have used in the ...