Skip to main content

Questions tagged [binance-smart-chain]

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

Error: server returned an error response: error code 3: execution reverted: revert: Pancake: TRANSFER_FAILED

I'm trying to do a swap on pancakeswap V2 with anvil fork and I'm getting revert: Pancake: TRANSFER_FAILED I'm trying to call this function doSwap() external payable returns (uint256[] memory) { ...
Saikat Karmakar's user avatar
0 votes
0 answers
13 views

how to create a BSC safe contract on the 1.1.1 version when i

I've encountered an issue where I sent BNB to a Safe contract on Ethereum (v1.1.1) at a time when BSC was not yet supported on that version. Now, I'm struggling to recover the BNB from this address, ...
Juan Serrano's user avatar
0 votes
1 answer
27 views

How can I limit the number of owner transactions?

I want to make a token that has the least developer's interference. So I am making a future of my token that limits the number of owner transactions. I show necessary part of code. contract Token is ...
Snap_Lan's user avatar
0 votes
0 answers
106 views

Swap without gas fee on bnbchain

Does anyone know how this guy can swap with gas price = 0 gwei?
Quy Trong's user avatar
0 votes
0 answers
14 views

Fiat-to-Crypto Subscriptions

Looking for Fiat-to-crypto subscription methods unable to find any. I've seen some solutions using circle and stripe but I'm not looking for a stripe based solution
Shahroz Khan's user avatar
0 votes
0 answers
11 views

Copi tokens missing from my metamask wallet [duplicate]

I had 10000 Copi tokens in my Metamask wallet and they are all transferred to 'PancakeSwap V2: COPI 5' and can see a transaction history. But I didn't initiate this. Could someone help me understand ...
RhysMamba's user avatar
0 votes
0 answers
96 views

How To Find DexTool Trade Transaction Hash On BscScan / EtherScan

I'm presently trying to hunt down a rug pull of a fake PRCL token. I realize this is Binance Smart Chain, not Ethereum, but there's no community for Binance Smart Chain and it should hopefully be ...
azoundria's user avatar
  • 121
0 votes
0 answers
61 views

Are Binance smart chain flash swaps using Pancake swap working?

I am practicing solidity and I am trying to use flashswaps. I am trying to perform flash swaps / borrow a flash loan using Pancake swap. I wrote a script that does that but for some reason when I try ...
Design_Smith's user avatar
0 votes
1 answer
22 views

Converting ETH from Ethereum Wallet to BNB on a (BSC) Wallet

How can I programmatically convert ETH from an Ethereum network wallet to BNB on a Binance Smart Chain (BSC) network wallet?
adam mr's user avatar
  • 141
0 votes
1 answer
32 views

Feeding a Smart contract with large Data

I want to feed a smart contract with multiple 5000 or more wallet addresses (for whitelisting purposes) in an array in a single transaction. How can I achieve that without sending data in chunks? ...
Bhushan Dhiware's user avatar
0 votes
0 answers
71 views

npx hardhat test "Timeout of 40000ms exceeded" when repaying flash loan

I am trying to follow along with a youtube tutorial that teaches you how to make a basic uniswap flash loan application. I have copied every piece of code, line by line, from the video as instructed. ...
ChewyCorndog's user avatar
0 votes
0 answers
68 views

error="abi: improperly formatted output:

