Questions tagged [binance]

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

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

Reflection Token on BSC

Can anyone provide some solidity contract link of reflection token on BSC network. I heard that it doesn't require txn fees while transferring tokens to holders.
0
votes
1answer
25 views

Google pay payment using token

Can I use my token (BSC TOKEN) to pay on Google pay or any services which uses QRCode to receive payment.? Can anyone please share some links or code.?
0
votes
0answers
20 views

ETH mysteriously removed from my account around 12hours after using Binance Bridge

Perhaps someone can shed some light on this for me? Recently joined the crypto world. Created a Metamask account, sent some test eth, all was fine. Had a family member send some BNB, then add some ...
1
vote
1answer
24 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....
0
votes
1answer
24 views

Smart Contracts developed for Ethereum can also be used in Binance Smart Chain?

I'm newcomer to blockchain and i'm starting to develop a new token, and i've seen many places telling the similarities between the two blockchains. And i read that BSC have a EVM(Ethereum Virtual ...
0
votes
1answer
35 views

swapExactETHForTokens function execution

Please, help me. I try to do swapExactETHForTokens function from PancakeSwap Router contract. It's my code: def swap_exact_eth(router_contract_sample, token_contract, ...
0
votes
1answer
32 views

Approve fail [execution reverted]

Novadays we can see a lot of scamcoins on bsc. Why do all approve transactions fail? smart contract link. I thought all reverts preventing transaction execution. But here we can see error messages in ...
0
votes
0answers
30 views

How to send bnb programmatically in different scenarios

