Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

How can I limit the number of owner transactions?

I want to make a token that has the least developer's interference. So I am making a future of my token that limits the number of owner transactions. I show necessary part of code. contract Token is ...
Snap_Lan's user avatar
0 votes
1 answer
65 views

I have a few questions about my token

Recently I have created a meme token based on the Gotta Lock In meme. When I deployed it to PancakeSwap, I deposited 19.000.000 $LOCKIN alongside with ~15$ of BNB into the liquidity pool. However once ...
Bùi Bảo Hoàng's user avatar
0 votes
1 answer
128 views

Transaction on BSC gets reverted due to Fail with error 'TransferHelper: TRANSFER_FROM_FAILED'

I'm not able to make a swap using the contract for some reason (I'm sure that I'm missing something fundamental). Here is the code. https://bscscan.com/address/...
somaito's user avatar
0 votes
1 answer
114 views

Is Making an NFT on Binance Smart Chain on Remix currently possible? (compiler versions problem)

I'm trying to make a basic imageless NFT for Binance Smart Chain using remix.ethereum.org (for NFT identity verification purposes) but I've encountered a problem. Basically solidity version 0.8.2 or ...
Adjam's user avatar
  • 147
1 vote
0 answers
632 views

How to programmatically auto-add liquidity on transaction (ERC20, BEP20), (Uniswap Pancakeswap), (V2, V3)

I've perused the liquidity docs on the relevant DEXes Uniswap and Pancakeswap, as well as on Github. I've found no good tutorials outlining how to add liquidity by code. It's like trying to complete a ...
Ashraile's user avatar
  • 125
0 votes
1 answer
74 views

Is There Any Way? To Manipulate My Token Price?

**What If?** Is There Any Way? I Create a Coin Recently and Then Provide liquidity of **1 BNB = 100K LKZ** [Coin Name] after that I buy my own coin from another wallet 2 BNB = 200K LKZ but Now I Sell ...
Muhammad Hamza's user avatar
1 vote
0 answers
43 views

Smart Contract working perfectly fine on remix but I face issues when I deploy it on the Binance Test Net

I made a smart contract that allows user to enter pools and place a bet. When the pool time ends the users are given rewards given that they their bet turned out to be correct. When I tested this ...
Anas Naeem's user avatar
8 votes
5 answers
15k 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 ...
Mohammed's user avatar
1 vote
0 answers
101 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
3 answers
929 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
52 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
  • 129
0 votes
0 answers
559 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
1 answer
159 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
113 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
1 vote
0 answers
395 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
720 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
76 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
2 votes
1 answer
136 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
1 vote
1 answer
248 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
0 votes
1 answer
382 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 ...
Marc's user avatar
  • 277
0 votes
1 answer
168 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.
phil's user avatar
  • 27
0 votes
1 answer
1k 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 ...
Mark Sanchez's user avatar
0 votes
0 answers
10 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 ...
Enrique Arevalo's user avatar
1 vote
0 answers
618 views

how to add tax fees to transactions/transfers and Use fees toward liquidity

We have decided to launch a crypto token in support of new social streaming platform. And we would like to be able to add a tax fee that will be added to the liquidity of the token itself on pancake ...
Cyncrohnis's user avatar
0 votes
1 answer
661 views

Initiate transaction from my DAP to send BNB from trust wallet using wallet connect

Does anyone know how I can initiate transaction from my DAPP to send BNB while connected to trust wallet using walletconnect? I see an example for etheruem transaction here: https://docs.walletconnect....
Franklin Ekoh's user avatar
1 vote
1 answer
90 views

How to know an address balance X number of days ago?

Im creating a new contract at the moment. With one of the features im trying to implement i need to know what the senders address balance was 28 days ago. My current idea is to store an mapping of all ...
CathalMF's user avatar
  • 283
0 votes
1 answer
349 views

I can't verify the contract on bscscan, I have installed Openzepplin. This is [HardHat] (Pictures add in)

Showing you first the deployed contract, smart contract, and then the error on the last picture. I have tried to deploy it with the URL but the problem remained. I myself know that there's an easy ...
Feynman's user avatar
  • 231
0 votes
2 answers
90 views

I've just created a contract, But the question that remains, how do i put in the total supplys of tokens into the contract? [Hardhat, Openzeppelin]

I have just been able to deploy the contract into the testnet but as a beforehand noticed, there are no total tokens of Nikola being deployed. Could someone advise me on what I should do to redeploy ...
Feynman's user avatar
  • 231
0 votes
2 answers
6k views

reason: 'too many arguments: in Contract constructor', This is the last step before i deploy the contract, so any advice would be great

I got this error: Is there some error I have been making in the contract? Any help would I appreciate, if you need me to publish other contracts just tell me I will update this question with the ...
Feynman's user avatar
  • 231
0 votes
1 answer
616 views

ParserError: Expected ';' but got identifier Error HH600: Compilation failed - getting this error, one step before deploying the contract

I keep getting this error; I was told before to use "const License one in my code, but I don't know which contract I will put it into. Here's the picture: Could someone advise me on what I should ...
Feynman's user avatar
  • 231
8 votes
9 answers
19k views

HardhatError: HH700: Artifact for contract "Greeter" not found - clarification [Hardhat, openzeppelin]

I keep getting this error when doing: npx hardhat run scripts/sample-script.js --network testnet. I got an answer "You have named your contract 'Nikola' and not 'Greeter'. The actual file-names ...
Feynman's user avatar
  • 231
9 votes
3 answers
18k views

An unexpected error occurred: Error: Cannot find module '@nomiclabs/hardhat-waffle' [Hardhat, openzeppelin]

I keep getting this error when doing: npx hardhat run scripts/sample-script.js --network testnet. Edited the name of my computer for security reasons. How do I put in the module 'nomiclabs/hardhat-...
Feynman's user avatar
  • 231
2 votes
1 answer
1k views

HardhatError: HH700: Artifact for contract "Greeter" not found - this is the problem i'm getting [Hardhat, openzeppelin]

I keep getting this error when doing: npx hardhat run scripts/sample-script.js --network testnet. Edited the name of my computer for security reasons. Compiling 10 files with 0.8.4 Compilation ...
Feynman's user avatar
  • 231
2 votes
1 answer
3k views

Finding a Pair Contract on PancakeSwap

I was explained that to find the pair contract on PancakeSwap, all that's needed to be done is go to the Factory contract of Pancakeswap on bscscan ( 0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73 ), find ...
你的老师's user avatar
0 votes
0 answers
344 views

Trying to deploy my smart contract to ropsten testnet but keep receiving this error - ReferenceError: Secret is not defined

The last one is Hardhat.config.js This the error (sensitive information, meta mask private key blurred and so the moralis io testnet code ReferenceError: Secret is not defined at Object. (/Users/...
Feynman's user avatar
  • 231
1 vote
2 answers
2k views

After all attempts to verify the smart contract, i keep getting PaserError - not found: File import callback not supported

This is the issue: ParserError: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported. Showing a picture below. It's on bscscan between to verify. ...
Feynman's user avatar
  • 231
1 vote
1 answer
594 views

Creation of contract pending

So I have tried to create my own token on Binance Smart Chain Network. For some reason in Remix my creation of contract is still pending while I looked on BSC and there it shows that transaction went ...
mdghx's user avatar
  • 11
1 vote
0 answers
1k views

How to get Pair Contract Address or LP Pool Address of a Token in web3.py

I managed to have this code run after few hours of searches but unfortunately, this does not produce the output I wanted. Any ideas what could be the problem? from web3 import Web3 from eth_abi....
rbutrnz's user avatar
  • 123
1 vote
1 answer
102 views

Is it possible to create a game that can withdraw a coin balances tracked off-chain?

I have a game where the data is saved in a MYSQL database Is it possible to create a "play to earn" game, that the balance is saved in the database and the user can make the withdraw using ...
jureg chave's user avatar
0 votes
0 answers
616 views

BalanceOf always returns 0

I am trying to get the WBNB balance for an address by executing the following: const ethers = require('ethers'); const secrets = require('./secrets.json'); const WBNB = "...
Tomasz's user avatar
  • 1