question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing multicall address for chain id 31337

See original GitHub issue

Hi team!

Thank you for your amazing work. I just faced the issue while trying to develop on a local chain using hardhat.

I keep getting this error on a console every time I try to send some transaction or connect my wallet.

image

My Metamask points to local hardhat network localhost:8545 and I configured chainId (in Metamask) for this network to be 31337. So it now matches with useDApp hardhat’s chainId. However, this did not help.

May I ask for any help if possible? Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

15reactions
okorieebubecommented, Feb 9, 2022

Guys, i believe you built a great tool, but i must say the documentation isn’t helpful atall. I keep running into issues with this multicall feature, and i cant find a way to fix it in the documentation. The docs doesnt have great step by step directives or even other online resources explaining how to setup even a basic project connected to your local blockchain. I don’t know if the framework is no longer maintained. Its frustrating.

5reactions
tankvtcommented, Jun 28, 2021

Hi @ironsoul0,

I updated my Config as below and it worked for me

import {
    ChainId,
    Config,
    DAppProvider,
    MULTICALL_ADDRESSES,
} from "@usedapp/core";

const config: Config = {
    readOnlyUrls: {
        31337: "http://localhost:8545",
    },
    multicallAddresses: {
        31337: "YOUR_LOCAL_ADDRESS_HERE", 
        ...MULTICALL_ADDRESSES,
    },
    supportedChains: [
        ChainId.Mainnet,
        ChainId.Goerli,
        ChainId.Kovan,
        ChainId.Rinkeby,
        ChainId.Ropsten,
        ChainId.xDai,
        ChainId.BSC,
        ChainId.Localhost,
        ChainId.Hardhat,
    ],
};

Hope that help you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing multicall address for chain id 31337 #267 - GitHub
My Metamask points to local hardhat network localhost:8545 and I configured chainId (in Metamask) for this network to be 31337 . So it...
Read more >
MetaMask chainId issue | Ethereum development ... - Hardhat
Incompatible EIP155-based V 2710 and chain id 31337. See the second parameter of the Transaction constructor to set the chain id.
Read more >
Models - useDApp
Represents a single call on the blockchain that can be included in multicall. Fields. address: string - address of a contract to call....
Read more >
Hardhat metamask error - "Trying to send a raw transaction ...
Change the chainId within your metamask configuration to 31337 for your local network (e.g. http://localhost:8545). metamaskNetworkConfig.
Read more >
Brownie Documentation
This page provides a quick overview of how to use Brownie. It relies mostly on examples and assumes a level of fa-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found