2,339 questions
1 vote
0 answers
41 views
Why am I getting a decode error when calling a function in my Hardhat smart contract?
I’m building a simple Voting DApp using Solidity and Hardhat. The contract deploys successfully, and I can start and end voting without issues. However, when I try to call the getWinner() function ...
0 votes
1 answer
68 views
How to communicate to dapp wallet extensions (like MetaMask and Coinbase) from another extension, the way you can from a site
There's a few different ways of accessing dapp providers, but one of the most standard ways to check everything's good in the context you're running things is with a bog standard, window....
0 votes
0 answers
49 views
Counter and Number are returning undefined in React with wagmi in Next.js from Smart contract Web3
I’m working on a Next.js application and using Wagmi to interact with a smart contract. The issue I'm facing is that when I call the getDoubledNumber() and number() functions from the frontend using ...
0 votes
0 answers
40 views
AbiError: Parameter decoding error: Returned values aren't valid, did it run Out of Gas?
I'm trying to test my smart contract using ganache provider and mocha but seeing this error. AbiError: Parameter decoding error: Returned values aren't valid, did it run Out of Gas? You might also see ...
1 vote
0 answers
57 views
How to intercept Remix-initiated transactions in MetaMask Snap and broadcast to a custom blockchain RPC?
I'm building a MetaMask Snap and I need help with the following use case: A user deploys a smart contract using Remix IDE. Instead of MetaMask directly sending the transaction to the default Ethereum ...
0 votes
0 answers
30 views
remix.ethereum.org : typing web3 on remix terminal gives "undefined"
Configured remix.ethereum.org ( Browser based Remix IDE ) . Environment set to Injected Web3 Provider Metamask. Network in Metamask is set to Infura Sepolia using RPC URL. https://sepolia.infura.io/v3/...
0 votes
1 answer
136 views
TypeError: Do not know how to serialize a BigInt WHEN JSON.stringify(OBJECT)
Right now I'm getting a weird error, I'm trying to convert an object to a string and I get this type error. const x = await web3.eth.getTransaction(tx); console.log(x); ^ ...
0 votes
0 answers
114 views
Cant fix Uncaught (in promise) SyntaxError: Cannot convert 22,42,79,4,0,0,0,0 to a BigInt
const BN = window.BN || solanaWeb3.BN; if (typeof window !== "undefined" && typeof window.Buffer === "undefined") { window.Buffer = { from: (data) => new ...
0 votes
0 answers
201 views
PancakeSwap universal router usage. Web3, PancakeSwap, Bsc testnet
I'm working on an integration with PancakeSwap using Java and Web3J. All my tests were conducted on BSC Testnet. After conducting some research, I used the UI to perform a transaction that went ...
1 vote
0 answers
170 views
Solana transaction sending but never confirming on devnet - "Transaction not found on chain"
I'm building a React app with Solana wallet integration and experiencing a persistent issue where transactions are successfully sent (I get a valid transaction signature), but they never confirm on-...
0 votes
0 answers
38 views
Tokens not swaped in Uniswap (web3 blockchain)
how are you? I'm trying to do a Swap Input Exact, and I'm generating the hash and spending gas, but the tokens are not being swapped. This is a hash that was generated, but no tokens were swapped: ...
0 votes
0 answers
127 views
How can I use Liquidlaunch API to buy tokens?
I am developing a trading bot on Liquidlaunch. Also I can see the APIs on Liquidlaunch Document { "signature": "0x...", "signedMessage": { "sender_address&...
2 votes
0 answers
69 views
Fetching WETH/USDC quote returns Error "CALL_EXCEPTION"
I wanted to get a quote for WETH/USDC using ether on testnet(sepolia). To the best of my knowledge being a newbie in web3, I think my code looks decent but when I try get the quote I get an error. I ...
0 votes
0 answers
35 views
NodeJS + Web3JS - Eip838ExecutionError code: -32000 message - undefined
I am tired of contant getting error below. Each time I am truing to call a method from a NodeJS app that works on Debian 11, it causes it. I can call this method directly from REMIX and from the ...
0 votes
0 answers
160 views
In reactJs solana wallet integration, how can I get my token balance
I am currently creating a web3 staking app for a solona blockchain token in reactjs. how can I get balance of a specific token? I can only get the balance or sol balance of the wallet not the specific ...