Sending custom token web3 metamask ? -- 2 $10-30 USD Publié il y a plus de 3 ans
$10-30 USD Payé lors de la livraison
Hello I would like to make this code available in ERC20 token submission. I'd appreciate it if anyone could help.
<!DOCTYPE html>
<html>
<head>
<script src="[login to view URL]"></script>
</head>
<body>
<div>
<button class="pay-button">Pay</button>
<div id="status"></div>
</div>
<script type="text/javascript">
[login to view URL]('load', async () => {
if ([login to view URL]) {
[login to view URL] = new Web3(ethereum);
try {
await [login to view URL]();
initPayButton()
} catch (err) {
$('#status').html('User denied account access', err)
}
} else if ([login to view URL]) {
[login to view URL] = new Web3([login to view URL])
initPayButton()
} else {
$('#status').html('No Metamask (or other Web3 Provider) installed')
}
})
const initPayButton = () => {
$('.pay-button').click(() => {
// paymentAddress is where funds will be send to
const paymentAddress = '0x192c96bfee59158441f26101b2db1af3b07feb40'
const amountEth = 1
[login to view URL]({
to: paymentAddress,
value: [login to view URL](amountEth, 'ether')
}, (err, transactionId) => {
if (err) {
[login to view URL]('Payment failed', err)
$('#status').html('Payment failed')
} else {
[login to view URL]('Payment successful', transactionId)
$('#status').html('Payment successful')
}
})
})
}
</script>
</body>
</html>
N° de projet : 28635026
Concernant le projet 3 propositions
Projet à distance
Actif à il y a 3 ans
Cherchez-vous à gagner de l'argent ? Adresse e-mail Postuler à des emplois similaires Avantages de faire une offre sur Freelancer Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
3 freelances proposent en moyenne $63 USD pour ce travail
Nice project.
Yes I can help you.
I have enough experience on web3, erc20 and smart contract.
Let's discuss more via chat.
Thanks
$150 USD en 7 jours
4,4 (2 commentaires) Hello, thank you for giving me the opportunity to bid on the project.
As a strong and experienced React Native professional with rich experience, very interested in your project.
I'm looking forward to hearing from you to discuss in more detail.
If you want to find smart work in a short time, please feel free to contact me.
Thank you!
$30 USD en 2 jours
5,0 (1 commentaire)