sendRawUserOperation
Calls eth_sendUserOperation
and returns the hash of the sent UserOperation
(UO).
Usage
ts
import { client } from "./client";
const hash = await client.sendRawUserOperation(
{
// ... signed raw user operation
},
"0xEntryPointAddress"
);
ts
import { createBundlerClient, mainnet } from "@alchemy/aa-core";
import { http } from "viem";
export const client = createBundlerClient({
chain: mainnet,
transport: http("https://eth-mainnet.g.alchemy.com/v2/demo"),
});
Returns
Promise<Hash>
the hash of the sent UO
Parameters
request: UserOperationRequest
The user operation to send
entryPoint: Address
The address of the entry point to send the user operation to