Questions tagged [binance-smart-chain]

Binance Smart Chain is a blockchain with a public ledger that supports Ethereum applications (EVM). This tag should only be used for programming questions related to Binance Smart Chain. Use [binance-chain] for questions about writing code that interacts with the original, non-smart Binance Chain.

235 questions
0
votes
0 answers

Transaction Fail - wallet to wallet & wallet to contract balance

I've just started with Solidity and, in order to understand and learn Solidity and the combination with Remix, I've copied some contracts. At the moment I'm testing the contract "Token69", if I try do deploy the token now, I get the error…
Ziab
  • 1
  • 1
0
votes
1 answer

Solidity - ERC20 Legal Verbiage

Where in the code and what is the proper way to add legal verbiage to my ERC20 Smart Contract? I've seen a few samples where it gets saved on a variable and then that variable value is referenced in the body of a function using memory. i.e. contract…
Null isTrue
  • 1,882
  • 6
  • 26
  • 46
0
votes
1 answer

Maximum value of tokens per purchase - BSC - Solidity

I am studying a solidity code and it has the following excerpt. The maximum that can be purchased is 5 tri at a time. For me to increase the value that can be purchased at a time, should I change the values of the function…
0
votes
1 answer

BEP-20 Contract no deploy public view functions

I am studying how to make BEP-20 tokens. For this I copied the following contract in remix to be able to study it: Contract in BscScan If I copy the whole file and compile it in Remix, when I deploy it it doesn't show me any getters. No public view…
Fernando López
  • 184
  • 1
  • 11
0
votes
1 answer

ERC20 - How to split the initial token supply on multiple accounts?

Can someone explain to me why it's not possible to split the initial total supply with the Transfer event to multiple address that are not the _msgSender() address ? The goal here is to "mint" with the 0x00 address the tokens on multiple wallets…
0
votes
1 answer

Ethereum Remix: gas required exceeds allowance (30000000) issue

I'm trying to deploy a smart contract on BSC Testnet but the Remix IDE throws me error below: I've got more than 3 BMB in my Metamask BinanceSmartChain Testnet wallet. creation of ContractName errored: Internal JSON-RPC error. { "code": -32000,…
SahanCava
  • 3
  • 1
  • 2
0
votes
1 answer

SmartContract decimals and max supply

I am new to smartcontracts and I am trying to learn so I need help with one question: I need the total supply to be 1 trillion 1.000.000.000.000 and I also need the decimals to be only 5 I coded it like this: uint256 private constant MAX =…
0
votes
2 answers

How to format BSC Scan API data in Google Sheet?

I am trying the BSCscan API today but I have a problem with the way prices are displayed. https://api.bscscan.com/api?module=account&action=balance&address=0x0000000000000000000000000000000000001004&apikey=YourApiKeyToken and it returns the…
0
votes
1 answer

How can a crypto be transfered from a wallet to another, through an other blockchain than it's own?

let me just clarify my question with an example: Let's say you want to transfer 1 eth from an account A to an account B, both on the binance exchange. When A goes to "Withdrawal" on his eth on binance to send his eth to B there is two options…
-1
votes
1 answer

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. And the delay is in chunks of 3 because I…
-1
votes
1 answer

How to mint ERC20 with it's address

i am going through PancakeSwap docs and trying to use it on test net.I am trying to use dummy tokens but thi section i dont't uderstand: $CAKE: 0xFa60D973F7642B748046464e165A65B7323b0DEE (mintable by using mint(address _to, uint256 _amount)…
-1
votes
1 answer

Binance is there a way to sell the small balances in python?

I am trying to use the binance api and would like to use dust to bnb conversion? We can do this on the binance website and I would like to automate this I searched the binance api but couldn't find anything. Thanks for yours answers!
guiguilecodeur
  • 429
  • 2
  • 15
-1
votes
1 answer

Get details of pending transaction using tx hash on BSC

I'm trying to get the details of pending transaction using it's txhash. I tried using web3.eth.getTransaction(transactionHash) but it seems like it returns null for pending transactions but works fine for finished transactions. Is there any other…
Sai Chander
  • 829
  • 1
  • 6
  • 15
-1
votes
1 answer

BEP20 token not showing total supply as i entered on code on bscscan

I have deployed a BEP20 token. I followed the steps shown in this tutorial https://docs.binance.org/smart-chain/developer/issue-BEP20.html and I entered total supply = 60000000000 but after varifying, the total supply is not showing which was I…
Rk dev tech
  • 190
  • 1
  • 14
-1
votes
1 answer

how do i resolve this when am deploying solidity on vs code

project:/node_modules/@openzeppelin/contracts/crowdsale/price/IncreasingPriceCrowdsale.sol:49:5: DeclarationError: Identifier already declared. function finalRate() public view returns (uint256) { ^ (Relevant source part starts here and spans across…
1 2 3
15
16