Questions tagged [binance-smart-chain]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 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
44 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
51 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
46 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
121 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
51 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
13 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
123 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
46 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
30 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
41 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
68 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
0 votes
0 answers
279 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
0 votes
1 answer
179 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.stack.imgur.com/tBEUl.jpg
user125862's user avatar
1 vote
0 answers
197 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
73 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
357 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
16 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
490 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
26 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
44 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
45 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
39 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
306 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
0 votes
0 answers
201 views

BEP20 Token : Gas estimate failed, trying eth_call to extract error

I'm new to Solidity and I've successfully built a BEP20 smart contract using Solidity version 8.19. The contract includes several features such as pausable, ownable, blacklist, fee division among ...
Mohammed's user avatar
0 votes
0 answers
22 views

fun project i want to create a CEX

hey i want to create a centralized exchange just for fun project and to understand how things works. Is there any good open source project and good docs for that please? Thank you !
Gaara's user avatar
  • 1
0 votes
0 answers
25 views

What the trick of this solidity, scammers/dev can sell more than the total supply also contain a honeypot, can anyone explain what happened?

*Submitted for verification at Etherscan.io on 2023-05-18 */ // t.me/BestWallet // BestWallet.com pragma solidity ^0.8.15; library SafeMath { function mul(uint256 a, uint256 b) internal pure ...
botol baru's user avatar
7 votes
3 answers
9k 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
1k 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
10 views

What changed in the consensus mechanism in Luban Update of BNB Smart Chain?

I am trying to validate the BNB SmartChain blocks and after the last update in the testnet of the chain, the signature of the blocks are not being validated. I can see the Extra Data field is much ...
sha25652's user avatar
0 votes
0 answers
30 views

How do i code a deposit/withdraw solution like stake.com?

I want to build a similar solution, where users can deposit BNB to a smart contract and we will then credit the user with in-game tokens in our game. When a user wants to withdraw we need a solution ...
hornsleth shop's user avatar
0 votes
0 answers
38 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
252 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
63 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
0 answers
29 views

How to implement Cross-Chain in ICO

While checking ICO presale sites, I noticed they have chain switch functionality. For example, when I visit c+ charge, I see the below Ethereum - BSC network switch. What I want to know is how to ...
alexpopov86's user avatar
0 votes
0 answers
73 views

PoSA(Proof of Stake Authority) and NPoS(Nominated Proof of Stake Authority?

The Proof-of-Staked-Authority (PoSA) consensus algorithm is a hybrid between the Proof-of-Staking and Proof-of-Authority consensus mechanism. Nominated proof of stake, or NPoS, is similar to proof of ...
Leon Africa's user avatar
0 votes
1 answer
356 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
21 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
135 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
583 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
49 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
484 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
119 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
106 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
97 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
945 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
119 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