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

125
Vistas
How to integrate with anyswap router

I need to create my own token router form integrating with anyswap router https://anyswap.exchange/bridge#/router

I am creating an instance of a contract based on it's ABI and then I am calling this method of the instance anySwapOutUnderlying

const myContract = web3.eth.Contract(routerAbi, '0xf390830df829cf22c53c8840554b98eafc5dcbc2')
const contractData = myContract.methods.anySwapOutUnderlying(
 '0x55d398326f99059fF775485246999027B3197955',
 '0x382bb369d343125bfb2117af9c149795c6c65c50',
 1,
 137,
).encodeABI()

then I am preparing the request data:

const requestData = {
 chainId: web3.utils.toHex(56),
 from: 'my cool address',
 gas: '',
 gasPrice: '',
 nonce: '',
 to: '0x382bb369d343125bfb2117af9c149795c6c65c50',
 value: '0x0',
 data: contractData,
}

afterwards I am creating a batch where I add a couple of steps, but nothing happens at the end once I execute it

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