I have modified the bsc genesis contract and added only more function: function addValidator(address _consensusAddress) public { currentValidatorSet.push(Validator({ consensusAddress: ...
user132452's user avatar
0 votes
1 answer
65 views

I have a few questions about my token

Recently I have created a meme token based on the Gotta Lock In meme. When I deployed it to PancakeSwap, I deposited 19.000.000 $LOCKIN alongside with ~15$ of BNB into the liquidity pool. However once ...
Bùi Bảo Hoàng's user avatar
0 votes
1 answer
131 views

Decode "pending transactions" from socket without calling RPC for every transaction?

Initial goal: catch transactions from address (when address calls "swap" events or "addliquidity" events, or does transfer on PancakeSwap router). I want to catch that kind of ...
Danik Logan's user avatar
0 votes
0 answers
94 views

PancakeSwapV2 router "getAmountsOut" function returns wrong value

I'm struggling with "getAmountsOut" function, which works kinda fine for BNB/CAKE or CAKE/BNB. But it in some cases it just returns straight wrong values. Code: public async Task<decimal&...
Danik Logan's user avatar
1 vote
2 answers
524 views

Nethereum: any pancakeswap contract function call results in "execution_reverted", all transactions fail with same error

I'm completely new to web3, and I do realise that there is small portion of information on the web3 for developers, especially when it comes to debugging and issue solving. My main goal is just to ...
Danik Logan's user avatar
0 votes
1 answer
128 views

Transaction on BSC gets reverted due to Fail with error 'TransferHelper: TRANSFER_FROM_FAILED'

I'm not able to make a swap using the contract for some reason (I'm sure that I'm missing something fundamental). Here is the code. https://bscscan.com/address/...
somaito's user avatar
0 votes
1 answer
795 views

0X Swap failing when swapping Token X for Native Currency Smart Contract Integration

i have a contract that i would like to utilize the zeroEx protocol with i am calling the qoute endpoint like this https://bsc.api.0x.org/swap/v1/quote?sellToken=...
Kay Albertus's user avatar
0 votes
2 answers
194 views

Test BNB / WBNB for Development testing purpose

I am in need of 100 test BNB for testing purpose but with faucet its not possible to get that much is there any way to have that much test bnb. OR is there any existing liquidity of test BNB / WBNB ...
Bhushan Dhiware's user avatar
0 votes
1 answer
114 views

Is Making an NFT on Binance Smart Chain on Remix currently possible? (compiler versions problem)

I'm trying to make a basic imageless NFT for Binance Smart Chain using remix.ethereum.org (for NFT identity verification purposes) but I've encountered a problem. Basically solidity version 0.8.2 or ...
Adjam's user avatar
  • 147
1 vote
0 answers
632 views

How to programmatically auto-add liquidity on transaction (ERC20, BEP20), (Uniswap Pancakeswap), (V2, V3)

I've perused the liquidity docs on the relevant DEXes Uniswap and Pancakeswap, as well as on Github. I've found no good tutorials outlining how to add liquidity by code. It's like trying to complete a ...
Ashraile's user avatar
  • 125
0 votes
1 answer
393 views

Is it possible to transfer USDC from Fantom Opera network to BEP-20 network?

I have tried couple of bridging websites like Anyswap, Spookyswap but it failed badly. My coins are stuck in Fantom network. I want to switch them to other network, any suggestion?
TNX LABS's user avatar
0 votes
1 answer
33 views

I cant verify my contract. It is very basic code

I cant verify my contract. It is very basic code. I cant understand why. https://i.sstatic.net/tBEUl.jpg
user125862's user avatar
1 vote
0 answers
355 views

Pancake swap hack

I have been recently victim of a pancake swap by buying some custom token. My Ledger and my Metamask were connected to pancake swap while i tried for the 1st time a Crypto Pump found on Telegram (a ...
soleshoe's user avatar
  • 111
0 votes
2 answers
563 views

Error deploying my contract

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {"jsonrpc":"2.0","...
Josue Isaias Martinez Rodrigue's user avatar
0 votes
0 answers
59 views

Transactions not ordered fairly? (BSC)

If we take a look at the first few transactions block 29930437 on Binance smart chain, there is something very interesting going on, if we compare gas prices: Tx 0: The first transaction payed ~2132 ...
Jaron_e's user avatar
0 votes
1 answer
74 views

Is There Any Way? To Manipulate My Token Price?

**What If?** Is There Any Way? I Create a Coin Recently and Then Provide liquidity of **1 BNB = 100K LKZ** [Coin Name] after that I buy my own coin from another wallet 2 BNB = 200K LKZ but Now I Sell ...
Muhammad Hamza's user avatar
1 vote
0 answers
43 views

Smart Contract working perfectly fine on remix but I face issues when I deploy it on the Binance Test Net

I made a smart contract that allows user to enter pools and place a bet. When the pool time ends the users are given rewards given that they their bet turned out to be correct. When I tested this ...
Anas Naeem's user avatar
0 votes
1 answer
444 views

Snapshot extension registration failed and Snapshot extension registration failed docker image bsc:1.2.5

Good Day Team I have used the following latest docker image to run a node ghcr.io/bnb-chain/bsc:1.2.5 I start up my docker container using the following docker run -v (pwd)/data/node:/bsc/node -p 8545:...
Kay Albertus's user avatar
8 votes
5 answers
15k views

invalid opcode: opcode 0x5f not defined

I'm new to Solidity and it's my first try to write a smart contract using Openzeppelin, Pancakeswap and BEP20 libraries basically to make a BEP-20 token. When i try to deploy the smart contract, i get ...
Mohammed's user avatar
0 votes
2 answers
3k views

Fighting against BNB sweeper bot

here's a short description for people not involved in crypto world. There's a Metamask crypto wallet that was connected to BNB network, and used to stake some tokens (freeze them for long time to get ...
skazichris's user avatar
0 votes
0 answers
46 views

BSC Wallet hacked. Sweeper in my wallet [duplicate]

new here! Recently my seeds were compromised/stolen (maybe a suspicious download). I have some blocked tokens linked to my wallet. Whenever I transfer some Token, the sweeper transfers it to the ...
mdsl developer's user avatar
1 vote
2 answers
2k views

can I withdraw funds from a smart contract without a withdraw function?

Is there a way to withdraw funds from a smart contract that doesn't have a withdrawal function? I have tried different ways, but I don't understand How can I do it exactly. The contract is deployed ...
Hamza Amin's user avatar
0 votes
1 answer
445 views

HTTP requests limitation for an Ethereum Node

I have a fully synced Binance smart chain node with a proxy_pass to nginx for external request. The problem that i have is the JSON-RPC return "null" if i process a large amount of requests. ...
Mohammed's user avatar
1 vote
0 answers
101 views

Smart Contract not Transferring balance

I just started learning how to write smart contracts. I've been stuck on one thing for the past 2 days, I cannot get the contract to transfer the balance out once it ends. Step 1 - Users send BNB to ...
keeks's user avatar
  • 11
0 votes
1 answer
513 views

Binance smart chain node API provider without billing per websocket response

I'm unsure if this is the correct place to ask but I thought I'd try anyway. Problem I want to build a Node.js application using the Web3 library. The application should collect prices on liquidity ...
Jaron_e's user avatar
0 votes
1 answer
78 views

How do I integrate crypto options into my website?

I'm trying to add crypto options to my website. I've seen the name Ribbon finance a few times as a defi options provider. They don't seem to have the contracts that I'm interested in implementing on ...
Ricky Conn's user avatar
0 votes
0 answers
14 views

How to fix "Warning: Visibility for constructor is ignored"? [duplicate]

I made a token for family and friends, mostly to commemorate a loved one, the total coins are their date of birth, nerdy I know, but very me. The issue I have is I'm only learning to code very ...
LockHart's user avatar
0 votes
0 answers
187 views

Checking for a transaction on a large number of bsc addresses

I need to frequently check a large number of addresses for transactions on the bsc network (at least a thousand per second), what is the best way to do this? The only solution I know of is to run my ...
Cosmo773's user avatar
0 votes
3 answers
929 views

How can i input 0.001 value in solidity?

I want to list token on marketplace and price in form 0.0001 or 0.2 etc how can i do that ? solidity just unit. thanks a lot.
Ngan Dinh's user avatar
0 votes
1 answer
52 views

Is it possible to simultaneously call a method from the children's smart contract by the parent's smart contract?

I have a smart contract on the BSC network that has created a large number of children and stored the address of each. In the child smart contract, the UUDT token is stored. Also, each child smart ...
softweng's user avatar
  • 129
0 votes
0 answers
559 views

Error: invalid BigNumber string (argument="value", value="5.01", code=INVALID_ARGUMENT, version=bignumber/5.7.0)

I get this error, I tried to convert value values ​​to String as proposed in some solutions but nothing const express = require("express"); const http = require('http'); const Web3= ...
Jesús Moraño's user avatar
0 votes
1 answer
151 views

I want to access several multi-sig wallets deployed with pragma solidity >=0.5.0 <0.7.0. How can I get the right frontend? Github Gnosis Safe v3.12.0?

I have several wallets that need to be accessed with the interface that was live on https://gnosis-safe.binance.org. When it changed to https://gnosis-safe.io/app/bnb I transferred several funds but ...
Amos ProDeo_Crypto's user avatar
0 votes
1 answer
118 views

I am trying to bet with CAKE, previously it was BNB, but I am getting "invalid BigNumber value" error

I am trying to bet with CAKE, previously it was BNB. //Bet UP const betUp = async (amount, epoch) => { try { const tx = await predictionContract.betBull(epoch, { value: parseEther(...
saiyan prince's user avatar
0 votes
1 answer
180 views

BNB not received in metamask. account hacked

I send my funds from binance to metamask but they didn't arrive there, as soon as I made the transaction those funds were sent to this 0x9BaA07fE6fe645Bb29A53E064699d30Bd5c63e0E address. . please help ...
Ravi's user avatar
  • 1
0 votes
1 answer
1k views

Why the BSC block gas limit change and what's the logic behind it?

The bsc block gas limit is always very close to 120,000,000. But it can be 119,529,427 or 119,996,337 for some blocks. It seems to stay between 118M and 120M Why does it change and what's the logic ...
sgbbfbf's user avatar
0 votes
1 answer
159 views

I accidentally sent tokens to a wallet address on BSC which is a token contract address on Optimism but not on BSC. Can I get my tokens back? [duplicate]

This is the link for token contract address on Optimism. https://optimistic.etherscan.io/address/0x8700daec35af8ff88c16bdf0418774cb3d7599b4#code This is the link for the address on BSC. https://...
Kaustubh's user avatar
0 votes
1 answer
113 views

Staking beginner guide for writing smart contract (binance smart chain)

I have some confusions related to staking anyone can explain these little points. I want to give staking feature of ERC20 tokens at binance smart chain i have also created a staking contract that is ...
Jahanzaib Rashid's user avatar
0 votes
1 answer
645 views

I got the exact same address for a contract deployed on both bsc and ethereum testnet

I deployed the same smart contract using hardhat on goerli ethereum testnet and binance testnet and i was surprised to see that they both have the exact same address... How is that even possible? Is ...
Malzahar's user avatar
1 vote
1 answer
256 views

Why BNB Chain is not working?

My transactions on BNB Chain are not going through. My BNB Chain node is not syncing.
Mikko Ohtamaa's user avatar