Skip to main content

Questions tagged [binance-smart-chain]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 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
41 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
17 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
18 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
  • 131
0 votes
1 answer
27 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
25 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
36 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
56 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
83 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
69 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
266 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
78 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
0 answers
24 views

Decoding path from ExactInput

I have decoded the exactInput function, and got: {'params': {'path': b"\xbbL\xdb\x9c\xbd6\xb0\x1b\xd1\xcb\xae\xbf-\xe0\x8d\x91s\xbc\t\\\x00\x01\xf4U\xd3\x982o\x99\x05\x9f\xf7uHRF\x99\x90'\xb3\...
Nicolas Rey's user avatar
0 votes
1 answer
144 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
130 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
0 answers
40 views

Mainnet-fork has different result than mainnet

I'm currently forking Binance Smart Chain using Brownie and Python. The idea is to use the forked network to test if new BEP20 tokens can be traded (buy and sell) using pancakeswap, and check if the ...
BJ2M's user avatar
  • 11
0 votes
0 answers
60 views

InvalidResponseError: Returned error: The method eth_sendTransaction does not exist/is not available

I'm trying to interact with a smart contract on BSCtest using web3. I think the error occurs in this line rs = await TokenContract.methods.transfer(receiverAddress, 100000).send({ from: myAddress, ...
Ngọc Minh Nguyễn's user avatar
0 votes
1 answer
100 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
  • 137
1 vote
0 answers
469 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
301 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
30 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
276 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
0 answers
91 views

BNB Swapping using 0x API. Using WBNB, BNB or alternatively?

I am currently developing a service that uses the 0x API to swap tokens on the Binance Smart Chain (BSC). I am trying to enable swaps that involve BNB, the native token of BSC. (For example: sell BNB, ...
gruel's user avatar
  • 1
0 votes
0 answers
428 views

Can i transfer token contract on sepolia testnet to Safe smart contract wallet address on bnb smart chain?

I want to use safe smart contract wallet address as multi-sig wallet for our token smart contract to mint/send & transfer tokens. Before connecting to our actual token smart contract we want to ...
Alexander Ström's user avatar
0 votes
0 answers
19 views

Random delay inside a smart contract function

So, I'm trying to implement an anti-sniping feature that would make the users wait a random time between 0-12 seconds - specifically 0, 3, 6, 9 or 12 seconds because my smart contract would be on BSC. ...
duskdusk13's user avatar
0 votes
2 answers
531 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
36 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
0 answers
50 views

Can't SWAP on Pancake Rooter with web3.py

I try to make a function that calls swapExactTokensForTokens on pacakeswap v2 rooter. The approval is mined, so is the swap. But when i check on bscscan, the contract execution fails for the swap (not ...
Newly Sama's user avatar
0 votes
1 answer
53 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
42 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
389 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
12k 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
2k 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
41 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
1 answer
1k 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
325 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
87 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
421 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
33 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
1 answer
166 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
739 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
50 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
526 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
136 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
115 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
135 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
137 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
102 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