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

233
Views
ethereum-multicall with ethers.js invalid address provided

I got this error:

Uncaught (in promise) Error: invalid address (argument="address", value=42, code=INVALID_ARGUMENT, version=address/5.4.0) (argument="_owner", value=42, code=INVALID_ARGUMENT, version=abi/5.4.0) at Logger.makeError (swapv1.1.1.f4473701.js:66157) at Logger.throwError (swapv1.1.1.f4473701.js:66166) at Logger.throwArgumentError (swapv1.1.1.f4473701.js:66169) at AddressCoder._throwError (swapv1.1.1.f4473701.js:149229) at AddressCoder.encode (swapv1.1.1.f4473701.js:149357) at swapv1.1.1.f4473701.js:149419 at Array.forEach () at Object.pack (swapv1.1.1.f4473701.js:149407) at TupleCoder.encode (swapv1.1.1.f4473701.js:149782) at AbiCoder.encode (swapv1.1.1.f4473701.js:149169)

const multicall = new Multicall({ ethersProvider: provider, tryAggregate: true });

const contractCallContext: ContractCallContext<{extraContext: string, foo4: boolean}>[] = [
    {
        reference: 'testContract',
        contractAddress: '0x8df3aad3a84da6b69a4da8aec3ea40d9091b2ac4',
        abi: Abi,
        calls: [{ reference: 'fooCall', methodName: 'balanceOf', methodParameters: [42] }],

    },
    {
        reference: 'testContract2',
        contractAddress: '0x1a13f4ca1d028320a707d99520abfefca3998b7f',
        abi: Abi,
        calls: [{ reference: 'fooTwoCall', methodName: 'balanceOf', methodParameters: [42] }]
    }
];

const results: ContractCallResults = await multicall.call(contractCallContext);
console.log(results);
}`

can you help me?

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!