Creates an ETHAccount backed by any async signing function.
Intended for embedded or smart-wallet signers (e.g. Privy) that are not backed by a standard Web3 provider. The caller supplies:
const account = getAccountFromExternalSigner( smartWalletAddress, new providers.JsonRpcProvider(rpcUrl), (msg) => smartWalletClient.signMessage({ message: msg.toString() }), RpcId.ETH,) Copy
const account = getAccountFromExternalSigner( smartWalletAddress, new providers.JsonRpcProvider(rpcUrl), (msg) => smartWalletClient.signMessage({ message: msg.toString() }), RpcId.ETH,)
Creates an ETHAccount backed by any async signing function.
Intended for embedded or smart-wallet signers (e.g. Privy) that are not backed by a standard Web3 provider. The caller supplies: