Questions tagged [bsc]

Binance Smart Chain (BSC) is a blockchain network built for running smart contract-based applications.

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

How can check if token is a scam with web3js?

I build a small dApp for checking asset in my wallet. I use Moralis API for get all token balance in my wallet (and it's work fine!). But now, I would like to check if each token in my wallet is a &...
0
votes
0answers
6 views

I have several conceptual questions about the Ethereum blockchain network and the Binance Smart chain

I have been playing some tokens on the Ethereum blockchain network, and then, I have just moved to the Binance smart chain network. I could see, the payment unit is generally ETH on Ethereum netowork. ...
0
votes
0answers
11 views

How to organize solidity source code?

I have created a smart contract which has lots of functions variables, and events, making the smart contract too big. Can I separate the parts following a recommendation? I have the following parts: ...
0
votes
0answers
16 views

Decode input parameter without ABI

I have a transaction with input data that looks like this: 0x2293db5700000000000000000000000030823e060e8be429b34bd9192df9cad4b166a056 I know that the last 40 characters is the token address which ...
0
votes
0answers
8 views

New blocks delay in my full node

I am subscribed to the new blocks on my node: newHeads Fires a notification each time a new header is appended to the chain, including chain reorganizations I have a node that exceeds two on the ...
0
votes
0answers
15 views

Why can I save my Dogecoin on Binance Smart Chain (BSC)?

I thought Dogecoin was the token of a totally different blockchain network which isn't Ethereum-compatible? When I tried to google "dogecoin metamask" looking for a way to use metamask as ...
1
vote
0answers
13 views

bsc node lags behind the network

bsc full nodes often lags behind the network. it's freezes and then starts to catch up. both nodes are running on nvme. what the problem looks like: the node stops syncing while the network height ...
0
votes
1answer
24 views

How can I register my NFTs on opensea

I have created ERC721 contract on BSC Mainnet and minted few NFTs, but i don't know how i can see them on opensea, i tried this on rinkeby it worked perfect, I could see all my NFTs there on testnets....
0
votes
1answer
8 views

Help with MetaMask

Hope you're well today. Was wondering if you're able to explain me how to add on my website a feature that they click on the bottom “connect MetaMask” then connects to people's wallet and shows them ...
0
votes
0answers
6 views

Get first x transactions of a Token; monitor latest activities of x wallets

I am interested in receiving information of the first x transaction of BEP-20 token/contract and how to monitor the last x transactions of a wallet. Maybe the question leads to the same query request. ...
0
votes
1answer
28 views

BEP-20 Token Transfer Error

I am unable to transfer test tokens from my address (say address A) to another address B. The steps I did were deploy and verify a rebase contract, all tokens were automatically sent to my address. ...
0
votes
0answers
14 views

What's the easy way to chack all asset in a wallet?

I'm trying to create a "simple" wallet checker on the BSC but without using any API, only with the blockchains data. But I don't find the "easy" way to do that or I don't ...
0
votes
0answers
7 views

txByPriceAndTime block sorting exceptions [duplicate]

As writen in GETH, transactions inside block is sorting by rule txByPriceAndTime, where if transactions have same price, they sorted by first come first serve. Most of blocks in BSC/ETH is working ...
0
votes
1answer
41 views

I want to add fees in my token contract such that when someone buys my token he needs to pay some fees? any idea how to do it? below is the code:

this is the GitHub link to sol file feel free to check it out: https://github.com/Haris-Shaukat/Token/blob/main/Token.sol
0
votes
0answers
64 views

Returned error: unknown account Web3.js on BSC using Metamask

I'm using Metamask for calling smart contract.I tried to call one of the smart contract payable method but I got this error "Returned error: unknown account".Everything was working fine, ...
0
votes
0answers
61 views

MetaMask - Internal JSON-RPC error

i was developing a full stack nft marketplace, where i can mint nfts but when i try to buy it gives me this error :MetaMask - Internal JSON-RPC error code: 3, message: "execution reverted: Please ...
0
votes
0answers
39 views

How to setup transaction data manually with 1inch contract v3 and web3

I am writing a trading bot by using 1Inch contract on BSC chain. 1inch contract addr: 0x11111112542d85b3ef69ae05771c2dccff4faa26 To perform an transaction, i follow: Use swap API to get tx data: ...
0
votes
0answers
72 views

How to sync liquidity pool on Pancakeswap with the BSC Testnet?

I'm using this PCS clone on the testnet: https://pancake.kiemtienonline360.com/#/swap And I'm trying to understand how an elastic token works. I'm looking at Gravitoken (https://bscscan.com/address/...
0
votes
0answers
13 views

Locking liquidity on pancake, trading fees

I want to lock the liquidity tokens (LP), so people trust more my token. My concern: So, when you hold the LP tokens in your wallet, you will get trading fees when people trade in your liquidity pool, ...
0
votes
1answer
21 views

when i try to upload a contract with remix i get error on gas estimate Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

When uploading a project from remix (bsc testnet) i get this msg, Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force ...
0
votes
0answers
28 views

Error when deploying a smart contract that implements IUniswapV2Router02

I'm trying to implement a token and list it in pancakeswap. I got the code from babyusdt contract. I'm using truffle tool for compiling and deploying. This is the constructor: Actually I changed the ...
0
votes
0answers
19 views

How to add availability to receive another tokens as a payment

I created some kind of nft marketplace, deployed to BSC. So gonna use BNB as a main payment. Please advise how to solve the following questions: How to add additional ERC20 token as a payment that is ...
0
votes
1answer
17 views

Where/How to fetch current price of my new token on BSC?

I'm playing with solidity on BSC network...if I want to fetch the price of my test token, which service could I use? Can I write a function inside the smart contract of my token that retrieve the ...
0
votes
0answers
13 views

UnhandledPromiseRejectionWarning: Error: invalid type (version=abi/5.0.7) When Decode Input Data Input in Binance Smart Chain (BSC)

I used web3js decode input data but dislay ERROR : UnhandledPromiseRejectionWarning: Error: invalid type (argument="type", value="_factory", code=INVALID_ARGUMENT, version=abi/5.0....
0
votes
1answer
32 views

Understanding Deployment and contract design for BSC and pancakeswap

I understand that for the Ethereum Mainnet you need to create an ERC20 Token and for BSC you need a BEP20 Token. Let's say I want to create a simple smart contract and deploy it on Pancakeswap. In ...
0
votes
0answers
26 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
41 views

How to send transaction to payable contract on Binance Smart Chain without Metamask

Suppose there is a live contract (on live network, not test network) out there on Binance Smart Chain and it has a payable function that I want to use. I want to use web3 to send a transaction and ...
0
votes
1answer
21 views

Is it possible to make own "binance bridge" with smart cntract

Hay everyone I was wondering, is it possible to make a smart contract that can change your tokens network for example from erc-20 to bsc? (Smothering like binance bridge) I would be glad if ...
0
votes
0answers
45 views

Error? decode BSC input data using python3

Hash:0xf45f14b3eafa1867deafe6cdcddf0c751da125744ddcef0aa3e9c34221ecca83 When I was trying to decode the BSC input data by python, TokenContract=web3.eth.contract(address=contract, abi=abi) transaction ...
1
vote
0answers
25 views

How to use geth devp2p to find nodes on non-ethereum chains?

Non-ethereum chains: other chains use geth such as BSC or ethereum layer2 chains such as Polygon. I can find ethereum nodes with devp2p discv4 crawl -timeout 30m all-nodes.json But can't find Polygon ...
0
votes
1answer
67 views

swapTokensForEth transaction fail when called within a contract in a swap

I have this token test contract: The contract has a transaction tax of 1%. The transaction fee is converted to (myContractToken to bnb) and sent to a wallet. It is used the balance of the token that ...
0
votes
0answers
25 views

The method 'debug_traceTransaction' does not exist / is not available. Remix in BSC test net

I deployed with Remix a contract on BSC testnet successfully. I have tried to use the remix debugger with a failed transaction (swap in pancakeswap) but I get the following error message in Remix: ...
0
votes
0answers
3 views

Sorry, but the decompilation process exceeded the timeout threshold and could not be completed

i'm trying to use the "decode" function of BSCscan for a contract (https://bscscan.com/bytecode-decompiler) but i got this error : There is an alternative solution to decode big contract ...
0
votes
0answers
14 views

How much speed do I gain in transactions executing them from my own node?

When I send a transaction, it usually takes between 7 and 15 seconds for it to be added to the blockchain in Binance Smart Chain. Advantages of having your own node: It means that one direct benefit ...
0
votes
2answers
23 views

TranferOwnership Recursion

If i have a contract C that is the owner of contract B and contract B is owner of contract A. Can C in is contract call transferownership from contract A? Please help
0
votes
0answers
8 views

token veryfying on testnet but not on mainnet (bsc)

i deploy a contract on bsc mainnet but it gives me error. that byte code and abi is not matched. but the same source code verified on testnet. what could be the reason?
0
votes
0answers
6 views

predefined error in web3js like poocoin

Sometimes I need to check the error before sendSignedTransaction, like poocoin, they has predefined error before transaction send, how to make that with web3js?
0
votes
1answer
30 views

Does the etherscan api work with bsc chain?

Does the etherscan api work with bsc chain? I am trying the code below but it does not work. Yet it works on rinkeby network. const etherscanProvider = new providers.EtherscanProvider( 56, ...
0
votes
0answers
234 views

Game architecture, Plants vs Undead, LE to PVU

My question is simple, so the blockchain game PVU has 2 tokens, LE and PVU. In the game, your actions make you earn LE, which you can exchange to PVU. But the strange thing is that, LE is not a ERC20 ...
0
votes
1answer
59 views

token is not verifying on bsc scan

i am using remix to deploy this token. it compile and deployed to mainnet/testnet using remix. but when i try to verify the source code it gives me this error. Error! Unable to generate Contract ...
0
votes
0answers
9 views

Can we convert ethereum to busd from smartc contracts which executed on binance smart chain

I have smart contracts running on a binance smart chain. I have also miming ethereum farm. So i want to distribute these ethereum values as a busd in my contract (maybe ethereum to usdt and usdt to ...
0
votes
1answer
23 views

Is there a way to specific the block when buy BEP20 token?

To avoid bot, some of fairlaunch and dev make a 99% tax in 2 first block buying after liquidity, it called antibot system. https://bscscan.com/tx/...
0
votes
0answers
18 views

When write code to BSC this error occurs

Solidity 0.8.4 \ Single File Compiler debug log: Error! Unable to generate Contract ByteCode and ABI (Expected library(ies) but one or more was not provided) Found the following ContractName(s) in ...
0
votes
0answers
10 views

Be the first transaction after another

What's the most efficient way to win a "fastest finger" type of contest? I need to monitor for a transaction by a 3rd party, after that transaction, I need to be the first to submit a ...
0
votes
1answer
27 views

Bsc on and off sells contract

Hello can someone expl how to switch on and off selling bsc tokens in solidity. I want to make legit coin but i need this to my idea. Thanks for help!
0
votes
0answers
16 views

How to deploy compiled contract on chain?

I have compiled my contract using solc. Now i have 2 files file.bin and file.evm. How to deploy them on bsc chain? Is this even possible to deploy compiled contract?
0
votes
0answers
143 views

Is Miner Extractable Value (MEV) possible on Binance Smart Chain?

Is it possible to arbitrarily order transactions on Binance Smart Chain as is the case on Ethereum to allow for MEV? I could not find anything on google about this topic. I hope it's appropriate to ...
0
votes
1answer
45 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
1answer
426 views

Is swapExactETHForTokens the right function for buying ? python, web3

I'm trying the make a simple piece of code to buy token with BNB on BSC trough the PancakeSwap protocol. def Buy(tokenAddress, tokenSymbol): if(tokenAddress != None): tokenToBuy = web3....
0
votes
1answer
64 views

BSC Transaction revert but no reason

I encountered a problem. My contract occasionally has execution exceptions, but there is no error prompt. I read the VM trace and found the following errors, but I don't understand why. Can someone ...

1
2 3 4 5