Skip to content

[Bug] Default RPC does not support get_code on Polygon #8010

@RitzyDevUK

Description

@RitzyDevUK

📱 Interface Affected

The default RPC for polygon (polygon-rpc) stopped supporting get_code which is resulting in an error:

Here is the msg data: "id":"1772576074888221952","jsonrpc":"2.0","method":"eth_getCode","params":["0x21120bee87ead5c9131927e0bde380bc8673cfcf","latest"]}

and the error response:

{
"error": "message: API key disabled, reason: tenant disabled, json-rpc code: -32051, rest code: 403"
}

the message is made to polygon-rpc.com uniswaps default rpc configured for the chain. This request is used for smart wallets to determine whether they support 1271 style signatures.

Ideally you should catch this error and fallback to use the RPC configured with the user, this will mitigate all error's by allowing the user to configure their own rpc locally from their connected wallet.

Which application are you experiencing issues with?


🧩 App Version

  • Version (if known):
  • Production build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions