eth_signTypedData is currently working?

The eth_signTypedData method query is returning
{“jsonrpc”:“2.0”,“id”:1337,“error”:{“code”:-32601,“message”:“The method eth_signTypedData does not exist/is not available”}}

I’m using https://infura.io/docs/ethereum#operation/eth_signTypedData sample request

Thanks!!

Hey @gabrielbazan7, and welcome to the Infura community!

eth_signTypedData is a POST method - just want to be sure you’re running a POST request, not a GET, which would create that error. If you are using POST, can you please post the code you’re running when you get this error?

Thanks for the answer.
From the doc:
curl -X POST --data ‘{
“id”: 1337,
“jsonrpc”: “2.0”,
“method”: “eth_signTypedData”,
“params”: [“0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826”, {
“types”: {
“EIP712Domain”: [{
“name”: “name”,
“type”: “string”
}, {
“name”: “version”,
“type”: “string”
}, {
“name”: “chainId”,
“type”: “uint256”
}, {
“name”: “verifyingContract”,
“type”: “address”
}],
“Person”: [{
“name”: “name”,
“type”: “string”
}, {
“name”: “wallet”,
“type”: “address”
}],
“Mail”: [{
“name”: “from”,
“type”: “Person”
}, {
“name”: “to”,
“type”: “Person”
}, {
“name”: “contents”,
“type”: “string”
}]
},
“primaryType”: “Mail”,
“domain”: {
“name”: “Ether Mail”,
“version”: “1”,
“chainId”: 1,
“verifyingContract”: “0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC”
},
“message”: {
“from”: {
“name”: “Cow”,
“wallet”: “0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826”
},
“to”: {
“name”: “Bob”,
“wallet”: “0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB”
},
“contents”: “Hello, Bob!”
}
}]
}’ https://mainnet.infura.io/v3/… the id …

Hi @gabrielbazan7, and thanks for your patience! We don’t actually support that method, but MetaMask does - you can check out their documentation here!

@Leiya_Kenney that really sucks. Your documentation says you do support it, so I think the docs need to be updated.

2 Likes