I am trying to add a price pool in bnb for my token and I did the following code: function swap(uint256 amount, address destination) private { uint256 bnbBalance = address(this).balance; ...
0
votes
0answers
20 views

How to Add a Function to an Already Deployed Smart Contract?

i create a contract on the BSC and i was testing it, this is my contract https://bscscan.com/address/0x8dee0418b841b6e18c27046a1097f590b0dd3dd8#code and now i have around 2BNB stuck in the contract ...
0
votes
1answer
12 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
99 views

Send transaction throw bsc with web3

i'm trying to send a transaction via bsc using WalletConnect and web3 This is the connection code const provider = new WalletConnectProvider({ rpc: { 1: "https://bsc-dataseed.binance....
0
votes
0answers
36 views

Create a link that uses MetaMask to send BEP20 Tokens to a wallet address?

I want to create a donate link that will allow the user to click and send .01 in BNB or .01 in a BEP20 contract. I've gotten this far with BNB: document.querySelector('.bnb-tip').addEventListener('...
0
votes
0answers
23 views

Incorrect return value after calling getTransactionCount

I have only few lines in the code: async function test() { await web3.eth.getTransactionCount('{ WALLET }').then(console.log); } test(); The return values are random: 0, 22 (this is the real value)...
0
votes
0answers
14 views

eth.syncing highest block is constant?

I am currently syncing a BSC node on a digital ocean vps. I have been syncing for a few hours now and the currentBlock is increasing by about 80k per 5 minutes. However i have noticed that when a call ...
0
votes
1answer
31 views

_takeLiquidity function does not take effect on Deflationary token

I created a Deflationary token mainly forked from safemoon. txFee & liqudityFee both 5%. I suppose every time someone transfers tokens, 5% of it will be burned and 5% go to my token contract. Once ...
0
votes
1answer
470 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
27 views

Redeploy a smart contract on bsc testnet

Is it possible to overwrite a smart contract used to deploy a bep20 token on testnet? I have made changes to a smart contract already deployed and wish to rewrite the smart contract already present, ...
0
votes
0answers
23 views

Switching between different networks in Metamask using web3 or any other automated way

I have two different smartchains in Metamask wallet ETH BSC Now I want to transfer money from one network to the other in the same wallet address either using web3.js or any other possible ...
0
votes
0answers
76 views

Error 'ds-math-sub-underflow' when trying to use pancakeswap router contract

I'm coding a simple app in node.js to retrieve token prices. I am using router contract '0x10ED43C718714eb63d5aA57B78B54704E256024E' and ethers.js library Most addresses seem to work correctly, but ...
0
votes
1answer
40 views

Smart contract to exchange old bep20 tokens for new ones

I've created two Bep20 tokens (old/new) and I was wondering if I could write a smart contract that exchanges/swaps old tokens for new ones. Is there a simple way to exchange two Bep20 tokens using a ...
2
votes
1answer
248 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?
1
vote
1answer
32 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 ...
0
votes
0answers
44 views

ETH/BSC Transaction subscribtion

Im connecting to BSC websocket with: let options = { filter: { value: [], }, fromBlock: 0 }; myContract.events.Transfer(options) .on('data', event => console.log(event)) ...
0
votes
1answer
111 views

How to deal with liquidity for a BEP-20 token?

I've released a few BEP-20 tokens so far and some of them have been quite successful at launch but then suffer from lack of perpetual marketing, my team and I are dealing with this challenge. However, ...
0
votes
0answers
226 views

JSON RPC Error code -32000 when deploying on BSCTESTNET with Remix IDE using Metamask

So I wrote a contract here: https://github.com/connova/CareBuds-Finance/blob/main/contracts/Buds.sol When deploying this using the injected web3 on the binance testnet (network name BSC Testnet) using ...
0
votes
0answers
18 views

Which payment API I can use to transfer Fiat money to my crypto exchange users ? ( At the time of withdrawl )

I am creating a Crypto exchange using Binance API/SDK , Users will register and deposit Fiat funds first into platform's paypal/stripe account using payment gateway. After deposit they can see virtual ...
0
votes
0answers
146 views

Compiler debug log: Error! Unable to generate Contract ByteCode and ABI Found the following

0 I deployed a contract of a token that has up to nine other files imported to the binance blockchain. I have done everything I can read and try in order to verify it. But it keeps giving me error. ...
0
votes
1answer
27 views

Auto BNB to charity / marketing?

I'm trying to create a charity coin that auto transfers percentages to BNB to go into the charity and marketing wallets. I saw that Morty Token was doing this. (https://bscscan.com/address/...
0
votes
2answers
32 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
221 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
93 views

Ethers.io javascript - Transaction failed when trying to sell token

I am trying to sell a token using ethers.io and javascript. Some tokens result in an error when selling the token and i dont know what is causing the error. async function selltoken() { let wbnb =...
0
votes
0answers
17 views

Stream BSCscan API?

I'm using API of BSCscan to get some info about a coin. There is a way to get a "stream" of data from BSCscan ? to get some info faster. Because my main problem right now is i do one call, ...
0
votes
1answer
62 views

Add fee to existing BEP20 contract

I'm trying to understand how to add a fee that gets transferred to an address. This is the contract that I want modified: https://bscscan.com/address/0x1f14e0F13471fea5990cf697945eD676885f42C3#code ...
0
votes
0answers
111 views

Scam: Variation of the price of the token in 5 orders of magnitude in a second. How does it work?

When purchasing a token, the wrong price is displayed. Specifically, trade.minimumAmountOut (slippageTolerance).raw ('trade' object is from @pancakeswap-libs/sdk-v2) minimumAmountOut shows much less ...
0
votes
0answers
243 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 ...
0
votes
0answers
15 views

Multplier Finance How to get the available reserves on mainnet and testnet

I am trying to conduct tests involving flash loans from multiplier.finance on the BSC testnet chain. I am trying to find out what the tokens with available reserves on the testnet lending pool. ...
1
vote
0answers
299 views

Run a Private and Presale before listing a coin on PancakeSwap

I am well into a development roadmap of a new token running on BSC. The Development stack is Truffle|OpenZeppelin (Crowdsale, ERC20) and Solidity ^0.6.0. I want to run the token sale in 3 stages; A ...
0
votes
0answers
11 views

Getting last buy timestamp for msg.sender in Solidity

I am looking for a way to implement an increased tax fee for msg.sender if they sell a smart contract token within a certain time frame from the last time they received the token. In Solidity, is it ...
1
vote
0answers
355 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 ...
1
vote
2answers
2k 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 ...
0
votes
0answers
19 views

Smart Contract is Minting - Help Needed

My smart contract is minting without a mint function. My smart contract can be seen here: https://bscscan.com/address/0xacd6fd33553b8dbb7efbc8ea3a1be09fa3650787#code It's meant to have a manual burn, ...
1
vote
0answers
23 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 ...
0
votes
0answers
48 views

Why the contract verification using truffle is failing?

I have deployed a smart contract on BSC test net and it is successfully being verified using the following code truffle run verify PancakeFactory --network testnet but it fails if I do it like this ...
0
votes
1answer
728 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
20 views

Error Occurred while changing compiler version

below is my contract with compiler version >=0.6.0. when I change the compiler version ^0.8.2 I am getting error as: Return argument type address is not implicitly convertible to expected type (...
1
vote
1answer
22 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/...
0
votes
1answer
1k 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 ...
1
vote
1answer
123 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 ...
0
votes
1answer
159 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 (...
1
vote
1answer
85 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: ...