Questions tagged [binance-smart-chain]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 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
13 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
0 votes
0 answers
33 views

_transfer() Function problem : Cannot estimate gas; transaction may fail or may require manual gas limit

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 with the following features : Ownable, ...
Moho's user avatar
  • 23
2 votes
2 answers
692 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 ...
Moho's user avatar
  • 23
0 votes
1 answer
109 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
7 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
15 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
33 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
94 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
56 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. ...
Moho's user avatar
  • 23
1 vote
0 answers
28 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
12 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
24 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
0 answers
121 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
0 answers
15 views

Need help with a hacked MM defi wallet

How do I find software to run on my hacked defi wallet so I’m can beat the hacker to my tokens which he is harvesting from my staking which produces tokens 24/7.
Dan S's user avatar
  • 1
0 votes
1 answer
17 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
62 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
0 answers
44 views

Calling emergency withdrawal on deployed unpublished smart contract Binance

Does anyone know how to call emergecny withdrawal function on a contract that is live and in use but not published on BSC Scan? Example: 0x7F62c957151810cD743e5707465F4937422300cC is live but not ...
The-Op2444's user avatar
0 votes
0 answers
30 views

Extremely High gas price after Transparent Proxy Upgrade of BEP20 token BSC

I upgraded my BEP20 token contract recently and all seems normal except that now the gas fees went from average of 35 to 50 cents to $13 to $32 dollars for 1 single token transfer, we are using the ...
TheJam2023's user avatar
0 votes
3 answers
206 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
28 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
0 votes
0 answers
284 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
0 answers
43 views

"Error: Function call to a non contract account " without any context

I have been learning about reading from Blockchain and been trying to put tokens from Pancakeswap using the functions -allPairs() from PancakeV2Factory and -token0() ,token1() from IPancakeV2Pair ...
user114091's user avatar
0 votes
1 answer
70 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
82 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
49 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
433 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 ...
Thiou's user avatar
  • 3
0 votes
1 answer
51 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
58 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
274 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
135 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
1 vote
0 answers
80 views

bscTestnet hardhat deployment problem

I've been racking my brain for quite a while now. Before, I was able to deploy my code in bscTestnet with no problem, but recently, without changing any code it always stuck and it's not working. so ...
Lonewarp's user avatar
  • 141
1 vote
0 answers
203 views

Buying tokens from a smart contract that receives BNB from another smart contract

I'm trying to develop a smart contract that will receive BNB directly from a token contract and then use this to buy tokens from the BNB it has received. But everything I try seems to cause issues and ...
TheDev's user avatar
  • 35
1 vote
0 answers
18 views

Issue with a smart contract not collecting tokens in the contract

So ive got a smart contract that i found from another ERC-20 network and now im trying to use it on binance smart chain and having an issue, The contract is a token that collects a certain amount of ...
KeelanB's user avatar
  • 11
1 vote
0 answers
68 views

What would happen to my ETH token if I transfer it from Binance using BEP20 network to Eth main network in Metamask? [closed]

Recently, I transferred Eth from Binance using BEP20 network instead of using ERC20 to Eth main net in metamask. And i also received it in my BNB Smart chain as Bnb pegged Eth. But soon after ...
Rohit Ranjan's user avatar
0 votes
0 answers
167 views

pending transaction doesnt exist on bsc fullnode

I am trying to get pending transactions via the full node in the binance smart chain. My command to run geth is : ./geth --config ./config.toml --datadir ./node --cache 18000 --rpc.allow-...
Mohsen Rahnamaei's user avatar
0 votes
0 answers
111 views

Why WBNB balance does not appear in bscscan?

I'm playing with WBNB, and when I make a deposit of BNB to WBNB Smart Contract I receive the same amount of WBNB to my wallet (I can see it in Metamask). Everything it's Ok. The problem is that when I ...
Alexander Herranz's user avatar
1 vote
0 answers
326 views

How to create antisniper mechanism swap ERC20?

When adding a pool of liquidity to a pancake, in the first second the dividend is bought up by the bot and users buy already at an inflated price. There are ways to counter these bots. However, I can'...
Alex Baker's user avatar
1 vote
1 answer
38 views

transfer wbnb from contract to metamask

i transferred wbnb from my deployed contract to metamask using python. The transaction was not executed. However, when checking later the wbnb balance of my contract was 0, my wbnb was stolen. i have ...
JhonatanAlfred87's user avatar
0 votes
1 answer
73 views

Transfer Bitcoin and other tokens through a Binance Smart Chain

How would one transfer tokens such as Bitcoin through a finance smart chain (so from Binance) to a hardware wallet like Trezor, in order to avoid higher fees? Also, which the third party could be used?...
Aristarchus_'s user avatar
0 votes
0 answers
15 views

Binance Transaction issue, Metamask and Trezor

transaction from Binance does not appear on my Trezor wallet, MetaMask, or any other third-party wallets. When I search for the transaction history in Etherscan it says that it was successful under ...
Aristarchus_'s user avatar
0 votes
0 answers
36 views

Transaction do not appear on Metamask nor Trezor. Binance Smart Chain

I made a couple of transactions from Binance for testing the Trezor hardware wallet yesterday. Transaction history does not, however, appear neither on the Trezor app, MetaMask, or Exodus. I have ...
Aristarchus_'s user avatar
0 votes
0 answers
119 views

Conditional gas settings for BSC transactions with MetaMask

The main objective is to conditionally set the gas price for the transaction on MetaMask in BSC. I understand that MetaMask by default provides with the settings or to speed up the transaction but the ...
Mukund Chourey's user avatar
0 votes
0 answers
277 views

How to get highest volume trading pairs from Pancakeswap using python

Is there a way to get the Pancakeswap trading pairs with the highest volume? I have tried using graphql, but for most queries I get a timeout error 524. I know I can also use the python web3 library ...
Marc's user avatar
  • 257
0 votes
1 answer
204 views

how to setup up Gas Price POA network

I have setup POA Network with clique, 5 Node with Public RPC, everything working fine, but i would like to setup Gas Fee to 25 GWEI automatically Metamask pick this estimation, by Default POA has 1 ...
Tej Bhandari's user avatar
0 votes
0 answers
592 views

Hardhat throwing 'missing revert data in call exception; Transaction reverted without a reason string'

After installing Hardhat's npm package latest version following this brief guide and setting up my first 'sample project', i tried to create a script and deploy a contract on the BSC mainnet. I edited ...
Mattia Monari's user avatar
2 votes
1 answer
100 views

Truffle contract factory test with Javascript

Here is my smart contract source code. // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; contract CampaignFactory { address[] public deployedCampaigns; function createCampaign(uint ...
enthusiastic's user avatar
0 votes
0 answers
46 views

Can you help teach me how to deploy my Token using this contract

This is the link to Contract gist on Github, it's a dividend-paying smart contract that pays BUSD as rewards. https://gist.github.com/Vicktron/6650af80e214b3c64eb857fb6343b3a0 This is what happens ...
VictorIsaac's user avatar
1 vote
1 answer
205 views

Native token Bridge to swap another native token

I have a smart contract on the BSC network that I want to accept other tokens like AVAX, MATIC, ETH, and other EVM compatible tokens. How would one go about letting a user use AVAX but at the end it ...
Scott Deutsch's user avatar