Token Claim: Failure in transaction sent & unknown error thrown #74
Replies: 7 comments 14 replies
-
Hello @saraliyah, Would you mind posting your transaction call snippet? |
Beta Was this translation helpful? Give feedback.
-
Thanks Adam for following up on this.
+BLAIR LEE ***@***.***> Can you provide the transaction call snippet
here?
Cheers
Sarah
… Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I already tried several changes. So it looks a bit messy. const block = await web3.eth.getBlock("pending")
const baseFee = Number(block.baseFeePerGas);
const tip = 100000000;
const max = Number(tip) + baseFee - 1;
const param = {
from: accounts[0],
to: ERC20_AIRDROP_CONTRACT_ADDRESS,
// nonce: await window.ethereum.getTransactionCount(accounts[0]),
value: '0x0',
gasPrice: '0x' + Math.abs(tip).toString(16),
gasLimit: '0x' + Math.abs(83406).toString(16),
// maxPriorityFeePerGas: '0x' + Math.abs(tip).toString(16),
// maxFeePerGas: '0x' + Math.abs(max).toString(16),
// gasPrice: '0x5D21DBA00',
type: '0x2',
data: '0x4451d89f',
chainId: CHAIN_ID,
// gasLimit: gas,
// gasPrice: gasPrice,
// data: '0x4451d89f',
// type: '0x2',
}
const response = await window.ethereum.request({
method: 'eth_sendTransaction',
params: [param],
}); I used web3.js version 4.1.0 and vanilla js. |
Beta Was this translation helpful? Give feedback.
-
Any update on this @adamdelphantom |
Beta Was this translation helpful? Give feedback.
-
Here is My Code
|
Beta Was this translation helpful? Give feedback.
-
Here is github repo-https://github.com/MD-Dhaval-Saxena/web3phantom/tree/main here is live site: https://papaya-sawine-534187.netlify.app/ |
Beta Was this translation helpful? Give feedback.
-
But It's not only mumbai is not working in testnet mode Etherum goerli also there ,even goerli network is not working!
Attaching Live Website and Code to review. website:- https://papaya-sawine-534187.netlify.app/ |
Beta Was this translation helpful? Give feedback.
-
Summary
Background
We are a web3 NFT studio that is developing an ERC-20 token claim website https://airdrop.tidalflats.studio/ for our users. We try to integrate with Phantom wallet to unlock claiming of ERC-20 $TIDE tokens for our users but the integration does not work.
Problem:
See video below for more information
This issue is extremely urgent, please contact our team @ [email protected] & [email protected]. Thanks!
Example
No response
Steps to Reproduce
Phantom Version
No response
Is there an existing discussion for this?
Beta Was this translation helpful? Give feedback.
All reactions