Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"eth_signTypedData_v4" Unknown method(s) requested #489

Open
TheJuze opened this issue Dec 28, 2023 · 2 comments
Open

"eth_signTypedData_v4" Unknown method(s) requested #489

TheJuze opened this issue Dec 28, 2023 · 2 comments

Comments

@TheJuze
Copy link

TheJuze commented Dec 28, 2023

Hi, I'm using ethers + WalletConnect2 + wagmi + mobile TrustWallet app. While trying to send signer.signTypedData it throws error

"error": {
  "code": 5201,
  "message": "Unknown method(s) requested"
},
"payload": {
  "method": "eth_signTypedData_v4",
  "params": [...]
  "id": 10,
  "jsonrpc": "2.0"
}

Version of each library:

  • "ethers": "6.9.1",
  • "@wagmi/core": "^1.4.12",
@trustwallet trustwallet deleted a comment from Cryptoxxi Dec 29, 2023
@frankfka
Copy link

We're getting this at Vertex as well. Users (specifically mobile) run into:

could not coalesce error (error={ "code": -32000, "message": "The operation couldn’t be completed. (TrustWalletConnect.WCError error 1.)" }, payload={ "id": 7, "jsonrpc": "2.0", "method": "eth_signTypedData_v4", "params": [ "...", "{"types":{"WithdrawCollateral":[{"name":"sender","type":"bytes32"},{"name":"productId","type":"uint32"},{"name":"amount","type":"uint128"},{"name":"nonce","type":"uint64"}],"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}]},"domain":{"name":"Vertex","version":"0.0.1","chainId":"0xa4b1","verifyingContract":"0xbbee07b3e8121227afcfe1e2b82772246226128e"},"primaryType":"WithdrawCollateral","message":{"sender":"...","productId":"31","amount":"99004594","nonce":"0"}}" ] }, code=UNKNOWN_ERROR, version=6.8.1)

@ManavPanchal
Copy link

We're getting this at Vertex as well. Users (specifically mobile) run into:

could not coalesce error (error={ "code": -32000, "message": "The operation couldn’t be completed. (TrustWalletConnect.WCError error 1.)" }, payload={ "id": 7, "jsonrpc": "2.0", "method": "eth_signTypedData_v4", "params": [ "...", "{"types":{"WithdrawCollateral":[{"name":"sender","type":"bytes32"},{"name":"productId","type":"uint32"},{"name":"amount","type":"uint128"},{"name":"nonce","type":"uint64"}],"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}]},"domain":{"name":"Vertex","version":"0.0.1","chainId":"0xa4b1","verifyingContract":"0xbbee07b3e8121227afcfe1e2b82772246226128e"},"primaryType":"WithdrawCollateral","message":{"sender":"...","productId":"31","amount":"99004594","nonce":"0"}}" ] }, code=UNKNOWN_ERROR, version=6.8.1)

My implementation is also encountering the same error. I've tried various methods suggested in this GitHub discussion #2240 , but the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants