Turnkey signing #1167
Turnkey signing
#1167
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to integrate Turnkey's signing service with Alchemy's Account Abstraction (AA) API and have a question regarding the best way to pass the signed transaction from Turnkey to Alchemy for execution.
Here is the code snippet I am using to request a signature from Turnkey:
const signRequest = {
type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" as const,
timestampMs: Date.now().toString(),
organizationId: Deno.env.get("TURNKEY_ORGANIZATION_ID") || "",
parameters: {
signWith: fromUser.privateKeyId,
unsignedTransaction: serializedTx.slice(2),
type: "TRANSACTION_TYPE_ETHEREUM" as const,
},
};
const signResponse = await turnkeyHttpClient.signTransaction(signRequest);
After receiving the signResponse from Turnkey, I am unsure about the best way to pass the signed message to my Alchemy AA for execution.
User Operation Construction: The Alchemy documentation suggests constructing a full user operation. Is there a simpler way to execute the signed transaction with Alchemy's AA?
Any examples or references to relevant documentation would be greatly appreciated.
I have been working on this for a few days now, I have a AA signer, I just cant seem to get the data from the singed transaction into the right format for my signer to execute it correctly. For now the call data (Singed tx from turnkey) is a simple transfer call. The AA executes but the data (the signed Tx) is not read and executed correctly.
Beta Was this translation helpful? Give feedback.
All reactions