Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

490
Vistas
¿Qué es "Verificación de firma fallida" en Solana?

Estoy tratando de llamar a un programa de Solana, y cuando ejecuto sendAndConfirmTransaction , aparece Signature Verification Failed , y no estoy seguro de por qué.

 const {sendAndConfirmTransaction, clusterApiUrl, Connection} = require("@solana/web3.js"); let signer = Keypair.generate(); let anotherKeypair = Keypair.generate(); let transaction = someInstruction(signer, anotherKeypair); let connection = new Connection(clusterApiUrl('testnet')); sendAndConfirmTransaction( connection, transaction, [signer] );
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

En Solana, debe pasar tanto los pares de claves del firmante como los pares de claves de las cuentas que está creando.

 const {sendAndConfirmTransaction, clusterApiUrl, Connection} = require("@solana/web3.js"); let signer = Keypair.generate(); let anotherKeypair = Keypair.generate(); let transaction = someInstruction(signer, anotherKeypair); let connection = new Connection(clusterApiUrl('testnet')); sendAndConfirmTransaction( connection, transaction, [signer, anotherKeypair] // <-- If you made the keypair, you probably want it here! );

Si está utilizando una biblioteca de conexión de billetera, como @solana/wallet-adapter-react , no tiene el signer , pero aún tendrá cualquier par de claves de cuentas que esté generando:

 const { sendTransaction } = useWallet(); const anotherKeypair = Keypair.generate(); const signature = await sendTransaction(transaction, connection, { signers: [anotherKeypair] // You probably want to pass in the keypair here! });
about 4 years ago · Juan Pablo Isaza Denunciar

0

Esto funcionó para mí.

tx.partialSign

 let tx = new Transaction(); const anotherKeypair = Keypair.generate(); tx.recentBlockhash = (await connection.getLatestBlockhash("finalized")).blockhash; tx.feePayer = new PublicKey(publicKeyStringfromWallet); console.log(tx) tx.partialSign(anotherKeypair) // THIS SIGNS for web3 keypair const { signature } = await window.solana.signAndSendTransaction(tx); //THIS signs wallet keypair
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda