-
Notifications
You must be signed in to change notification settings - Fork 335
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
Signing transactions with ethers/ viem #3033
Comments
You can do this for substrate transactions: import { Keyring } from "@polkadot/api";
import type { KeyringPair } from "@polkadot/keyring/types";
const keyringEth = new Keyring({ type: "ethereum" });
export const signer: KeyringPair = keyringEth.addFromUri("0x...private_key");
tx.signAndSend(signer); |
@RomarQ that would, however, require us to have the private key of the user. We get the ethers signer from the wallet connect component so we do not have their private key. Is there any workaround on how to convert ethers to substrate-compatible signers? Thanks! |
You can use wallets like (Talisman and SubWallet) which offer support for both Substrate and Ethereum ecosystems. If you want a other solution, you will need to handle the encoding and use a different signing method for substrate transactions, since |
Hello, is it possible to sign Moonbeam transactions with ethers or viem signers?
Because we had no success with this. Is there any function to convert Ethers to Substrate EVM signer? Thanks!
The text was updated successfully, but these errors were encountered: