Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

127
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda