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

128
Views
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
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!