Questions tagged [bsc]
86 questions
0
votes
1 answer
Contract balance was drained. Interesting a way how it was done
I am just began to diving into smart contracts. And as a best way to learn, along with reading documentation and watching videos, is create something, I decided to create simple gambling smart contract. With probability of 49% you'll double amount…
0
votes
0 answers
Can someone explain how can I use Accelerated Node in bsc chain to validate my transactions?
I wanted to know what are the Accelerated Node in bsc chain and after reading the docs I got that Accelerated Nodes are some special nodes provided by bsc which a user can choose to validate their transaction, So I was trying to implement it…

keshav
- 1
- 1
0
votes
0 answers
listening to BSC transfer events
Can you even get transfer events on USDT or USDC tokens on BSC? I ran same code to get token transfer events on Polygon and OP and it worked, but didn't work on BSC.
using ethers.js
filter = contract.filters.Transfer(from address, to…
0
votes
0 answers
Why command `file --mime-type` and `mimetype` give different results for the same file?
I have a file that contains a single text character (C). There is no line-feed character or similar in the file.
I am in Ubuntu 20.04.1.
When I use the command file --mime-type with this file the command says that the file is an…

Aleix Mariné
- 110
- 1
- 9
0
votes
0 answers
Track all coins on bsc
I want to track all coins and tokens that deployed to BSC. But I don't have a solid idea to achieve this.
Basicly, I want to get all coins on BSC and filter them as I want and track them.
So my question is, is it possible to fetch all coins data(at…

Asaf Hekimoglu
- 19
- 4
0
votes
0 answers
Truffle error "you must specify a network_id in your 'bsc_testnet' configuration"
truffle migrate --network bsc_testnet
Error: You must specify a network_id in your 'bsc_testnet' configuration in order to use this network.
at Object.validateNetworkConfig…

grilledchs
- 1
- 1
0
votes
0 answers
Is there a way to directly query a token address and obtain transaction information on binance smart chain?
Thanks for taking the time to read my question!
I've previously built projects utilising the likes of coingecko, bscscan API etc... Which were perfect for the intended use-case, however now starting a new project I'm requiring informatiom which is…

lariz
- 15
- 1
- 6
0
votes
1 answer
WEB3.PHP Contract Call
I am using this PHP library https://github.com/web3p/web3.php to make the requests to smart contracts on BSC.
$web3 = new Web3('https://bsc-dataseed.binance.org');
$contract = new Contract($web3->provider,…

GPaul
- 35
- 6
0
votes
0 answers
How to deposit $CAKE in a pool on pancakeswap through solidity smart contract?
I am developing a smart contract on solidity where user can deposit $CAKE in my pool and after depositing, the deposited $CAKE will be automatically redirected to some other pool. But I don't know how to write this! Can anyone help?
I don't have any…
0
votes
1 answer
i have deploy smart contract but it's now showing name, symbol, supply
I have deployed today a smart contract it's working fine even I have received the total supply in my wallet but when I open contract at bscscan.com it's showing nothing about Name, Symbol, TotalSupply etc here is the contract link and…

Javed Ali
- 69
- 1
- 6
0
votes
0 answers
How swap tokens in smart contract with PancakeRouter
I have this code to swap tokens in BSC testnet, but it fails.(https://testnet.bscscan.com/tx/0xe3eaedf680eaba297579984de3d84da78aeb47bdf31a85b4e9ad04b919096aca) What i'm doing wrong?
`
contract tokenSwap {
// address private constant WBNB =…

Altair
- 1
- 1
0
votes
0 answers
Creating transaction to send BNB via BNB Smart Chain with Wallet Core on iOS
I try to create, sign and broadcast transactions through the Tatum. But can't find any example of how to do this. All I know is that BSC network is based on Ethereum Virtual Machine. So my transaction should be like this:
let signerInput =…

Hmmka
- 1
- 2
0
votes
0 answers
Web3py Throws Transaction underpriced Error
i am trying to use the web3py library to deploy and interact with a smart contract on the BNB Smart Chain Testnet.
However, upon running the code attached, i get the Transaction Underprice error. Need help in this regard.
`
``
w3 =…

maryamZulfiqar
- 13
- 2
0
votes
1 answer
Is there a way to get a specific event for a contract?
I'm going to run a contract in Ethereum, Binance, Polygon, and Clayton.
Is there a best practice for polling events that occur in a contract?
I want to get the event by requesting, not by subscribing to it.
If we use EtherScan api, are all sequences…
user20319391
0
votes
0 answers
I need help to combine 1. send exact amount to 3rd party smart contract address while 2. deposit exact amount to my contract
I need help to combine [1]. send exact amount to 3rd party smart contract address while sending [2]. depositing exact amount to my contract. any one have tried it before?
Below is the sample of my codes that I tried but not working.
enter image…

awesomeivan
- 29
- 5