Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
Intentando crear una función de metamáscara de conexión

No puedo por mi vida averiguar lo que estoy haciendo mal. Estoy siguiendo los documentos de metamask y todo: https://docs.metamask.io/guide/create-dapp.html#basic-action-part-1

botón .html:

 <!DOCTYPE hmtl> <html lang="en"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width-device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" > <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://cdn.jsdlivr.net/npm/web3@latest/dist/web3.min.js"></script> <script src="./javafilename.js"></script> </head> <body> <button class="btn btn-primary btn-lg btn-block mb-3" id="connectButton" value="Connect" enabled></button> <body> </html>

metamáscara java:

 const initialize = () => { //Basic Actions Section const onboardButton = document.getElementById('connectButton'); };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No veo un error en su código, es solo que debe seguir las instrucciones, al proporcionar el código actual puedo ver que funciona, eche un vistazo a este Codesandbox

https://codesandbox.io/s/kind-frost-f4zgd7?file=/index.html

Si nota, cuando hace clic en el botón, nos dice que Metamask está instalado

pocos puntos

  • En la documentación, cargan esto cuando la ventana carga window.addEventListener('DOMContentLoaded', initialize); y desea hacerlo en un botón, consulte onclick="initialize()"

Además, asegúrese de que otras preguntas proporcionen un error o algo así para que la comunidad pueda ayudarlo mejor.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!