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

311
Vistas
Approve transaction with BUSD in dapp with ethers.js

I am creating daap able to mint smart contract with BUSD. However, transfer still fail. I figured out that my BNB allocation can not automatically pay thought BUSD. I need to BUSD allow to make transaction with my allocation. According to BUSD smart contract there is function provided for it -> function approve(address _spender, uint256 _value) public whenNotPaused returns (bool).

However I was not able to efficiently receive output from it. I have tried to connect to transfer and receive data but without success.

  async approveBUSD(wallet, address, price) {
    let contract = new ethers.Contract(this.busd, busdAbi, this.provider);

    this.busdContract.on('Transfer',(from,to, value,event)=>{
      console.log({
        from: from,
        to:to ,
        value:value.toNumber(),
        data: event
      });
    });
  }

Any suggestion? Thanks...

about 4 years ago · Juan Pablo Isaza
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