Having Error Regarding Rarible NFT Plugin Setup In Visual Studio Code

MetaMask - RPC Error: Provided chainId β€œ4” must match the active chainId β€œ1”

Exact Error :

  1. {code: -32603, message: β€˜Provided chainId β€œ4” must match the active chainId β€œ1”’, data: {…}}

  2. code: -32603

  3. data:

1. originalError: {name: 'AssertionError', actual: 4, expected: 1, operator: '===', message: 'Provided chainId "4" must match the active chainId "1"', …}
2. [[Prototype]]: Object
  1. message: "Provided chainId β€œ4” must match the active chainId β€œ1"”
  2. [[Prototype]]: Object

chainId 1 is eth mainnet and chainId 4 is rinkeby, in case that helps you