function sendTransaction<
TChain,
TAccount,
TChainOverride,
TContext,
TEntryPointVersion,
>(client_, args, overrides?, context?): Promise<`0x${string}`>;Defined in: aa-sdk/core/src/actions/smartAccount/sendTransaction.ts:48
Sends a transaction using the provided client, arguments, optional overrides, and context. This sends a UO and then waits for it to be mined
import { createSmartAccountClient } from "@aa-sdk/core";
// smart account client is already extended with sendTransaction
const client = createSmartAccountClient(...);
const result = await client.sendTransaction({
to: "0x...",
data: "0x...", // or "0x",
value: 0n, // optional
account, // only required if the client above is not connected to an account
});| Type Parameter | Default type |
|---|---|
|
|
| | |
|
|
| | |
|
|
| Parameter | Type | Description |
|---|---|---|
| The client to send the transaction through | |
|
| The parameters required to send the transaction |
|
| Optional overrides for the user operation |
|
| Optional context for the user operation |
Promise<`0x${string}`>
A promise that resolves to a hex string representing the transaction hash