Questions tagged [binance-smart-chain]
The binance-smart-chain tag has no usage guidance.
101
questions
0
votes
0
answers
13
views
On swapExactTokensForTokens getting execution reverted: Pancake: K
I try to do a cyclic swap on Pancakeswap and get the following error execution reverted: Pancake: K
I am not sure what is happening here. Basically I try to do the following swap path
['WBNB', 'USDC', ...
0
votes
0
answers
10
views
Deploying smart contacts to multiple Blockchain networks
I'm working on cli project about deploying smart contacts to the multiple networks. For example i have a sample simplestorage.sol file and i want to deploy this to the tron network or binance smart ...
0
votes
0
answers
53
views
Error! Unable to generate Contract ByteCode and ABI, unable to verify on bscscan
I've been trying to verify a Token contract on bscscan but it always returns the same error:
Found the following ContractName(s) in source code : ApproveAndCallFallBack, ERC20Interface, SafeMath, ...
0
votes
0
answers
14
views
Wrong displayed coin in smart contract
I'm writing an app which transfer BUSD tokens in Binance Smart Chain. When i take a confirment modal in wallet where i should approvetransfer, i see 0 BNB instead of BUSD value. I use web3 contract ...
0
votes
0
answers
44
views
Pancakeswap Flashswap contract failing
I am new to Solidity and wanted to create a smart contract that that does a flash swap on Pancakeswap (BSC) and then arbitrages a pool that is based on Balancer V2.
When executing I get the following ...
0
votes
0
answers
18
views
Does the BSC Testnet Faucet Supports only 1 RPC URL?
I'm trying to get tokens for the BSC testnet using:
https://testnet.binance.org/faucet-smart
Due to my truffle config I'm connecting to a different RPC URL which is:
https://data-seed-prebsc-2-s2....
0
votes
0
answers
11
views
What's the proper way to update your metadata?
I'm trying to build NFT game where I'm going to upgrade NFTs attributes based on in-game activity achievements, I've googled around, but couldn't find a solution, so my question is how can I make ...
0
votes
1
answer
104
views
Add Liquidity failed: Internal JSON-RPC error
I am trying to add liquidity to pancake swap and keep getting the following error:
Add Liquidity failed: Internal JSON-RPC error.
Has anyone experienced this before, and if so can you help?
We are ...
0
votes
1
answer
29
views
Who pays funds for Marketing, Giveaways for Decentralized Company like Binance?
I wonder who gives funds for Marketing, Community Giveaways, etc in a decentralized companies like Binance. For Example, right now "Press a Button, Win a Bitcoin!" Event is going and the ...
0
votes
0
answers
11
views
Ico vesting schedule
How do I create a vesting schedule for my ICO
I have tried using openzepplin contract but looks confusing .
Please if you have any reference code please share
Thanks
0
votes
0
answers
27
views
What does difficulty mean in PoA and PoS chains?
In PoW, the meaning of "difficulty" is quite straightforward and, for instance, fully described in yellow paper. (https://ethereum.github.io/yellowpaper/paper.pdf)
But what does the "...
0
votes
0
answers
9
views
How to connect my contract to a token on the BSC? Getting "transaction has been reverted to the initial state" VM error
I am trying to create a contract on Remix that connects to a BEP-20 token (already on BSC) and access its functions to query name() and balanceOf().
// SPDX-License-Identifier: MIT
pragma solidity ^0....
0
votes
1
answer
21
views
View smart contract at previous block before self destruct?
Suppose I know the address that had a smart contract. This smart contract ran and called the self destruct function, so at the current block the smart contract has nothing there. But if smart contract ...
0
votes
1
answer
55
views
Uncaught (in promise) Error: Returned error: unknown account Web3 js
I am Trying to Transfer BEP20 ACC Tokens on smart contract from my binance Wallet using Web3 js Library. Following is my implementation
const contract = new Web3.eth.Contract(CONTRACT_ABI, ...
0
votes
1
answer
100
views
Having trouble adding liquidity - JSON RPC Error
I've been having this error over and over again when trying to get liquidity into my token on Pancakeswap. I've reviewed everything and looks fine to me. Can any of you take a look and guide me on the ...
0
votes
0
answers
63
views
how to buy/sell bsc tokens on pancakeswap from a solidity smart contract?
I just start to learn solidity and I've finished a couple courses and I want some help to create my first working smart contract.
The smart contract I want to build will buy and sell tokens on the ...
0
votes
0
answers
21
views
Which Node RPC Binance Smart Chain no rate limit request/sec?
Some rpc nodes Binace Smart Chain are now rate limited to 25-30 requests/sec ..I want to ask where to rent unlimited packages request/sec
0
votes
0
answers
52
views
Issue sending tokens to the contract address BEP-20 Token Transfer Error (Unable to locate corresponding Transfer Event Logs), Check with Sender
When I try to send the tokens from my wallet to the token contract address,
I am getting the following error.
Warning! Error encountered during contract execution [execution reverted]
BEP-20 Token ...
0
votes
0
answers
21
views
How crypto token in metamask wallet get stolen by hacker?
My crypto token which runs in BSC network has just been stolen few hours ago. I looked at the transaction history in my metamask wallet, nothing new in there. So it must be executed remotely. I do not ...
0
votes
1
answer
71
views
How can I sell my NFT that I minted using my own contract on NFT marketplaces?
I migrated my ERC-721 token contract to the BSC network and minted some NFTs. I can see these NFTs in my MetaMask wallet but on NFT marketplaces for BSC like BakerySwap or AirNFTs they don't show up (...
0
votes
0
answers
20
views
Get path for swapExactTokensForETHSupportingFeeOnTransferTokens sell transaction
When calling the swapExactTokensForETHSupportingFeeOnTransferTokens function of the PCS V2 router contract you have to give it a list of values for the path. But when I try to sell certain BEP20 ...
0
votes
1
answer
59
views
how to get users address that payed using my QR code in png?
Hello i have a QR code in png containing our address where he can send any BNB. My question is how to get the users address so he gets our own token.
0
votes
1
answer
30
views
Send 1 ERC20 TOKEN to anyone who execute the function
I have had this doubt for a long time.
I have a contract deployed that in the constructor mint 100 TOKENS (ERC20).
I have issues creatin a function in the smart contract WITHOUT Parameters that ...
0
votes
0
answers
214
views
Buying specific token on Binance testnet using python
I have written a script that works fine on bsc main network but when I am trying to buy the same on the testnet I get an error of transaction underpriced.
from web3 import Web3
snipeBNBAmount = 0....
0
votes
0
answers
40
views
Transaction mined but execution failed
I was trying to deploy my smart contract to BSC testnet using Remix IDE,although it compiles successfully but when I try to deploy it I get this error message.
"false Transaction mined but the ...
0
votes
0
answers
84
views
Read contract suddenly not working on testnet explorer
I have a contract I deployed last week. I was able to verify the contract on BSCScan Testnet explorer and successfully use the balanceOf() view function to return an address' balance. However today, I ...
0
votes
0
answers
52
views
Gas estimation failed Error Deploying Contract
I am trying to deploy a contract on Binance test network using remix but every time I try to deploy I get the error Internal JSON-RPC error. { "code": -32000, "message": "...
0
votes
0
answers
28
views
How to Create Sell Order on a marketplace through smart contract?
I have a txhash of creating sell order for a NFT like this : https://bscscan.com/tx/0x86f091b9ad2eccd625490427ce1636f37319e7ecabfd3dd1f5db8e5023f0ed9a
so I have smart contract: ...
0
votes
0
answers
12
views
Cannot Load & Add new SAFE on UI
We're getting issues to load & add a new deployed safe on BSC.
The UI is keep reflecting the following error: "Address given is not a valid Safe address"
Address of the new Safe: ...
0
votes
0
answers
35
views
Is there a way to check if my tokens are unlocked or not without paying gas fees?
Is there a way to check if my tokens are unlocked or not without paying gas fees?
Like if I can interact with the smart contract with its current state without sending a request on the mainnet.
Edit: ...
0
votes
2
answers
538
views
How to create and send Flashbot bsc?
I'm trying to redeem some ERC tokens lost in a metamask, I found this code from Flashbots https://github.com/flashbots/searcher-sponsored-tx
turns out that my tokens are on the bsc network, I made ...
0
votes
0
answers
22
views
How do I pass javascript info to a smart contract function?
How do I make a smart contract function that knows to listen for data from javascript?
Example: I have javascript info pulled from the BSCScan API that I want to pass to a smart contract function ...
0
votes
1
answer
795
views
SCAM: cannot swap back a token
Recently I bought a token from PancakeSwap. Looks, like it's scammed - it's new, there are only buy operations, and no sell operations.
And I also cannot swap it back.
I'm providing its contract ...
0
votes
2
answers
155
views
Decode constructor arguments of deployed Smart Contract
I need to know which parameters has been used to init the following smart contract: https://testnet.bscscan.com/address/0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3#code
From the page, I can only see it ...
0
votes
0
answers
70
views
Receiving "raise_solidity_error_on_revert" on BSC Testnet and PCS
I'm trying to test my sniper bot, therefore I want to run some operations on the bsc test net, interacting with pancakeswap.
So, I first setup the correct addresses (at least in my opinion)
from web3 ...
1
vote
1
answer
197
views
How do I obtain the balance of tokens in a BSC smart contract? [duplicate]
Let's say there is a BEP-20 staking pool contract on the BSC blockchain, and let's say (for extreme simplicity for this example) the address of that contract is "1234".
Upon reviewing the ...
0
votes
1
answer
50
views
Sending tokens from one Address to Another
I am new to this. So please no flaming.
I created a token on binance smart chain and i want to send from one Token address to another token address, here is my confusion, am I to use the Normal ...
0
votes
1
answer
26
views
Smart contract to issue token reflections
Let's say I have a BEP-20 token, where holders can optionally stake their own tokens in a pool. I want a smart contract that can assess
1.) The percentage of tokens they have staked relative to the ...
0
votes
1
answer
64
views
Deployed Smart Contract To Remix ,Can't find launched smart contract anymore. CAN SOMEONE HELP?
I've launched a smart Contract using Remix.Ethereum.org after launching it I compiled the contract to code, compiler came back clean no issues (GREEN CHECK MARK). Launched Contract, Added .5 BNB to ...
0
votes
0
answers
162
views
Token price chart with ethers.js
Right now I'm using Ethers.js to get the token price from BSC successfully using this code.
const pairContract = new ethers.Contract(pairAddress, pancakePair, provider);
const reserves = await ...
0
votes
0
answers
25
views
How to change BNB token payable to BTC for betting a BTC instead of BNB
Full source code:https://github.com/laronlineworld/prediction/blob/main/Prediction.sol
This Prediction (of price feed from oracle) smart contract can bet a BNB, the problem is I want to change the BNB ...
0
votes
1
answer
22
views
How to perform an action when receiving tokens in smart contract
So I have some custom Tokens in a smart contract and whenever I receive BUSD in the smart contract I want to be able to send some of the custom Tokens back to the user that paid through a button from ...
0
votes
0
answers
31
views
Getting 0x when retrieving total supply for older block numbers
I am trying to access Binance smart chain supply information for BUSD stable coin by using https://bsc-dataseed.binance.org/ RPC endpoint with the body:
{
"jsonrpc": "2.0",
...
0
votes
0
answers
43
views
SHARE DATA BETWEEN BLOCKCHAINS (BSC,Polygon,ETH)
I have this smart contract that i'm going to deploy on BSC, ETH and Polygon networks.
contract Color is ERC721Full {
string [] public colors;
mapping (string => bool) _colorExists;
constructor () ...
0
votes
0
answers
7
views
Is there a way to upload a ERC-20 Binance smart change on Uniswap?
Sorry if this a basic question, but i have a serious doubt.
Is there a way to upload a ERC-20 Binance smart chain token on Uniswap and what is the process to make it?
I'd appreciate your help and ...
0
votes
0
answers
55
views
Are there benifits using Moralis node provider services?
I'm very new to solidiy and blockchain so forgive me if this is a stupid question! I've been playing around on the BSC test net, following a few online guides and the Binance dev docs. I've noticed ...
0
votes
0
answers
12
views
What are the Httpmodules
can anyone explain to me what are the Httpmodules ? because i am working on the BSC and i found the parlia module and trying to understand how it is working and how to use it to work with the PoS.
if ...
0
votes
1
answer
108
views
How to add transaction deadline?
I am using web3 to make transactions but I am stuck on how can I add transaction deadlines in
web3.eth.sendTransaction function.
I am using 0x API for getting the swap quote.
My code :-
await web3.eth....
0
votes
0
answers
19
views
Need your help with technical realization Binance Smart Chain contract with top up and withdraw balance in both USDT and BUSD currencies?
How to create smart contract for binance smart chain, where users can top up his balance and withdraw their balance in both: USDT and BUSD currencies? But their balance in the smart contract should be ...
0
votes
1
answer
211
views
Can't run smart contract (BUSD) method on android chrome using web3js and walletconnect
I have a website that works fine on desktop chrome.
Website provides you a possibility to transfer BUSD in BSC Mainnet to some accounts with Metamask.
For mobile i use walletconnect in browser and ...