How to send a signed message with Local Account #617
-
Hey! I have recently moved over from Ethers to viem and am struggling to The ethers code is pretty simple with There isn't an equivalent in the migration guide of creating a signer from the wallet as I do in Ethers. When I try "Server error TransactionExecutionError: The method does not exist / is not available.\n\nURL: wss://sepolia.infura.io/ws/v3/apiKey\nRequest body: {"method":"eth_sendTransaction","params":[{"data":"","from":"","to":""}]}\n \nRequest Arguments:\n from: \n to: \n data: \n\nDetails: The method eth_sendTransaction does not exist/is not available\nVersion: [email protected]" Is Ethers using How can I send a signed message/send raw with writeContract or another way around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Do you have your Local Account attached to the |
Beta Was this translation helpful? Give feedback.
I found the issue.
I needed to simulateContract with the Local Account also - perhaps it would be good to hoist to publicClient as with the walletClient