Questions tagged [binance]

Binance is a cryptocurrency exchange that provides a platform for trading various cryptocurrencies.

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

finding the sequence of functions executed when interacting with a contract

I have interacted with a contract on BSC Blockchain and know I want to know the sequence of functions executed with my transaction. I got my hands on transaction GETH traces using BSCscan but that ...
0
votes
0answers
14 views

Getting transaction history via Ethers.js

So I am new to blockchain development and I am trying to build a wallet just like the Metamask. I am struggling with displaying the recieved transactions. How dose one gets the recieved transaction ...
0
votes
0answers
18 views

please help... How do I fix these issues

from solidity: DeclarationError: Non-abstract contracts cannot have internal constructors. Remove the "internal" keyword and make the contract abstract to fix this. --> .deps/npm/@...
0
votes
0answers
8 views

What's the contract address of Binance Liquid Swap

Looking up a token on CoinGecko gives me the exchanges where a token is being exchanged at. When I query for Axie-Infinity, in the exchanges table there's a row that says "Binance AXS/USDT". ...
0
votes
0answers
18 views

Wrong transfer of ETH to another address [duplicate]

I made a wrong transfer from Binance Chain Wallet to an address that I copied in error. I sent it to FLOKI accidentally, 0x2b3f34e9d4b127797ce6244ea341a83733ddd6e4%E2%80%8B I tried all ways to contact ...
0
votes
0answers
86 views

Why I cannot connect SushiSwap to Binance Chain Wallet?

SushiSwap lists Binance Chain Wallet as an option. In Binance Chain Wallet, I already changed the network to Ethereum network as below: then I connect SushiSwap to Binance Chain Wallet but it show ...
2
votes
1answer
543 views

Uniswap Router initialization in Ethereum mainnet versus BSC

I analyzed the source code contracts of several tokens, and I noticed a line of code that differs between two similar ones that I am trying to make sense of. Specifically, I would appreciate your ...
0
votes
0answers
63 views

web3.py " filter not found "

im using web3.py v5.19 in my project and we are on BSC mainnet also i use bsc urls recommended in site to connect to nodes this is my code to get events : block_filter1 = contract.events....
0
votes
0answers
495 views

Newbie question: how can I send BNB to my ETH wallet?

I'm trying to send some USDTs from my ETH main-net wallet to my BSC wallet. Binance bridge complains "insufficient funds" as I have no BNB in my ETH wallet. So I am trying to send some BNB ...
0
votes
1answer
1k views

metamask insufficient funds for gas how do i fix this?

metamask insufficient funds for gas, i'm currently using the bsc and I have 18usdt there that I want to send to binance
0
votes
1answer
136 views

BEP20: transfer amount exceeds allowance

I want to swap bep20 tokens like BUSD - BNB and BNB - BUSD, i already approved tokens for the swapping but while i try to swap BNB - BUSD it's throw error like BEP20: transfer amount exceeds allowance ...
0
votes
1answer
35 views

How to Calculate Jager using msg.value on Binance Smart Chain?

Very quick and likely easy question here. I am trying to code a crowdsale contract that accepts BNB and returns a number of tokens to the sender. My transactions keep failing because it says the BNB ...
0
votes
0answers
10 views

How to use Pinata API with jquery in WordPress

I am a beginner in NFT programming. currently i am trying to write a minter function on my WordPress page to mint an ERC1155 token and then take the selected image for that token and upload it to ...
0
votes
0answers
9 views

Can’t use transferFrom of other contract [duplicate]

I'm creating a paid membership in my contract and I'm using Binance USD as payment token. This is the method: function PayMembership(uint256 membershipID) external { require(msg.sender != address(...
0
votes
0answers
29 views

Can I send BNB and BEP20 token in the same web3 sendTransaction?

I'm trying to develop a javascript function to send BNB and a BEP20 token, at the same time, in one transaction, with web3. let decimals = web3.utils.toBN(18); let bnb_amount = web3.utils.toBN(...
0
votes
0answers
12 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
0answers
194 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
14 views

Unable to display APR value while forking Pankcakeswap on testnet

I have Forked PancakeSwap on Bsc Testnet successfully. I have even added the Farm feature which works as well but the only problem is that the APR value doesn't get displayed on the FarmCard. I have ...
0
votes
0answers
28 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
0answers
32 views

Can binance trace one's IP address or some other private data?

All the validators of the binance networks belong to Binance the company and as such as centralized, right? In case something shady happens, such as a hack that has to do with a vulnerability in a ...
0
votes
0answers
72 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
0answers
25 views

What purpose of merkleProof in contract?

I found a ABI list of this contract in bscscan: 0x16fb38712d355833647f4adfb1f6ff80f289c203. I dont know what is the purpose of _merkleProof parameter as below and what value that I can pass for it? { ...
0
votes
1answer
31 views

Google pay payment using token

Can I use my token (BSC TOKEN) to pay on Google pay or any services which uses QRCode to receive payment.? Can anyone please share some links or code.?
0
votes
0answers
47 views

ETH mysteriously removed from my account around 12hours after using Binance Bridge

Perhaps someone can shed some light on this for me? Recently joined the crypto world. Created a Metamask account, sent some test eth, all was fine. Had a family member send some BNB, then add some ...
1
vote
1answer
50 views

Keccak 256 Error

I encountered keccal256 error in binance smart chain based coin. This error occurred in a token generated with cointool.app. I came across this example. how to solve this error? https://blog....
0
votes
1answer
37 views

Smart Contracts developed for Ethereum can also be used in Binance Smart Chain?

I'm newcomer to blockchain and i'm starting to develop a new token, and i've seen many places telling the similarities between the two blockchains. And i read that BSC have a EVM(Ethereum Virtual ...
0
votes
1answer
424 views

swapExactETHForTokens function execution

Please, help me. I try to do swapExactETHForTokens function from PancakeSwap Router contract. It's my code: def swap_exact_eth(router_contract_sample, token_contract, ...
0
votes
1answer
188 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
0answers
65 views

How to send bnb programmatically in different scenarios

I am trying to add a price pool in bnb for my token and I did the following code: function swap(uint256 amount, address destination) private { uint256 bnbBalance = address(this).balance; ...
0
votes
0answers
24 views

How to Add a Function to an Already Deployed Smart Contract?

i create a contract on the BSC and i was testing it, this is my contract https://bscscan.com/address/0x8dee0418b841b6e18c27046a1097f590b0dd3dd8#code and now i have around 2BNB stuck in the contract ...
0
votes
1answer
17 views

How to track ether received from smartcontracts without internal transactions?

I want to track the ether received from smart contracts, in the case of uniswap we can track using withdraw function, but if the smart contract does not raise this event it's difficult to track the ...
0
votes
1answer
369 views

Send transaction throw bsc with web3

i'm trying to send a transaction via bsc using WalletConnect and web3 This is the connection code const provider = new WalletConnectProvider({ rpc: { 1: "https://bsc-dataseed.binance....
0
votes
0answers
124 views

Create a link that uses MetaMask to send BEP20 Tokens to a wallet address?

I want to create a donate link that will allow the user to click and send .01 in BNB or .01 in a BEP20 contract. I've gotten this far with BNB: document.querySelector('.bnb-tip').addEventListener('...
0
votes
0answers
65 views

Incorrect return value after calling getTransactionCount

I have only few lines in the code: async function test() { await web3.eth.getTransactionCount('{ WALLET }').then(console.log); } test(); The return values are random: 0, 22 (this is the real value)...
0
votes
0answers
18 views

eth.syncing highest block is constant?

I am currently syncing a BSC node on a digital ocean vps. I have been syncing for a few hours now and the currentBlock is increasing by about 80k per 5 minutes. However i have noticed that when a call ...
0
votes
1answer
70 views

_takeLiquidity function does not take effect on Deflationary token

I created a Deflationary token mainly forked from safemoon. txFee & liqudityFee both 5%. I suppose every time someone transfers tokens, 5% of it will be burned and 5% go to my token contract. Once ...
0
votes
1answer
1k views

Swapping Tokens On BSC Testnet

I'm having problems swapping two tokens on BSC Testnet, now i'm aware this code will probably work on mainnet, but i'm trying to get it to work on testnet first, It might seem trivial but I would ...
0
votes
2answers
171 views

Redeploy a smart contract on bsc testnet

Is it possible to overwrite a smart contract used to deploy a bep20 token on testnet? I have made changes to a smart contract already deployed and wish to rewrite the smart contract already present, ...
0
votes
0answers
74 views

Switching between different networks in Metamask using web3 or any other automated way

I have two different smartchains in Metamask wallet ETH BSC Now I want to transfer money from one network to the other in the same wallet address either using web3.js or any other possible ...
1
vote
0answers
159 views

Error 'ds-math-sub-underflow' when trying to use pancakeswap router contract

I'm coding a simple app in node.js to retrieve token prices. I am using router contract '0x10ED43C718714eb63d5aA57B78B54704E256024E' and ethers.js library Most addresses seem to work correctly, but ...
0
votes
1answer
67 views

Smart contract to exchange old bep20 tokens for new ones

I've created two Bep20 tokens (old/new) and I was wondering if I could write a smart contract that exchanges/swaps old tokens for new ones. Is there a simple way to exchange two Bep20 tokens using a ...
2
votes
1answer
853 views

Binance Smart Chain RPC Rate Limit

In the BSC documentation, it says that we can make 10K/5mins RPC requests to their servers. Do you guys know if it's 10K per app or user?
1
vote
1answer
83 views

balanceOf giving wrong value on Binance chain using Ethers.js

I just started with blockchain programming, I tried experimenting with ethers.js and BSC. While using Token_contract.balanceOf("address") some contacts are giving wrong values, Example ...
0
votes
0answers
112 views

ETH/BSC Transaction subscribtion

Im connecting to BSC websocket with: let options = { filter: { value: [], }, fromBlock: 0 }; myContract.events.Transfer(options) .on('data', event => console.log(event)) ...
0
votes
1answer
414 views

How to deal with liquidity for a BEP-20 token?

I've released a few BEP-20 tokens so far and some of them have been quite successful at launch but then suffer from lack of perpetual marketing, my team and I are dealing with this challenge. However, ...
0
votes
0answers
572 views

JSON RPC Error code -32000 when deploying on BSCTESTNET with Remix IDE using Metamask

So I wrote a contract here: https://github.com/connova/CareBuds-Finance/blob/main/contracts/Buds.sol When deploying this using the injected web3 on the binance testnet (network name BSC Testnet) using ...
0
votes
0answers
24 views

Which payment API I can use to transfer Fiat money to my crypto exchange users ? ( At the time of withdrawl )

I am creating a Crypto exchange using Binance API/SDK , Users will register and deposit Fiat funds first into platform's paypal/stripe account using payment gateway. After deposit they can see virtual ...
0
votes
0answers
307 views

Compiler debug log: Error! Unable to generate Contract ByteCode and ABI Found the following

0 I deployed a contract of a token that has up to nine other files imported to the binance blockchain. I have done everything I can read and try in order to verify it. But it keeps giving me error. ...
0
votes
1answer
52 views

Auto BNB to charity / marketing?

I'm trying to create a charity coin that auto transfers percentages to BNB to go into the charity and marketing wallets. I saw that Morty Token was doing this. (https://bscscan.com/address/...
0
votes
2answers
44 views

Use ERC contract as a BEP20?

Is it possible to use an ERC token contract on the Binance chain? Would you just replace the uniswap router for the pancakeswap router? Or is it more complicated than that?