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

326
Views
ethers.js AbiCoder returns undefined

I am trying to encode function parameters for calldata using AbiCoder function in my nodejs app. But the returned value is undefined.

Here's my code snippet:

const abiCoder = new ethers.utils.AbiCoder();
const data = abiCoder.encode(["address"], ["0x72c4b017a057505e621c4481ff6ee1aa628373a3"])

console.log(data);
//console output
undefined

I also tried to run the same function in web3.js using encodeParameter function but it still returns the same 'undefined'. Is there a pre setup that I am missing?

about 4 years ago · Santiago Trujillo
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!